Package sagan.tools

Examples of sagan.tools.EclipseRelease


    public void addDownload(EclipseXmlDownload eclipseXmlDownload, EclipseXmlPackage eclipseXmlPackage,
                            EclipseXmlProduct eclipseXmlProduct) {
        String os = eclipseXmlDownload.getOs();
        EclipsePlatform platform = getEclipsePlatform(os);
        EclipseRelease release = getEclipseRelease(eclipseXmlProduct, platform);
        EclipsePackage eclipsePackage = getEclipsePackage(eclipseXmlPackage, os, release);
        Architecture architecture = getArchitecture(eclipseXmlDownload, os, release, eclipsePackage);
        architecture.getDownloadLinks().add(downloadLinkExtractor.createDownloadLink(eclipseXmlDownload));
        platforms.put(os, platform);
    }
View Full Code Here


        return platform;
    }

    private EclipseRelease getEclipseRelease(EclipseXmlProduct eclipseXmlProduct, EclipsePlatform platform) {
        String key = platform.getName() + eclipseXmlProduct.getName();
        EclipseRelease release = releases.get(key);
        if (release == null) {
            String name = new String(eclipseXmlProduct.getName()).replaceAll("(.+) Package Downloads.*", "$1");
            String version = new String(eclipseXmlProduct.getName()).replaceAll(".*\\(based on (.*)\\)", "$1");
            release = new EclipseRelease(name, version, new ArrayList<>());
            releases.put(key, release);
            platform.getReleases().add(release);
        }
        return release;
    }
View Full Code Here

TOP

Related Classes of sagan.tools.EclipseRelease

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.