public class TychoProjectUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
TYCHO_NOT_CONFIGURED |
Constructor and Description |
---|
TychoProjectUtils() |
Modifier and Type | Method and Description |
---|---|
static DependencyArtifacts |
getDependencyArtifacts(org.apache.maven.project.MavenProject project)
Returns the
DependencyArtifacts instance associated with the given project. |
static java.util.List<DependencySeed> |
getDependencySeeds(org.apache.maven.project.MavenProject project)
Returns the (editable) list of
DependencySeed s for the given project. |
static ExecutionEnvironmentConfiguration |
getExecutionEnvironmentConfiguration(org.apache.maven.project.MavenProject project) |
static TargetPlatform |
getTargetPlatform(org.apache.maven.project.MavenProject project)
Returns the final target platform of the given project.
|
static TargetPlatformConfiguration |
getTargetPlatformConfiguration(org.apache.maven.project.MavenProject project)
Returns the
TargetPlatformConfiguration instance associated with the given project. |
static TargetPlatform |
getTargetPlatformIfAvailable(org.apache.maven.project.MavenProject project)
Returns the final target platform of the given project, or
null if the target
platform is not available. |
private static final java.lang.String TYCHO_NOT_CONFIGURED
public static DependencyArtifacts getDependencyArtifacts(org.apache.maven.project.MavenProject project) throws java.lang.IllegalStateException
DependencyArtifacts
instance associated with the given project.project
- a Tycho projectnull
java.lang.IllegalStateException
- if the given project does not have the resolved project dependencies storedpublic static TargetPlatformConfiguration getTargetPlatformConfiguration(org.apache.maven.project.MavenProject project) throws java.lang.IllegalStateException
TargetPlatformConfiguration
instance associated with the given project.project
- a Tycho projectnull
java.lang.IllegalStateException
- if the given project does not have an associated target platform configurationpublic static TargetPlatform getTargetPlatform(org.apache.maven.project.MavenProject project)
public static TargetPlatform getTargetPlatformIfAvailable(org.apache.maven.project.MavenProject project)
null
if the target
platform is not available.
Projects with -Dtycho.targetPlatform use the legacy LocalDependencyResolver, which doesn't
provide the TargetPlatform
interface.public static ExecutionEnvironmentConfiguration getExecutionEnvironmentConfiguration(org.apache.maven.project.MavenProject project)
public static java.util.List<DependencySeed> getDependencySeeds(org.apache.maven.project.MavenProject project)
DependencySeed
s for the given project.