if (pathForNode.exists() == false)
{
if (pathForNode.mkdirs() == false)
{
throw new BackingStoreException("Failed to write config " + pathForNode); //$NON-NLS-1$
}
}
final File target = new File(pathForNode, "prefs.properties");//NON-NLS
if (target.exists() == false || target.lastModified() < lastModificationTime)
{
try
{
final OutputStream out = new BufferedOutputStream(new FileOutputStream(target));
try
{
properties.store(out, "");
}
finally
{
out.close();
}
}
catch (final Exception e)
{
throw new BackingStoreException("Failed to write config " + target); //$NON-NLS-1$
}
}
}