Package org.netbeans.gradle.project.api.entry

Examples of org.netbeans.gradle.project.api.entry.ProjectPlatform


                    = DefaultPropertySources.findPlatformSource("j2se", "1.3", true);

            @Override
            public ProjectPlatform getValue() {
                if (isReliableJavaVersion()) {
                    ProjectPlatform platform = tryGetScriptPlatform();
                    if (platform != null) {
                        return platform;
                    }
                }
                return AbstractProjectPlatformSource.getDefaultPlatform();
View Full Code Here


    protected abstract ProjectPlatform tryGetValue();

    @Override
    public final ProjectPlatform getValue() {
        ProjectPlatform value = tryGetValue();
        return value != null ? value : getDefaultPlatform();
    }
View Full Code Here

        JavaPlatform currentScriptPlatform = properties.getScriptPlatform().getValue();
        jScriptPlatformCombo.setSelectedItem(new JavaPlatformComboItem(currentScriptPlatform));
        jScriptPlatformInherit.setSelected(properties.getScriptPlatform().isDefault());

        ProjectPlatform currentPlatform = properties.getPlatform().getValue();
        jPlatformCombo.setSelectedItem(new ProjectPlatformComboItem(currentPlatform));
        jPlatformComboInherit.setSelected(properties.getPlatform().isDefault());

        jSourceEncoding.setText(properties.getSourceEncoding().getValue().name());
        jSourceEncodingInherit.setSelected(properties.getSourceEncoding().isDefault());
View Full Code Here

            String sourceEncoding = snapshot.getSourceEncoding().getValue().name();
            addSimpleChild(root, SOURCE_ENCODING_NODE, sourceEncoding);
        }

        if (!snapshot.getPlatform().isDefault()) {
            ProjectPlatform platform = snapshot.getPlatform().getValue();
            addSimpleChild(root, PLATFORM_NAME_NODE, platform.getName());
            addSimpleChild(root, PLATFORM_NODE, platform.getVersion());
        }

        if (!snapshot.getSourceLevel().isDefault()) {
            String sourceLevel = snapshot.getSourceLevel().getValue();
            addSimpleChild(root, SOURCE_LEVEL_NODE, sourceLevel);
View Full Code Here

                getPathResources(sources, invalid));
    }

    private void loadBootClassPath() {
        List<PathResourceImplementation> platformResources = new LinkedList<>();
        ProjectPlatform platform = currentPlatform;
        if (platform == null) {
            platform = getPlatformProperty().getValue();
        }
        for (URL url: platform.getBootLibraries()) {
            platformResources.add(ClassPathSupport.createResource(url));
        }

        setClassPathResources(SpecialClassPath.BOOT, platformResources);
    }
View Full Code Here

    }

    private ClassPath getJdkSources() {
        GradleProperty.BuildPlatform platformProperty
                = javaExt.getOwnerProjectLookup().lookup(GradleProperty.BuildPlatform.class);
        ProjectPlatform platform = platformProperty.getValue();
        return ClassPathSupport.createClassPath(platform.getSourcePaths().toArray(new URL[0]));
    }
View Full Code Here

        return null;
    }

    private ProjectPlatform findPlatformFromAll() {
        for (GradleProjectPlatformQuery query: Lookup.getDefault().lookupAll(GradleProjectPlatformQuery.class)) {
            ProjectPlatform platform = query.tryFindPlatformByName(name, version);
            if (platform != null) {
                return platform;
            }
        }
        return null;
View Full Code Here

    private final ConcurrentMap<DomElementKey, AuxConfigProperty> auxProperties;

    private final MutableProperty<Object> builtInChangeSignal;

    public MemProjectProperties() {
        ProjectPlatform defaultPlatform = AbstractProjectPlatformSource.getDefaultPlatform();
        JavaPlatform defaultJavaPlatform = JavaPlatform.getDefault();

        this.builtInChangeSignal = new DefaultMutableProperty<>(new Object(), true, false);
        this.sourceLevel = new DefaultMutableProperty<>(getSourceLevelFromPlatform(defaultPlatform), true, false);
        this.platform = new DefaultMutableProperty<>(defaultPlatform, true, false);
View Full Code Here

TOP

Related Classes of org.netbeans.gradle.project.api.entry.ProjectPlatform

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.