public ServerEnvironmentImpl(File root) { // the getParentFile() that we do later fails to work correctly if // root is for example "new File(".") this.root = root.getAbsoluteFile(); asenv = new ASenvPropertyReader(); }
public ServerEnvironmentImpl(File root) { // the getParentFile() that we do later fails to work correctly if // root is for example "new File(".") this.root = root.getAbsoluteFile(); asenv = new ASenvPropertyReader(); }
public ServerEnvironmentImpl(File root) { // the getParentFile() that we do later fails to work correctly if // root is for example "new File(".") this.root = root.getAbsoluteFile(); asenv = new ASenvPropertyReader(); }
private Map<String, String> getEnvProps() { ASenvPropertyReader pr = new ASenvPropertyReader(); return pr.getProps(); } }
private File defaultLocalNodeDirFile() { final Map<String,String> systemProps = Collections.unmodifiableMap(new ASenvPropertyReader().getProps()); /* * The default "nodes" directory we want to use * has been set in asenv.conf named as * AS_DEF_NODES_PATH */ String nodeDirDefault = systemProps.get( SystemPropertyConstants.AGENT_ROOT_PROPERTY); return new File(nodeDirDefault); }
public static File getDefaultDomainsDir() throws IOException { Map<String, String> systemProps = new ASenvPropertyReader().getProps(); String defDomains = systemProps.get(SystemPropertyConstants.DOMAINS_ROOT_PROPERTY); if (defDomains == null) throw new IOException(strings.get("Domain.noDomainsDir", SystemPropertyConstants.DOMAINS_ROOT_PROPERTY)); return new File(defDomains); }
public static File getDefaultDomainsDir() throws IOException { Map<String, String> systemProps = new ASenvPropertyReader().getProps(); String defDomains = systemProps.get(SystemPropertyConstants.DOMAINS_ROOT_PROPERTY); if (defDomains == null) throw new IOException(strings.get("Domain.noDomainsDir", SystemPropertyConstants.DOMAINS_ROOT_PROPERTY)); return new File(defDomains); }
public static File getDefaultDomainsDir() throws IOException { Map<String, String> systemProps = new ASenvPropertyReader().getProps(); String defDomains = systemProps.get(SystemPropertyConstants.DOMAINS_ROOT_PROPERTY); if (defDomains == null) throw new IOException(strings.get("Domain.noDomainsDir", SystemPropertyConstants.DOMAINS_ROOT_PROPERTY)); return new File(defDomains); }
/** * The DomainConfig always contains the K_DOMAINS_ROOT and K_HOST_NAME * attributes. */ public DomainConfig(String domainName, String domainRoot) throws DomainException { super(domainName, domainRoot); try { put(K_DOMAINS_ROOT, domainRoot); // net to get fully qualified host, not just hostname ASenvPropertyReader pr = new ASenvPropertyReader(); Map<String, String> envProperties = pr.getProps(); put(K_HOST_NAME, envProperties.get(SystemPropertyConstants.HOST_NAME_PROPERTY)); } catch (Exception ex) { throw new DomainException(ex); } }
asenv = new ASenvPropertyReader(new File(installRoot));
asenv = new ASenvPropertyReader(new File(installRoot));
asenv = new ASenvPropertyReader(new File(installRoot));
throw new DomainException(_strings.get("missingDefaultTemplateName")); Map<String, String> envProperties = new ASenvPropertyReader().getProps(); templateJarPath = envProperties.get(SystemPropertyConstants.INSTALL_ROOT_PROPERTY) + File.separator + DEFUALT_TEMPLATE_RELATIVE_PATH + File.separator + defaultTemplateName;
public void setup() throws GFLauncherException, MiniXmlParserException { ASenvPropertyReader pr; if (isFakeLaunch()) { pr = new ASenvPropertyReader(info.getInstallDir()); pr = new ASenvPropertyReader();