Examples of GradleLocation


Examples of org.netbeans.gradle.project.properties.GradleLocation

            result.setPlatform(new ProjectPlatformSource(platformName, platformVersion, false));
        }

        String gradleHomeStr = tryGetValueOfNode(root, GRADLE_HOME_NODE);
        if (gradleHomeStr != null) {
            GradleLocation gradleHome = AbstractProjectProperties.getGradleLocationFromString(gradleHomeStr);
            result.setGradleHome(asConst(gradleHome, false));
        }

        PropertySource<JavaPlatform> scriptPlatform = readPlatform(root, SCRIPT_PLATFORM_NODE);
        if (scriptPlatform != null) {
View Full Code Here

Examples of org.netbeans.gradle.project.properties.GradleLocation

        File gradleUserHome = GlobalGradleSettings.getGradleUserHomeDir().getValue();
        if (gradleUserHome != null) {
            result.useGradleUserHomeDir(gradleUserHome);
        }

        GradleLocation gradleLocation;
        ProjectProperties projectProperties = gradleProject.getLoadedProperties(cancelToken);
        if (projectProperties == null) {
            LOGGER.warning("Could not wait for retrieving the project properties. Using the globally defined one");
            gradleLocation = GlobalGradleSettings.getGradleHome().getValue();
        }
        else {
            gradleLocation = projectProperties.getGradleLocation().getValue();
        }

        gradleLocation.applyLocation(gradleProject, new GradleLocation.Applier() {
            @Override
            public void applyVersion(String versionStr) {
                result.useGradleVersion(versionStr);
            }
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.