Examples of ASenvPropertyReader


Examples of com.sun.enterprise.universal.glassfish.ASenvPropertyReader

        if (templateJarPath == null || templateJarPath.isEmpty()) {
            String defaultTemplateName = Version.getDefaultDomainTemplate();
            if (defaultTemplateName == null || defaultTemplateName.isEmpty()) {
                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;
        }
        File template = new File(templateJarPath);
        if (!template.exists() || !template.getName().endsWith(".jar")) {
View Full Code Here

Examples of com.sun.enterprise.universal.glassfish.ASenvPropertyReader

    public void setRefreshConfingContext(final boolean refresh) {
        this.put(K_REFRESH_CONFIG_CONTEXT, refresh);
    }
   
    private Map<String,String> getEnvProps() {
        ASenvPropertyReader pr = new ASenvPropertyReader();
        return pr.getProps();
    }
View Full Code Here

Examples of com.sun.enterprise.universal.glassfish.ASenvPropertyReader

   
        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);
        }
View Full Code Here

Examples of com.sun.enterprise.universal.glassfish.ASenvPropertyReader

            return false;
        }
    }

    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",
View Full Code Here

Examples of com.sun.enterprise.universal.glassfish.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();
    }
View Full Code Here

Examples of com.sun.enterprise.universal.glassfish.ASenvPropertyReader

            // Sahoo: This is truely a bad piece of code. During unit testing, we find an empty StartupContext.
            // To be consistent with earlier code (i.e., code that relied on StartupContext.getRootDirectory()),
            // I am setting user.dir as installRoot.
            installRoot = System.getProperty("user.dir");
        }
        asenv = new ASenvPropertyReader(new File(installRoot));

        // default
        if(this.root==null) {
            String envVar = System.getProperty(INSTANCE_ROOT_PROP_NAME);
            if (envVar!=null) {
View Full Code Here

Examples of com.sun.enterprise.universal.glassfish.ASenvPropertyReader

    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);
View Full Code Here

Examples of com.sun.enterprise.universal.glassfish.ASenvPropertyReader

    public UpgradeToolMain() {
        logger.log(Level.INFO,
            sm.getString("enterprise.tools.upgrade.start_upgrade_tool"));

        //- Have GF sets asenv.conf properties to system properties
        new ASenvPropertyReader();

        //- Default location of all traget server domains
        String rawTargetDomainRoot =
            System.getProperty(UpgradeConstants.AS_DOMAIN_ROOT);
        if (rawTargetDomainRoot == null) {
View Full Code Here

Examples of com.sun.enterprise.universal.glassfish.ASenvPropertyReader

    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);
View Full Code Here

Examples of com.sun.enterprise.universal.glassfish.ASenvPropertyReader

        if (templateJarPath == null || templateJarPath.isEmpty()) {
            String defaultTemplateName = Version.getDefaultDomainTemplate();
            if (defaultTemplateName == null || defaultTemplateName.isEmpty()) {
                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;
        }
        File template = new File(templateJarPath);
        if (!template.exists() || !template.getName().endsWith(".jar")) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.