fileset directory does not work as expected when cleaning "modules" in 
sub-directories
--------------------------------------------------------------------------------------

                 Key: MCLEAN-27
                 URL: http://jira.codehaus.org/browse/MCLEAN-27
             Project: Maven 2.x Clean Plugin
          Issue Type: Improvement
    Affects Versions: 2.1.1
            Reporter: Jacob Robertson


Following the example given on the plugin site, I used a fileset with a 
directory like so.

{code}
<plugin>
        <artifactId>maven-clean-plugin</artifactId>
        <configuration>
                <filesets>
                        <fileset>
                                <directory>
                                        src/main/application
                                </directory>
                                <includes>
                                        <include>*.jar</include>
                                </includes>
                        </fileset>
                </filesets>
        </configuration>
</plugin>
{code}

I did this, or a variation on it, to several projects.  I then created a parent 
pom in the directory above those projects, added them as modules in that pom, 
and ran "mvn clean" expecting to have those specified directories cleaned for 
me (of all jar files).  However, it did not work.  To get it to work, I had to 
prefix my directories with ${basedir}, for example 
"${basedir}/src/main/application".

If this is the desired behavior, I recommend adding one sentence to the 
documentation to explain this.


-- 
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

        

Reply via email to