ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mills, Maurice" <Maurice_Mi...@CINFIN.com>
Subject RE: fileset
Date Wed, 07 Mar 2001 12:25:21 GMT
Use curly brackets instead of parenthesis.  That should solve the problem.

-----Original Message-----
From: msew [mailto:msew@ev1.net]
Sent: Wednesday, March 07, 2001 6:24 AM
To: ant-user@jakarta.apache.org
Subject: fileset


so in fileset you can do:


     <copy todir="${deploy.home)/classes">
       <fileset dir="build" />
     </copy>


but you can not seemingly do:

     <copy todir="${deploy.home)/classes">
       <fileset dir="$(build.home)" />
     </copy>


where:

   <property name="deploy.home" value="../foo/bar/baz" />
   <property name="build.home" value="../../foo/bar/baz" />



instead of getting the value of the property you get:

BUILD FAILED

<path>(build.home) not found



this is a bug right?


if the fileset can't take a variable as the value to the dir 
attribute  then you are hard coding locations in your buildfile.  BAD BAD
BAD



msew



Mime
View raw message