/** * Backsup a given WAR file. * * @see ModuleManagementTool#installModule(String, String, boolean, boolean, boolean) * * @param warFile the location of the AMP file to be installed * @param backupWAR true if you want it to perform the backup */ private void backupWar(TFile warFile, boolean backupWAR) throws IOException { // Make a backup of the war we are going to modify if (backupWAR == true) { warHelper.backup(warFile); } }
warHelper.checkCompatibleVersion(warFile, installingModuleDetails); warHelper.checkCompatibleEdition(warFile, installingModuleDetails); warHelper.checkModuleDependencies(warFile, installingModuleDetails); ModuleDetails installedModuleDetails = warHelper.getModuleDetailsOrAlias(warFile, installingModuleDetails);
List<ModuleDetails> modulesFound = warHelper.listModules(new TFile(warLocation));
warHelper.checkCompatibleVersion(warFile, installingModuleDetails); warHelper.checkCompatibleEdition(warFile, installingModuleDetails); warHelper.checkModuleDependencies(warFile, installingModuleDetails); ModuleDetails installedModuleDetails = warHelper.getModuleDetailsOrAlias(warFile, installingModuleDetails);
List<ModuleDetails> modulesFound = warHelper.listModules(new TFile(warLocation));
List<ModuleDetails> details = this.manager.warHelper.listModules(war); assertNotNull(details); assertEquals(details.size(), 0); details = this.manager.warHelper.listModules(war); assertNotNull(details); assertEquals(details.size(), 1); details = this.manager.warHelper.listModules(war); assertNotNull(details); assertEquals(details.size(), 1); this.manager.installModule(testAmp7, warLocation, false, true, false); details = this.manager.warHelper.listModules(war); assertNotNull(details); assertEquals(details.size(), 3);
/** * Backsup a given WAR file. * * @see ModuleManagementTool#installModule(String, String, boolean, boolean, boolean) * * @param warFile the location of the AMP file to be installed * @param backupWAR true if you want it to perform the backup */ private void backupWar(TFile warFile, boolean backupWAR) throws IOException { // Make a backup of the war we are going to modify if (backupWAR == true) { warHelper.backup(warFile); } }