public Map<String, String> getProps() { return Collections.unmodifiableMap(asenv.getProps()); }
public Map<String, String> getProps() { return Collections.unmodifiableMap(asenv.getProps()); }
public Map<String, String> getProps() { return Collections.unmodifiableMap(asenv.getProps()); }
/** Returns the folder where the admin console application's folder (in the * name of admin console application) should be found. Thus by default, * it should be: [install-dir]/lib/install/applications. No attempt is made * to check if this location is readable or writable. * @return java.io.File representing parent folder for admin console application * Never returns a null */ public File getDefaultAdminConsoleFolderOnDisk() { File install = new File(asenv.getProps().get(SystemPropertyConstants.INSTALL_ROOT_PROPERTY)); File agp = new File(new File(new File(install, "lib"), "install"), "applications"); return (agp); }
/** Returns the folder where the admin console application's folder (in the * name of admin console application) should be found. Thus by default, * it should be: [install-dir]/lib/install/applications. No attempt is made * to check if this location is readable or writable. * @return java.io.File representing parent folder for admin console application * Never returns a null */ public File getDefaultAdminConsoleFolderOnDisk() { File install = new File(asenv.getProps().get(SystemPropertyConstants.INSTALL_ROOT_PROPERTY)); File agp = new File(new File(new File(install, "lib"), "install"), "applications"); return (agp); }
/** Returns the folder where the admin console application's folder (in the * name of admin console application) should be found. Thus by default, * it should be: [install-dir]/lib/install/applications. No attempt is made * to check if this location is readable or writable. * @return java.io.File representing parent folder for admin console application * Never returns a null */ public File getDefaultAdminConsoleFolderOnDisk() { File install = new File(asenv.getProps().get(SystemPropertyConstants.INSTALL_ROOT_PROPERTY)); File agp = new File(new File(new File(install, "lib"), "install"), "applications"); return (agp); }
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); }
asenv.getProps().put(SystemPropertyConstants.INSTANCE_ROOT_PROPERTY, root.getAbsolutePath()); for (Map.Entry<String, String> entry : asenv.getProps().entrySet()) { location = new File(asenv.getProps().get(SystemPropertyConstants.INSTANCE_ROOT_PROPERTY), entry.getValue()); asenv.getProps().put(SystemPropertyConstants.SERVER_NAME, instanceName); System.setProperty(SystemPropertyConstants.SERVER_NAME, instanceName);
asenv.getProps().put(SystemPropertyConstants.INSTANCE_ROOT_PROPERTY, root.getAbsolutePath()); for (Map.Entry<String, String> entry : asenv.getProps().entrySet()) { location = new File(asenv.getProps().get(SystemPropertyConstants.INSTANCE_ROOT_PROPERTY), entry.getValue()); asenv.getProps().put(SystemPropertyConstants.SERVER_NAME, instanceName); System.setProperty(SystemPropertyConstants.SERVER_NAME, instanceName);
asenv.getProps().put(SystemPropertyConstants.INSTANCE_ROOT_PROPERTY, root.getAbsolutePath()); for (Map.Entry<String, String> entry : asenv.getProps().entrySet()) { location = new File(asenv.getProps().get(SystemPropertyConstants.INSTANCE_ROOT_PROPERTY), entry.getValue()); asenv.getProps().put(SystemPropertyConstants.SERVER_NAME, instanceName); System.setProperty(SystemPropertyConstants.SERVER_NAME, instanceName);
/** * 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); } }
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;
asenvProps = pr.getProps(); info.setup(); setupLogLevels();