serialize with appropriate file name

This commit is contained in:
sidheshenator 2015-03-20 10:23:45 -04:00
parent 5cd90e306b
commit 44a02c61d7

View File

@ -379,7 +379,7 @@ public class IngestJobSettings {
// This block of code gets rid of that variable instance number and helps maitains constant module name over multiple runs.
moduleSettingsFilePath.replaceAll("[$][\\d]+.settings$", "\\$.settings");
}
try (NbObjectOutputStream out = new NbObjectOutputStream(new FileOutputStream(getModuleSettingsFilePath(factory)))) {
try (NbObjectOutputStream out = new NbObjectOutputStream(new FileOutputStream(moduleSettingsFilePath))) {
out.writeObject(settings);
}
} catch (IOException ex) {