/** * @param warLocation the location of the WAR file * @param moduleId the module ID within the WAR * @return Returns a file handle to the module properties file within the given WAR. * The file may or may not exist. */ public static TFile getModuleDetailsFileFromWarAndId(String warLocation, String moduleId) { String location = ModuleDetailsHelper.getModulePropertiesFileLocation(warLocation, moduleId); TFile file = new TFile(location); return file; }
/** * @param warLocation the location of the WAR file * @param moduleId the module ID within the WAR * @return Returns a file handle to the module properties file within the given WAR. * The file may or may not exist. */ public static TFile getModuleDetailsFileFromWarAndId(String warLocation, String moduleId) { String location = ModuleDetailsHelper.getModulePropertiesFileLocation(warLocation, moduleId); TFile file = new TFile(location); return file; }
/** * Creates a module details instance based on a war location and the module id * * @param warLocation the war location * @param moduleId the module id * @return Returns the module details for the given module ID as it occurs in the WAR, or <tt>null</tt> * if there are no module details available. * @throws IOException */ public static ModuleDetails createModuleDetailsFromWarAndId(String warLocation, String moduleId) throws IOException { String modulePropertiesFileLocation = ModuleDetailsHelper.getModulePropertiesFileLocation(warLocation, moduleId); return ModuleDetailsHelper.createModuleDetailsFromPropertyLocation(modulePropertiesFileLocation); }
/** * Creates a module details instance based on a war location and the module id * * @param warLocation the war location * @param moduleId the module id * @return Returns the module details for the given module ID as it occurs in the WAR, or <tt>null</tt> * if there are no module details available. * @throws IOException */ public static ModuleDetails createModuleDetailsFromWarAndId(String warLocation, String moduleId) throws IOException { String modulePropertiesFileLocation = ModuleDetailsHelper.getModulePropertiesFileLocation(warLocation, moduleId); return ModuleDetailsHelper.createModuleDetailsFromPropertyLocation(modulePropertiesFileLocation); }
try String modulePropertiesFileLocation = getModulePropertiesFileLocation(warLocation, moduleId); TFile file = new TFile(modulePropertiesFileLocation); if (file.exists() == false)
try String modulePropertiesFileLocation = getModulePropertiesFileLocation(warLocation, moduleId); TFile file = new TFile(modulePropertiesFileLocation); if (file.exists() == false)