NullPointerException when using empty <exclude> to preserve base directory of 
fileset
-------------------------------------------------------------------------------------

                 Key: MCLEAN-44
                 URL: http://jira.codehaus.org/browse/MCLEAN-44
             Project: Maven 2.x Clean Plugin
          Issue Type: Bug
    Affects Versions: 2.4
            Reporter: Benjamin Bentmann


There was a bogus unit test in the plugin mentioning MCLEAN-7 which is about 
cleaning a directory, i.e. removing all its contents but keeping the directory 
itself. In essence, trying to configure the plugin to exclude the base 
directory (path = "") via
{code:xml}
<fileset>
  <directory>thedir</directory>
  <includes>
    <include>**</include>
  </includes>
  <excludes>
    <exclude></exclude>
  </excludes>
</fileset>
{code}
yields a NPE from the code scanning the file system.

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