ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "West, Mike" <mike.w...@experian.com>
Subject FW: <property> problem with ANT 1.5 on Windows 2000
Date Mon, 22 Jul 2002 15:12:59 GMT
Changing location to value made no difference. Same results.

Mike West
mike.west@experian.com


-----Original Message-----
From: Dominique Devienne [mailto:DDevienne@lgc.com]
Sent: Friday, July 19, 2002 12:20 PM
To: 'Ant Users List'
Subject: RE: <property> problem with ANT 1.5 on Windows 2000


Change 'location' by 'value'. However, it is not _usual_ to have your
sources in a different place than the build script that compiles them...
--DD

-----Original Message-----
From: West, Mike [mailto:mike.west@experian.com] 
Sent: Friday, July 19, 2002 2:12 PM
To: 'ant-user@jakarta.apache.org'
Subject: <property> problem with ANT 1.5 on Windows 2000

Fairly new to ANT and I have the following line in my build.xml file:
<property name="src"
   location="z:/development/source/code/java/myproj"/>

Note that I'm pointing to a network drive I've assigned z: to.

My target looks like:
<target name="compile"><javac destdir="." srcdir="$(src)"/></target>

I run ant from a directory (C:\myprojdir) on my C: drive I get:
file:c:/myprojdir/build.xml:5: srcdir "C:\myprojdir\$(src)" does not exist!

Changing my target to say srcdir="/$(src)" gets almost the same thing:
file:c:/myprojdir/build.xml:5: srcdir "C:\$(src)" does not exist!

So I'm getting either my c:\ or my project directory prepended. However
hardcoding the z: location in the target srcdir parameter works just fine.

Any help here? Thanks.

Mike West
mike.west@experian.com


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

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


Mime
View raw message