Class ProjectHelper

java.lang.Object
org.eclipse.tycho.helper.ProjectHelper

@Component(role=ProjectHelper.class) public class ProjectHelper extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.maven.project.MavenProject
     
    org.codehaus.plexus.util.xml.Xpp3Dom
    getDom(Object object)
     
    org.codehaus.plexus.util.xml.Xpp3Dom
    getPluginConfiguration(String pluginGroupId, String pluginArtifactId, String goal)
     
    org.codehaus.plexus.util.xml.Xpp3Dom
    getPluginConfiguration(String pluginGroupId, String pluginArtifactId, String goal, org.apache.maven.project.MavenProject project, org.apache.maven.execution.MavenSession mavenSession)
     
    List<org.apache.maven.model.Plugin>
    getPlugins(org.apache.maven.project.MavenProject project, org.apache.maven.execution.MavenSession mavenSession)
    Get all plugins for a project, either configured directly or specified on the commandline
    boolean
    hasPluginExecution(String pluginGroupId, String pluginArtifactId, String goal, org.apache.maven.project.MavenProject project, org.apache.maven.execution.MavenSession mavenSession)
    Check if there is at least one plugin execution configured for the specified plugin and goal

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ProjectHelper

      public ProjectHelper()
  • Method Details

    • getPlugins

      public List<org.apache.maven.model.Plugin> getPlugins(org.apache.maven.project.MavenProject project, org.apache.maven.execution.MavenSession mavenSession)
      Get all plugins for a project, either configured directly or specified on the commandline
      Parameters:
      project -
      mavenSession -
      Returns:
    • hasPluginExecution

      public boolean hasPluginExecution(String pluginGroupId, String pluginArtifactId, String goal, org.apache.maven.project.MavenProject project, org.apache.maven.execution.MavenSession mavenSession)
      Check if there is at least one plugin execution configured for the specified plugin and goal
      Parameters:
      pluginGroupId -
      pluginArtifactId -
      goal -
      project -
      mavenSession -
      Returns:
      true if an execution was found or false otherwise.
    • getPluginConfiguration

      public org.codehaus.plexus.util.xml.Xpp3Dom getPluginConfiguration(String pluginGroupId, String pluginArtifactId, String goal)
    • getPluginConfiguration

      public org.codehaus.plexus.util.xml.Xpp3Dom getPluginConfiguration(String pluginGroupId, String pluginArtifactId, String goal, org.apache.maven.project.MavenProject project, org.apache.maven.execution.MavenSession mavenSession)
    • getCurrentProject

      public org.apache.maven.project.MavenProject getCurrentProject()
    • getDom

      public org.codehaus.plexus.util.xml.Xpp3Dom getDom(Object object)