/** * Creates a module details helper object based on a file location. * * @param location file location * @return Returns the module details or null if the location points to nothing * @throws IOException */ public static ModuleDetails createModuleDetailsFromPropertyLocation(String location) throws IOException { return createModuleDetailsFromPropertyLocation(location, null); }
/** * Creates a module details helper object based on a file location. * * @param location file location * @return Returns the module details or null if the location points to nothing * @throws IOException */ public static ModuleDetails createModuleDetailsFromPropertyLocation(String location) throws IOException { return createModuleDetailsFromPropertyLocation(location, null); }
/** * 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); }
ModuleDetails installingModuleDetails = ModuleDetailsHelper.createModuleDetailsFromPropertyLocation(propertiesLocation, this); if (installingModuleDetails == null)
ModuleDetails installingModuleDetails = ModuleDetailsHelper.createModuleDetailsFromPropertyLocation(propertiesLocation, this); if (installingModuleDetails == null)
installingModuleDetails = ModuleDetailsHelper.createModuleDetailsFromPropertyLocation(propertiesLocation);