Author: jicken
Date: 2011-06-02 17:17:51 -0400 (Thu, 02 Jun 2011)
New Revision: 10768
Modified:
branches/Branch_2_2_EAP_export_tool/src/main/org/hornetq/core/persistence/tools/ManageDataTool.java
Log:
made jaxb encoding system dependent
Modified:
branches/Branch_2_2_EAP_export_tool/src/main/org/hornetq/core/persistence/tools/ManageDataTool.java
===================================================================
---
branches/Branch_2_2_EAP_export_tool/src/main/org/hornetq/core/persistence/tools/ManageDataTool.java 2011-06-02
21:17:28 UTC (rev 10767)
+++
branches/Branch_2_2_EAP_export_tool/src/main/org/hornetq/core/persistence/tools/ManageDataTool.java 2011-06-02
21:17:51 UTC (rev 10768)
@@ -289,7 +289,8 @@
JAXBContext jc = JAXBContext.newInstance(HornetQExport.class);
Marshaller m = jc.createMarshaller();
- m.setProperty(Marshaller.JAXB_ENCODING, "UTF-8");
+ //m.setProperty(Marshaller.JAXB_ENCODING, "UTF-8");
+ m.setProperty(Marshaller.JAXB_ENCODING,
System.getProperty("file.encoding"));
m.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE);
m.marshal(hqJournalExport, os);
}