Update TethysExporter.java

small fix
This commit is contained in:
kbolaughlin 2023-03-14 08:40:49 -07:00
parent 8842166f43
commit 2dd870956a

View File

@ -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());