ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Stringer <...@burbong.com>
Subject Re: why do I get a java FileNotFound when defining a property
Date Fri, 16 Sep 2005 05:18:54 GMT
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: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message