mirror of
https://github.com/PAMGuard/PAMGuard.git
synced 2024-11-25 08:32:32 +00:00
Update TethysExporter.java
small fix
This commit is contained in:
parent
8842166f43
commit
2dd870956a
@ -93,8 +93,8 @@ public class TethysExporter {
|
|||||||
// return false;
|
// return false;
|
||||||
// }
|
// }
|
||||||
|
|
||||||
Deployment deployment = new Deployment();
|
Deployment deployment1 = new Deployment();
|
||||||
deployment.setId("1");
|
deployment1.setId("1");
|
||||||
|
|
||||||
Path tempFile = null;
|
Path tempFile = null;
|
||||||
try {
|
try {
|
||||||
@ -103,7 +103,7 @@ public class TethysExporter {
|
|||||||
Marshaller marshall = jaxB.createMarshaller();
|
Marshaller marshall = jaxB.createMarshaller();
|
||||||
marshall.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE);
|
marshall.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE);
|
||||||
StringWriter sw = new StringWriter();
|
StringWriter sw = new StringWriter();
|
||||||
marshall.marshal(deployment, sw);
|
marshall.marshal(deployment1, sw);
|
||||||
tempFile = Files.createTempFile("pamGuardToTethys", ".xml");
|
tempFile = Files.createTempFile("pamGuardToTethys", ".xml");
|
||||||
Files.write(tempFile, sw.toString().getBytes());
|
Files.write(tempFile, sw.toString().getBytes());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user