ASenvMap(File installDir) { put(INSTALL_ROOT_PROPERTY, installDir.getPath()); File configDir = SmartFile.sanitize(new File(installDir, "config")); put(CONFIG_ROOT_PROPERTY, configDir.getPath()); setProperties(configDir); postProcess(configDir); // Product root is defined to be the parent of the install root. // While tempting to just use installDir.getParent() we go through // these gyrations just in case setProperties() changed the value // of the INSTALL_ROOT_PROPERTY property. File installRoot = new File(super.get(INSTALL_ROOT_PROPERTY)); put(PRODUCT_ROOT_PROPERTY, installRoot.getParent()); }
ASenvMap(File installDir) { put(INSTALL_ROOT_PROPERTY, installDir.getPath()); File configDir = SmartFile.sanitize(new File(installDir, "config")); put(CONFIG_ROOT_PROPERTY, configDir.getPath()); setProperties(configDir); postProcess(configDir); // Product root is defined to be the parent of the install root. // While tempting to just use installDir.getParent() we go through // these gyrations just in case setProperties() changed the value // of the INSTALL_ROOT_PROPERTY property. File installRoot = new File(super.get(INSTALL_ROOT_PROPERTY)); put(PRODUCT_ROOT_PROPERTY, installRoot.getParent()); }
ASenvMap(File installDir) { put(INSTALL_ROOT_PROPERTY, installDir.getPath()); File configDir = SmartFile.sanitize(new File(installDir, "config")); put(CONFIG_ROOT_PROPERTY, configDir.getPath()); setProperties(configDir); postProcess(configDir); // Product root is defined to be the parent of the install root. // While tempting to just use installDir.getParent() we go through // these gyrations just in case setProperties() changed the value // of the INSTALL_ROOT_PROPERTY property. File installRoot = new File(super.get(INSTALL_ROOT_PROPERTY)); put(PRODUCT_ROOT_PROPERTY, installRoot.getParent()); }