ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ed Mack <...@wrq.com>
Subject RE: Copy task
Date Wed, 06 Jun 2001 22:17:08 GMT
Thanks, Daine, I had not looked at this.  I'm not certain how I might use
it, in my specific situation, but I'll take a look at it.

Ed

-----Original Message-----
From: Diane Holt [mailto:holtdl@yahoo.com]
Sent: Wednesday, June 06, 2001 12:29 PM
To: ant-user@jakarta.apache.org
Subject: RE: Copy task


--- Ed Mack <edm@wrq.com> wrote:
> Well, you got me there, Mathew.  What I am really after is a way to
> catch the condition when a specific file isn't there. Take, for example:
> 
> <patternset id="jar-1">
>   <include name="com/mycom/foo/*.class" />
>   <include name="com/mycom/bar/bar.class" />
> </patternset>
> 
> I would like to know if the copy task that uses this patternset can't
> find bar.class.

The usual way of checking for specific files is to use <available>, in
combination with the "depends" and "if" attributes of <target>. 

Diane

=====
(holtdl@yahoo.com)



__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/

Mime
View raw message