public final class ProjectPlatform extends Object
JavaPlatform
defined within a project.Modifier and Type | Method and Description |
---|---|
static JavaPlatform |
forProject(Project owner,
FileObject platformHome,
String platformName,
String platformType)
Creates a transient
JavaPlatform defined in given Project . |
static JavaPlatform |
forProject(Project owner,
PropertyEvaluator eval,
String platformType)
Creates a transient
JavaPlatform defined in given Project . |
@CheckForNull public static JavaPlatform forProject(@NonNull Project owner, @NonNull PropertyEvaluator eval, @NonNull String platformType)
JavaPlatform
defined in given Project
.owner
- the project to return the JavaPlatform
foreval
- property evaluatorplatformType
- the type of the platform, eg. "j2se"JavaPlatform
for given project or null when platform cannot
be created@CheckForNull public static JavaPlatform forProject(@NonNull Project owner, @NonNull FileObject platformHome, @NonNull String platformName, @NonNull String platformType)
JavaPlatform
defined in given Project
.owner
- the project to return the JavaPlatform
forplatformHome
- the JavaPlatform
install folderplatformName
- the JavaPlatform
system name uniquely identifying the platform.
The name has to be valid property name, use the PropertyUtils.getUsablePropertyName(java.lang.String)
to create the name.
For the Ant based project the platform name is a value of platform.active
property.platformType
- the type of the platform, eg. "j2se"JavaPlatform
for given project or null when platform cannot
be created