Issue #1646 - Format the output
Change-Id: I2cf00e194fdb65f37c4c0e2763140bfcc4f46ed6 Former-commit-id:75b6040ff6
[formerlyd1d694e1db
] [formerly75b6040ff6
[formerlyd1d694e1db
] [formerlyec0d814aa6
[formerly bdda0e529ccab13fab63e08330b3dcfcef330318]]] Former-commit-id:ec0d814aa6
Former-commit-id:f1f79fc498
[formerly7fbc376ec4
] Former-commit-id:5ed9b7b6d0
This commit is contained in:
parent
408663b2b4
commit
360da06974
1 changed files with 6 additions and 2 deletions
|
@ -26,6 +26,7 @@ import java.util.concurrent.ConcurrentMap;
|
|||
import java.util.concurrent.atomic.AtomicLong;
|
||||
|
||||
import javax.xml.bind.JAXBException;
|
||||
import javax.xml.bind.Marshaller;
|
||||
|
||||
import com.raytheon.uf.common.localization.IPathManager;
|
||||
import com.raytheon.uf.common.localization.LocalizationContext;
|
||||
|
@ -57,6 +58,7 @@ import com.raytheon.uf.common.time.util.TimeUtil;
|
|||
* Jan 09, 2013 1412 djohnson Moved file writing from viz plugin to server-side.
|
||||
* Jan 17, 2013 1412 djohnson Check files for having been modified each time data is requested,
|
||||
* in case they were written by another member of the cluster.
|
||||
* Mar 12, 2013 1646 mpduff Format the output.
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
|
@ -116,8 +118,10 @@ class FileManager {
|
|||
.getLocalizationFile(context, lf.getName());
|
||||
try {
|
||||
JAXBManager jaxbManager = getJaxbManager();
|
||||
jaxbManager.getJaxbContext().createMarshaller()
|
||||
.marshal(roleData, locFile.getFile());
|
||||
Marshaller marshaller = jaxbManager.getJaxbContext()
|
||||
.createMarshaller();
|
||||
marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);
|
||||
marshaller.marshal(roleData, locFile.getFile());
|
||||
locFile.save();
|
||||
|
||||
} catch (JAXBException e) {
|
||||
|
|
Loading…
Add table
Reference in a new issue