You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Hakan Koseoglu <ha...@datafit.co.uk> on 2001/09/17 15:14:49 UTC

Null pointer exception with depend

Hi all,

I'm trying to use Ant 1.4 instead of 1.3 and my build fails with the 
following error:

check:

BUILD FAILED

/home/hakank/file.xml:85: java.lang.NullPointerException

where line 85 and abouts are as follows

Line 82:    <target name="check" depends="tools">
Line 83:    <!-- this will recursively delete any class -->
Line 84:    <!-- files that depend on out-of-date source -->
Line 85:    <depend srcdir="${src}" closure="true">
Line 86:      <patternset refid="SOURCE"/>
Line 87:    </depend>
Line 88:  </target>

This bit works fine with Ant 1.3. 
What is wrong here?
-- 
Hakan Koseoglu

PCMS Datafit Ltd.
3 Avro Court
Ermine Business Park
Huntingdon
Cambs PE29 6XS

Tel: +44-1480-435456
Fax: +44-1480-434012
________________________________________________

The information contained in this e-mail is intended only for the person
or entity to which it is addressed and may contain confidential and/or
privileged material. If you are not the intended recipient of this
e-mail, the use of this information or any disclosure, copying or
distribution is prohibited and may be unlawful.

If you received this in error, please contact the sender and delete the
material from any computer.

The views expressed in this e-mail may not necessarily be the views of
The PCMS Group plc and should not be taken as authority to carry out any
instruction contained.



Re: Null pointer exception with depend

Posted by Conor MacNeill <co...@cortexebusiness.com.au>.
It is a bug. It is fixed in CVS and will be in a 1.4.1 release. A 
workaround is to specify a cache directory.

Conor

Hakan Koseoglu wrote:

> Hi all,
> 
> I'm trying to use Ant 1.4 instead of 1.3 and my build fails with the 
> following error:
> 
> check:
> 
> BUILD FAILED
> 
> /home/hakank/file.xml:85: java.lang.NullPointerException
> 
> where line 85 and abouts are as follows
> 
> Line 82:    <target name="check" depends="tools">
> Line 83:    <!-- this will recursively delete any class -->
> Line 84:    <!-- files that depend on out-of-date source -->
> Line 85:    <depend srcdir="${src}" closure="true">
> Line 86:      <patternset refid="SOURCE"/>
> Line 87:    </depend>
> Line 88:  </target>
> 
> This bit works fine with Ant 1.3. 
> What is wrong here?
>