tbrugz  committed 366fc9a

dumpers: better logging

  • Participants
  • Parent commits cda2803

Comments (0)

Files changed (2)

File src/tbrugz/sqldump/

 			Marshaller m = jc.createMarshaller();
 			//XXX: property for formatting or not JAXB output?
-			m.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);		
-			m.marshal(schemaModel, new File(fileOutput));
-"xml schema model dumped to '"+fileOutput+"'");
+			m.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);
+			File fout = new File(fileOutput);
+			m.marshal(schemaModel, fout);
+"xml schema model dumped to '"+fout.getAbsolutePath()+"'");
 		catch(Exception e) {
 			log.error("error dumping schema: "+e);

File src/tbrugz/sqldump/

 		try {
-			ObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream(fileOutput));
+			File fout = new File(fileOutput);
+			ObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream(fout));
-"schema model serialized to '"+fileOutput+"'");
+"schema model serialized to '"+fout.getAbsolutePath()+"'");
 		catch(IOException e) {
 			log.error("error dumping schema: "+e);