Issue #1646 - Format the output

Change-Id: I2cf00e194fdb65f37c4c0e2763140bfcc4f46ed6

Former-commit-id: ea0cd457ac [formerly 2e424cd74a] [formerly 4ab07a31da] [formerly d5d4ed7327 [formerly 4ab07a31da [formerly 337e2e2da520492b10864ef9f98130c5c19e0448]]]
Former-commit-id: d5d4ed7327
Former-commit-id: 44825e8261549149e51d6e8f7a6835db9fa371e9 [formerly aefbc4f54f]
Former-commit-id: 57fa0f2ef9
This commit is contained in:
Mike Duff 2013-03-12 10:42:13 -05:00 committed by Steve Harris
parent bde4f4c03d
commit 6024d7fb50

View file

@ -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) {