Package org.mevenide.idea.project.properties

Examples of org.mevenide.idea.project.properties.PropertiesManager


    public ProxySettings(final Project pProject) {
        super(pProject);
    }

    public String getProxyHost(final String pPomUrl) {
        final PropertiesManager mgr = PropertiesManager.getInstance(project);
        final String value = mgr.getProperty(pPomUrl, "maven.proxy.host");
        if (value != null && value.trim().length() == 0)
            return null;
        return value;
    }
View Full Code Here


            return null;
        return value;
    }

    public Integer getProxyPort(final String pPomUrl) {
        final PropertiesManager mgr = PropertiesManager.getInstance(project);
        final String portValue = mgr.getProperty(pPomUrl, "maven.proxy.port");
        if (portValue == null || portValue.trim().length() == 0)
            return null;

        return Integer.valueOf(portValue);
    }
View Full Code Here

        return Integer.valueOf(portValue);
    }

    public String getProxyUsername(final String pPomUrl) {
        final PropertiesManager mgr = PropertiesManager.getInstance(project);
        final String value = mgr.getProperty(pPomUrl, "maven.proxy.username");
        if (value != null && value.trim().length() == 0)
            return null;
        return value;
    }
View Full Code Here

            return null;
        return value;
    }

    public String getProxyPassword(final String pPomUrl) {
        final PropertiesManager mgr = PropertiesManager.getInstance(project);
        final String value = mgr.getProperty(pPomUrl, "maven.proxy.password");
        if (value != null && value.trim().length() == 0)
            return null;
        return value;
    }
View Full Code Here

        return plugin;
    }

    private VirtualFile getPluginsCacheFile() {
        final PropertiesManager propsMgr = PropertiesManager.getInstance(project);
        final String cacheDir = propsMgr.getProperty(CACHE_DIR_PROPERTY);
        if (cacheDir == null || cacheDir.trim().length() == 0)
            return null;

        final StringBuilder buf = new StringBuilder(100);
        buf.append("file://").append(cacheDir.replace(File.separatorChar, '/'));
View Full Code Here

        return repos.values().toArray(new IRepositoryReader[repos.size()]);
    }

    public IRepositoryReader[] getRemoteRepositoryReaders(final String pPomUrl) {
        final PropertiesManager mgr = PropertiesManager.getInstance(project);
        final String value = mgr.getProperty(pPomUrl, "maven.repo.remote");
        if (value == null || value.trim().length() == 0)
            return EMPTY_REPO_ARRAY;

        final String[] repoList = value.split(",");
        final Set<String> urls = new HashSet<String>(repoList.length);
View Full Code Here

            return null;
        }
    }

    public IRepositoryReader getLocalRepositoryReader(final String pPomUrl) {
        final PropertiesManager mgr = PropertiesManager.getInstance(project);
        final String value = mgr.getProperty(pPomUrl, "maven.repo.local");
        if (value == null || value.trim().length() == 0)
            return null;

        final File root = new File(value);
        return RepositoryReaderFactory.createLocalRepositoryReader(root);
View Full Code Here

TOP

Related Classes of org.mevenide.idea.project.properties.PropertiesManager

Copyright © 2018 www.massapicom. 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.