ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "glenn opdycke-hansen" <glenn...@gmail.com>
Subject Re: problem with junit/FileNotFound
Date Wed, 26 Apr 2006 13:35:30 GMT
That is how i am circumventing the FileNotFound exceptions.
If the testing ant script (with junit) is called directly, then relative
file paths work OK.
If that script is invoked via another ant script then relative paths do not
work.
Is this a limitation of ant?  Perhaps I coded something incorrectly?  Is
there a know problem?
--glenn

On 4/26/06, Burgess, Benjamin <BBurgess@tiaa-cref.org> wrote:
>
> Where you declare the directory, use <property name="" location=""/>
> instead of <property name="" value=""/>
>
> Basically, files/directories should be declared using the location
> attribute.
>
> Ben
>
> -----Original Message-----
> From: glenn opdycke-hansen [mailto:glennoph@gmail.com]
> Sent: Wednesday, April 26, 2006 7:24 AM
> To: ant user
> Subject: problem with junit/FileNotFound
>
> I have several ant scripts that invoke the next ant script via <ant>.
> The last ant script has a <junit> task that invokes Java code.
> There is a problem in the Java code that the File class cannot find
> the file with a relative path.
> I can resolve this by using the complete path to the file.
> This problem does not occur if the test ant script is directly
> invoked.  (sounds like a basedir problem.)
>
> Suggestions?
>
> --glenn
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>
>
> **************************************************************
> This message, including any attachments, contains confidential information
> intended for a specific individual and purpose, and is protected by law.  If
> you are not the intended recipient, please contact sender immediately by
> reply e-mail and destroy all copies.  You are hereby notified that any
> disclosure, copying, or distribution of this message, or the taking of any
> action based on it, is strictly prohibited.
> TIAA-CREF
> **************************************************************
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message