You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Jesse McConnell (JIRA)" <ji...@codehaus.org> on 2005/08/15 21:47:57 UTC

[jira] Created: (MNG-741) new method: addResource( String directory, String includes, String excludes ) on MavenProject

new method: addResource( String directory, String includes, String excludes ) on MavenProject
---------------------------------------------------------------------------------------------

         Key: MNG-741
         URL: http://jira.codehaus.org/browse/MNG-741
     Project: Maven 2
        Type: Improvement
 Reporter: Jesse McConnell
 Attachments: add_resource_maven_project.patch

in the sablecc plugin I have a case of *.dat files getting created that need to get jared up with the actual project so I needed to add them as a resource to the project...since the plugin developers should have to have a minimal exposure to internals of maven I added this method to MavenProject as a convience method...also means I have one less dependency that the plugin itself needs to reference...whichever one model is a part of.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Closed: (MNG-741) new method: addResource( String directory, String includes, String excludes ) on MavenProject

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-741?page=all ]
     
John Casey closed MNG-741:
--------------------------

    Resolution: Fixed

Use MavenProjectHelper.addResource( MavenProject project, String dir, List includes, List excludes)

expression for this helper class as a mojo param is:

${component.org.apache.maven.project.MavenProjectHelper}

> new method: addResource( String directory, String includes, String excludes ) on MavenProject
> ---------------------------------------------------------------------------------------------
>
>          Key: MNG-741
>          URL: http://jira.codehaus.org/browse/MNG-741
>      Project: Maven 2
>         Type: Improvement
>     Reporter: Jesse McConnell
>  Attachments: add_resource_maven_project.patch
>
>
> in the sablecc plugin I have a case of *.dat files getting created that need to get jared up with the actual project so I needed to add them as a resource to the project...since the plugin developers should have to have a minimal exposure to internals of maven I added this method to MavenProject as a convience method...also means I have one less dependency that the plugin itself needs to reference...whichever one model is a part of.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org