@Override public void info(Object message) { outputVerboseMessage(String.valueOf(message)); }
@Override public void info(Object message) { outputVerboseMessage(String.valueOf(message)); }
outputVerboseMessage("WARNING: A later version of this module is already installed in the WAR. Installation skipped. "+ "You could force the installation by passing the -force option.",false); return; outputVerboseMessage("WARNING: The installation of this module is being forced. All files will be removed and replaced regardless of existing versions present.",false); outputVerboseMessage("WARNING: This version of this module is already installed in the WAR..upgrading.",false); outputVerboseMessage("Clearing out files relating to version '" + installedVersion + "' of module '" + installedId + "'",false); uninstallModule(installedId, warFileLocation, preview, true);
outputVerboseMessage("No modules are installed in this WAR file"); outputVerboseMessage("Module '" + moduleDetails.getId() + "' installed in '" + warLocation + "'"); outputVerboseMessage(" Title: " + moduleDetails.getTitle(), true); outputVerboseMessage(" Version: " + moduleDetails.getModuleVersionNumber(), true); outputVerboseMessage(" Install Date: " + moduleDetails.getInstallDate(), true); outputVerboseMessage(" Description: " + moduleDetails.getDescription(), true);
outputVerboseMessage("WARNING: A later version of this module is already installed in the WAR. Installation skipped. "+ "You could force the installation by passing the -force option.",false); return; outputVerboseMessage("WARNING: The installation of this module is being forced. All files will be removed and replaced regardless of existing versions present.",false); outputVerboseMessage("WARNING: This version of this module is already installed in the WAR..upgrading.",false); outputVerboseMessage("Clearing out files relating to version '" + installedVersion + "' of module '" + installedId + "'",false); uninstallModule(installedId, warFileLocation, preview, true);
outputVerboseMessage("No modules are installed in this WAR file"); outputVerboseMessage("Module '" + moduleDetails.getId() + "' installed in '" + warLocation + "'"); outputVerboseMessage(" Title: " + moduleDetails.getTitle(), true); outputVerboseMessage(" Version: " + moduleDetails.getModuleVersionNumber(), true); outputVerboseMessage(" Install Date: " + moduleDetails.getInstallDate(), true); outputVerboseMessage(" Description: " + moduleDetails.getDescription(), true);
/** * Removes a file from the given location in the war file. * * @param warLocation the war file location * @param filePath the path to the file that is to be deleted * @param preview indicates whether this is a preview install */ private void removeFile(String warLocation, String filePath, boolean preview) { TFile removeFile = new TFile(warLocation + filePath); if (removeFile.exists() == true) { outputVerboseMessage("Removing file '" + filePath + "' from war", true); if (preview == false) { removeFile.delete(); } } else { outputVerboseMessage("The file '" + filePath + "' was expected for removal but was not present in the war", true); } }
/** * Removes a file from the given location in the war file. * * @param warLocation the war file location * @param filePath the path to the file that is to be deleted * @param preview indicates whether this is a preview install */ private void removeFile(String warLocation, String filePath, boolean preview) { TFile removeFile = new TFile(warLocation + filePath); if (removeFile.exists() == true) { outputVerboseMessage("Removing file '" + filePath + "' from war", true); if (preview == false) { removeFile.delete(); } } else { outputVerboseMessage("The file '" + filePath + "' was expected for removal but was not present in the war", true); } }
this.outputVerboseMessage("File '" + destinationDir + "/" + sourceChild.getName() + "' added to war from amp", true); this.outputVerboseMessage("Directory '" + destinationDir + "/" + sourceChild.getName() + "' added to war", true);
this.outputVerboseMessage("File '" + destinationDir + "/" + sourceChild.getName() + "' added to war from amp", true); this.outputVerboseMessage("Directory '" + destinationDir + "/" + sourceChild.getName() + "' added to war", true);
outputVerboseMessage("Recovering file '" + update.getKey() + "' from backup '" + update.getValue() + "'", true);
outputVerboseMessage("Recovering file '" + update.getKey() + "' from backup '" + update.getValue() + "'", true);
try outputVerboseMessage("Installing AMP '" + ampFileLocation + "' into WAR '" + warFileLocation + "'"); if (!warFile.exists()) outputVerboseMessage("Adding files relating to version '" + installingVersion + "' of module '" + installingId + "'"); InstalledFiles installedFiles = new InstalledFiles(warFileLocation, installingId);
try outputVerboseMessage("Installing AMP '" + ampFileLocation + "' into WAR '" + warFileLocation + "'"); if (!warFile.exists()) outputVerboseMessage("Adding files relating to version '" + installingVersion + "' of module '" + installingId + "'"); InstalledFiles installedFiles = new InstalledFiles(warFileLocation, installingId);