public void processPage(WikiPage page) throws Exception { FileSystemPage fsPage = (FileSystemPage) page; String path = fsPage.getFileSystemPath(); File oldPropsFile = new File(path + old_propertiesFilename); Properties oldProps = loadOldProperties(oldPropsFile); saveNewProperties(path, oldProps); oldPropsFile.delete(); }
public FileSystemPage(final String name, final FileSystemPage parent, final FileSystem fileSystem) throws Exception { super(name, parent); path = parent.getFileSystemPath(); versionsController = parent.versionsController; createDirectoryIfNewPage(fileSystem); }