public class TychoProjectUtils extends Object
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 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. |
public static DependencyArtifacts getDependencyArtifacts(org.apache.maven.project.MavenProject project) throws IllegalStateException
DependencyArtifacts
instance associated with the given project.project
- a Tycho projectnull
IllegalStateException
- if the given project does not have the resolved project dependencies storedpublic static TargetPlatformConfiguration getTargetPlatformConfiguration(org.apache.maven.project.MavenProject project) throws IllegalStateException
TargetPlatformConfiguration
instance associated with the given project.project
- a Tycho projectnull
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 List<DependencySeed> getDependencySeeds(org.apache.maven.project.MavenProject project)
DependencySeed
s for the given project.Copyright © 2008–2022 Eclipse Foundation. All rights reserved.