org.apache.maven.project
Class DefaultMavenProjectHelper

java.lang.Object
  extended by org.codehaus.plexus.logging.AbstractLogEnabled
      extended by org.apache.maven.project.DefaultMavenProjectHelper
All Implemented Interfaces:
MavenProjectHelper, LogEnabled

@Component(role=MavenProjectHelper.class)
public class DefaultMavenProjectHelper
extends AbstractLogEnabled
implements MavenProjectHelper


Field Summary
 
Fields inherited from interface org.apache.maven.project.MavenProjectHelper
ROLE
 
Constructor Summary
DefaultMavenProjectHelper()
           
 
Method Summary
 void addResource(MavenProject project, String resourceDirectory, List<String> includes, List<String> excludes)
          Add a resource directory to the project.
 void addTestResource(MavenProject project, String resourceDirectory, List<String> includes, List<String> excludes)
          Add a test resource directory to the project.
 void attachArtifact(MavenProject project, Artifact artifact)
          Add an attached artifact or replace the file for an existing artifact.
 void attachArtifact(MavenProject project, File artifactFile, String artifactClassifier)
          See MavenProjectHelper.attachArtifact(MavenProject, String, String, java.io.File), but with type set to null.
 void attachArtifact(MavenProject project, String artifactType, File artifactFile)
          * See MavenProjectHelper.attachArtifact(MavenProject, String, String, java.io.File), but with classifier set to null.
 void attachArtifact(MavenProject project, String artifactType, String artifactClassifier, File artifactFile)
          Add or replace an artifact to the current project.
 
Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultMavenProjectHelper

public DefaultMavenProjectHelper()
Method Detail

attachArtifact

public void attachArtifact(MavenProject project,
                           String artifactType,
                           String artifactClassifier,
                           File artifactFile)
Description copied from interface: MavenProjectHelper
Add or replace an artifact to the current project.

Specified by:
attachArtifact in interface MavenProjectHelper
Parameters:
project - the project reference.
artifactType - the type (e.g. jar) or null.
artifactClassifier - the classifier or null.
artifactFile - the file for the artifact.

attachArtifact

public void attachArtifact(MavenProject project,
                           String artifactType,
                           File artifactFile)
Description copied from interface: MavenProjectHelper
* See MavenProjectHelper.attachArtifact(MavenProject, String, String, java.io.File), but with classifier set to null.

Specified by:
attachArtifact in interface MavenProjectHelper
Parameters:
project - project reference.
artifactType - artifact type.
artifactFile - arrifact file.

attachArtifact

public void attachArtifact(MavenProject project,
                           File artifactFile,
                           String artifactClassifier)
Description copied from interface: MavenProjectHelper
See MavenProjectHelper.attachArtifact(MavenProject, String, String, java.io.File), but with type set to null.

Specified by:
attachArtifact in interface MavenProjectHelper
Parameters:
project - project reference.
artifactFile - artifact file.
artifactClassifier - artifact classifier.

attachArtifact

public void attachArtifact(MavenProject project,
                           Artifact artifact)
Add an attached artifact or replace the file for an existing artifact.

Parameters:
project - project reference.
artifact - artifact to add or replace.
See Also:
MavenProject.addAttachedArtifact(org.apache.maven.artifact.Artifact)

addResource

public void addResource(MavenProject project,
                        String resourceDirectory,
                        List<String> includes,
                        List<String> excludes)
Description copied from interface: MavenProjectHelper
Add a resource directory to the project.

Specified by:
addResource in interface MavenProjectHelper
Parameters:
project - project reference.
resourceDirectory - directory.
includes - include patterns.
excludes - exclude patterns.

addTestResource

public void addTestResource(MavenProject project,
                            String resourceDirectory,
                            List<String> includes,
                            List<String> excludes)
Description copied from interface: MavenProjectHelper
Add a test resource directory to the project.

Specified by:
addTestResource in interface MavenProjectHelper
Parameters:
project - project reference.
resourceDirectory - directory.
includes - include patterns.
excludes - exclude patterns.


Copyright © 2001–2013 The Apache Software Foundation. All rights reserved.