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 17:47:35 GMT
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.  Obviously, I can't expect Ant to know what specific classes I
want when I say "*.class."  I suppose an alternative would be to create my
own task, but I would like to explore any built-in alternatives, first,
short
of using a copy task (without a patternset reference) for each file I want
to copy, because I am trying to make it easy for developers to define
JAR/CAB
configurations.

Thanks,
Ed

-----Original Message-----
From: Helliwell, Matthew [mailto:Matthew.Helliwell@DRKW.com]
Sent: Wednesday, June 06, 2001 1:34 AM
To: 'ant-user@jakarta.apache.org'
Subject: RE: Copy task


Not sure I understand this. If you're using a pattern like **/*.class are
you saying you want to know when no files match the pattern or when only x
files instead of x+1 files match?





-----Original Message-----
From: Ed Mack [mailto:edm@wrq.com]
Sent: 06 June 2001 01:03
To: 'ant-user@jakarta.apache.org'
Subject: Copy task


Hello,
(Warning: ANT (1.3) newbie)
I'm using a patternset in a Copy task, but if a file in the
patternset doesn't exist, Ant doesn't fail, or give me any
indication that the file couldn't be found.  I want to construct
a set of JARs, after a build, by copying a subset of files (defined
by the patternset) from a "classes" tree to a separate directory,
to then JAR them.  If a class file that I have defined in my
patternset doesn't exist in my compiled tree, I want to know about
it.

Solutions, alternatives?

Thanks,
Ed


----------------------------------------------------------------------
If you have received this e-mail in error or wish to read our e-mail 
disclaimer statement and monitoring policy, please refer to 
http://www.drkw.com/disc/email/ or contact the sender.
----------------------------------------------------------------------

Mime
View raw message