/** * Returns the location of the modifications file based on the module id * * @return the file location */ public String getFileLocation() { return this.warLocation + getFilePathInWar(); }
InstalledFiles installedFiles = new InstalledFiles(warFileLocation, moduleId); installedFiles.load(); for (String add : installedFiles.getAdds()) for (String mkdir : installedFiles.getMkdirs()) for (Map.Entry<String, String> update : installedFiles.getUpdates().entrySet()) String installedFilesPathInWar = installedFiles.getFilePathInWar(); removeFile(warFileLocation, installedFilesPathInWar, preview);
installedFiles.addAdd(destinationDir + "/" + sourceChild.getName()); this.outputVerboseMessage("File '" + destinationDir + "/" + sourceChild.getName() + "' added to war from amp", true); installedFiles.addUpdate(destinationDir + "/" + sourceChild.getName(), backupLocation); this.outputMessage("WARNING: The file '" + destinationDir + "/" + sourceChild.getName() + "' is being overwritten by this module. The original has been backed-up to '" + backupLocation + "'", true); if (mkdir == true) installedFiles.addMkdir(destinationDir + "/" + sourceChild.getName()); this.outputVerboseMessage("Directory '" + destinationDir + "/" + sourceChild.getName() + "' added to war", true);
InstalledFiles installedFiles = new InstalledFiles(warFileLocation, installingId); installedFiles.save();
TFile file = new TFile(getFileLocation()); if (file.exists() == true) throw new ModuleManagementToolException("The module file install file '" + getFileLocation() + "' does not exist", exception); throw new ModuleManagementToolException("Error whilst reading file '" + getFileLocation(), exception);
InstalledFiles installedFiles = new InstalledFiles(warFileLocation, moduleId); installedFiles.load(); for (String add : installedFiles.getAdds()) for (String mkdir : installedFiles.getMkdirs()) for (Map.Entry<String, String> update : installedFiles.getUpdates().entrySet()) String installedFilesPathInWar = installedFiles.getFilePathInWar(); removeFile(warFileLocation, installedFilesPathInWar, preview);
installedFiles.addAdd(destinationDir + "/" + sourceChild.getName()); this.outputVerboseMessage("File '" + destinationDir + "/" + sourceChild.getName() + "' added to war from amp", true); installedFiles.addUpdate(destinationDir + "/" + sourceChild.getName(), backupLocation); this.outputMessage("WARNING: The file '" + destinationDir + "/" + sourceChild.getName() + "' is being overwritten by this module. The original has been backed-up to '" + backupLocation + "'", true); if (mkdir == true) installedFiles.addMkdir(destinationDir + "/" + sourceChild.getName()); this.outputVerboseMessage("Directory '" + destinationDir + "/" + sourceChild.getName() + "' added to war", true);
InstalledFiles installedFiles = new InstalledFiles(warFileLocation, installingId); installedFiles.save();
TFile file = new TFile(getFileLocation()); if (file.exists() == true) throw new ModuleManagementToolException("The module file install file '" + getFileLocation() + "' does not exist", exception); throw new ModuleManagementToolException("Error whilst reading file '" + getFileLocation(), exception);
InstalledFiles installed0 = new InstalledFiles(warLocation, "test"); installed0.load(); assertNotNull(installed0); assertEquals(9, installed0.getAdds().size()); InstalledFiles installed1 = new InstalledFiles(warLocation, "test"); installed1.load(); assertNotNull(installed1); assertEquals(8, installed1.getAdds().size()); assertEquals(1, installed1.getMkdirs().size()); assertEquals(0, installed1.getUpdates().size());
TFile file = new TFile(getFileLocation()); if (file.exists() == false)
/** * Returns the location of the modifications file based on the module id * * @return the file location */ public String getFileLocation() { return this.warLocation + getFilePathInWar(); }
TFile file = new TFile(getFileLocation()); if (file.exists() == false)