ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diane Holt <>
Subject RE: conditional fileset
Date Thu, 05 Sep 2002 19:28:32 GMT
--- Dominique Devienne <> wrote:
> It's not pretty, but you could use Ant-contrib <tryCatch> which would
> reference the <fileset> internally, and if that throws an exception,
> then the <fileset> was not defined:

Seems a long way around when you could just tell people, "If you define a
resources.config fileset, set a property to go with it." Then just 'if' on
that property in your <copy> that copies the resources.config fileset.

  <fileset id="resources.config" .../>
  <property name="resources.config" value="true"/>

Having them add one line is a whole lot easier than jumping through hoops
trying to roundaboutly discern something that's easily settable.



Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message