You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by jmaxwell <je...@gmail.com> on 2006/05/18 17:12:34 UTC

Maven dependencies Fileset causes NPE

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.

If this is a Maven ant task prob I will ask there.

Exception:
java.lang.NullPointerException
	at
org.apache.tools.ant.types.AbstractFileSet.setupDirectoryScanner(AbstractFileSet.java:382)


Env:
  Ant 1.6.5
  Maven tasks for Ant 2.0.4
  Solaris 10
  Jdk 1.4.2_10

<!-- 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"/>
--
View this message in context: http://www.nabble.com/Maven-dependencies-Fileset-causes-NPE-t1643993.html#a4452722
Sent from the Ant - Users forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: Maven dependencies Fileset causes NPE

Posted by jmaxwell <je...@gmail.com>.
This a bug in the Maven task.
I opened a bug and submitted a patch:
http://jira.codehaus.org/browse/MNG-2304


jmaxwell wrote:
> 
> 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.
> 
> If this is a Maven ant task prob I will ask there.
> 
> Exception:
> java.lang.NullPointerException
> 	at
> org.apache.tools.ant.types.AbstractFileSet.setupDirectoryScanner(AbstractFileSet.java:382)
> 
> 
> Env:
>   Ant 1.6.5
>   Maven tasks for Ant 2.0.4
>   Solaris 10
>   Jdk 1.4.2_10
> 
> <!-- 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"/>
> 

--
View this message in context: http://www.nabble.com/Maven-dependencies-Fileset-causes-NPE-t1643993.html#a4455421
Sent from the Ant - Users forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org