You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Jeff Maxwell (JIRA)" <ji...@codehaus.org> on 2006/05/18 18:50:40 UTC

[jira] Updated: (MNG-2304) artifact:dependencies filesetId attribute causes NPE

     [ http://jira.codehaus.org/browse/MNG-2304?page=all ]

Jeff Maxwell updated MNG-2304:
------------------------------

    Attachment: MNG-2304.patch

> artifact:dependencies  filesetId attribute causes NPE 
> ------------------------------------------------------
>
>          Key: MNG-2304
>          URL: http://jira.codehaus.org/browse/MNG-2304
>      Project: Maven 2
>         Type: Bug

>   Components: Ant tasks
>     Versions: 2.0.4
>  Environment: Ant 1.6.5, Maven tasks for Ant 2.0.4, Solaris 10, Jdk 1.4.2_10 
>     Reporter: Jeff Maxwell
>  Attachments: MNG-2304.patch
>
>
> Using the maven ant tasks I receive a null pointer if I set a fileset ref and then set a property with that ref.
> However if a set a path ref I do not get a NPE. 
> I think is caused by the fileset not having its project set.
> If this is the case the following line needs to be added to the DependenciesTask:
> 194d194
> <         fileSet.setProject( getProject() );
> Exception: 
> java.lang.NullPointerException 
>         at org.apache.tools.ant.types.AbstractFileSet.setupDirectoryScanner(AbstractFileSet.java:382) 
> <!-- Script that fails --> 
> <artifact:dependencies verbose="true" 
>   filesetId="maven.dependency.fileset" 
>   useScope="compile"> 
>   <pom refid="maven.project.pom" /> 
>   <localRepository refid="maven.local.repository" /> 
> </artifact:dependencies> 
> <property name="my.fileset.property" refid="maven.dependency.fileset"/> 
> <!-- Script that works --> 
> <artifact:dependencies verbose="true" 
> pathId="maven.dependency.path" 
> useScope="compile"> 
> <pom refid="maven.project.pom" /> 
> <localRepository refid="maven.local.repository" /> 
> </artifact:dependencies> 
> <property name="my.path.property" refid="maven.dependency.path"/>

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