I'm using Ant 1.6.2 on Windows. I should have given the precise issue: <property name="mypropname" value="X:/opt/odi/success.txt"/>
Where X is a mapped network drive... not that that should make any difference. The exact error I'm getting is: java.io.FileNotFoundException: X:\tmp\success.txt (The system cannot find the path specified) -jim- -----Original Message----- From: Ben Stringer [mailto:[EMAIL PROTECTED] Sent: Thursday, September 15, 2005 11:19 PM To: Ant Users List Subject: Re: why do I get a java FileNotFound when defining a property On Fri, 2005-09-16 at 01:09 -0400, Lasher, James L wrote: > I have defined a property: > > <property name="mypropname" value="/opt/odi/success.txt"/> > > If the /opt/odi/success.txt file does not yet exist, I get a > java.io.FileNotFound Exception and the build fails. > > Is there any way around this? I'd like to just set this property up > with the name of a file that will exist later. I imagine I could wait > to set this up until after I know the file has been created, but why > won't Ant let me do it the way I'd like? Hi Jim, I don't see this problem - I tried it out on Ant 1.6.1 and 1.6.5 on Linux. Which version are you using? I used this simple target to test: <target name="test"> <property name="mypropname" value="/opt/odi/success.txt"/> </target> and it runs with no errors. Cheers, Ben --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]