Hi,
I have a problem when using the maven ant task 2.0.4 with Ant 1.7.0.
The fileset created by the <maven:dependencies> task raises a
NullPointerException when used in the Ant <pathconvert> task.
Here an excerpt of the code which runs into this problem:
<!-- The Artifact to be looked for with the maven dependencies
task -->
<property name="artifact.groupid" value="junit"/>
<property name="artifact.id" value="junit"/>
<property name="artifact.version" value="3.8.1"/>
<!-- Try retrieving the artifact as a fileset -->
<maven:dependencies filesetId="dependency.files">
<dependency groupId="${artifact.groupid}"
artifactId="${artifact.id}"
version="${artifact.version}"/>
</maven:dependencies>
<!-- The following does not fail, showing that a fileset
reference has
actually been defined -->
<fail message="Reference 'dependency.files' has not been set or
is not a fileset reference.">
<condition>
<not><isreference refid="dependency.files"
type="fileset"/></not>
</condition>
</fail>
<!-- But the following task throws a NullPointerException -->
<pathconvert property="echo.dependency.files"
refid="dependency.files"/>
Are the maven ant task supposed to work with the last Ant 1.7.0 version ?
Any idea about what causes this problem ?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]