ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bertrand Delacretaz <>
Subject How to detect missing jars in a <path>?
Date Mon, 12 Dec 2005 09:20:25 GMT

I'd like a construct like

<path id="xyz">
   <pathelement path="ok.jar"/>
   <pathelement path="missing.jar"/>

to fail if missing.jar is not available.

Is there a way without using a separate <available/> element (which 
means having the missing.jar name in two places, unless I'm missing 

Making the Path class configurable to cause an error instead of logging 
the "dropping " + f + " from path as it doesn't exist" could be a 
solution, but I'm wondering if there's an easier way, without 
duplicating jar names.

   Bertrand Delacretaz
   independent consultant, Lausanne, Switzerland

View raw message