Package org.eclipse.tycho.core.utils
Class TychoProjectUtils
- java.lang.Object
-
- org.eclipse.tycho.core.utils.TychoProjectUtils
-
public class TychoProjectUtils extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String
TYCHO_NOT_CONFIGURED
-
Constructor Summary
Constructors Constructor Description TychoProjectUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DependencyArtifacts
getDependencyArtifacts(ReactorProject project)
Returns theDependencyArtifacts
instance associated with the given project.static java.util.List<DependencySeed>
getDependencySeeds(ReactorProject project)
Returns the (editable) list ofDependencySeed
s for the given project.static ExecutionEnvironmentConfiguration
getExecutionEnvironmentConfiguration(ReactorProject project)
static TargetPlatform
getTargetPlatform(ReactorProject project)
Returns the final target platform of the given project.static TargetPlatformConfiguration
getTargetPlatformConfiguration(ReactorProject project)
Returns theTargetPlatformConfiguration
instance associated with the given project.static TargetPlatform
getTargetPlatformIfAvailable(ReactorProject project)
Returns the final target platform of the given project, ornull
if the target platform is not available.
-
-
-
Field Detail
-
TYCHO_NOT_CONFIGURED
private static final java.lang.String TYCHO_NOT_CONFIGURED
- See Also:
- Constant Field Values
-
-
Method Detail
-
getDependencyArtifacts
public static DependencyArtifacts getDependencyArtifacts(ReactorProject project) throws java.lang.IllegalStateException
Returns theDependencyArtifacts
instance associated with the given project.- Parameters:
project
- a Tycho project- Returns:
- the resolved dependencies of the given project; never
null
- Throws:
java.lang.IllegalStateException
- if the given project does not have the resolved project dependencies stored
-
getTargetPlatformConfiguration
public static TargetPlatformConfiguration getTargetPlatformConfiguration(ReactorProject project) throws java.lang.IllegalStateException
Returns theTargetPlatformConfiguration
instance associated with the given project.- Parameters:
project
- a Tycho project- Returns:
- the target platform configuration for the given project; never
null
- Throws:
java.lang.IllegalStateException
- if the given project does not have an associated target platform configuration
-
getTargetPlatform
public static TargetPlatform getTargetPlatform(ReactorProject project)
Returns the final target platform of the given project.
-
getTargetPlatformIfAvailable
public static TargetPlatform getTargetPlatformIfAvailable(ReactorProject project)
Returns the final target platform of the given project, ornull
if the target platform is not available. Projects with -Dtycho.targetPlatform use the legacy LocalDependencyResolver, which doesn't provide theTargetPlatform
interface.
-
getExecutionEnvironmentConfiguration
public static ExecutionEnvironmentConfiguration getExecutionEnvironmentConfiguration(ReactorProject project)
-
getDependencySeeds
public static java.util.List<DependencySeed> getDependencySeeds(ReactorProject project)
Returns the (editable) list ofDependencySeed
s for the given project.
-
-