Changing location to value made no difference. Same results.

Mike West
[EMAIL PROTECTED]


-----Original Message-----
From: Dominique Devienne [mailto:[EMAIL PROTECTED]]
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:[EMAIL PROTECTED]] 
Sent: Friday, July 19, 2002 2:12 PM
To: '[EMAIL PROTECTED]'
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
[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to