ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ben Gill" <>
Subject Re: Ant paths
Date Wed, 04 May 2005 11:20:31 GMT

Yes Jan sent me a link to an article about this - it is perfect for what I 


&gt;From: Erik Hatcher &lt;;
&gt;Reply-To: &quot;Ant Users List&quot; &lt;;
&gt;To: &quot;Ant Users List&quot; &lt;;
&gt;Subject: Re: Ant paths
&gt;Date: Wed, 4 May 2005 07:05:14 -0400
&gt;MIME-Version: 1.0 (Apple Message framework v728)
&gt;Received: from ([]) by with Microsoft SMTPSVC(6.0.3790.211); Wed, 4 May 2005 
04:06:43 -0700
&gt;Received: (qmail 69630 invoked by uid 500); 4 May 2005 11:07:34 -0000
&gt;Received: (qmail 69572 invoked by uid 99); 4 May 2005 11:07:33 -0000
&gt;Received: pass ( local policy)
&gt;Received: from Unknown (HELO (  by (qpsmtpd/0.28) with ESMTP; Wed, 04 May 2005 04:07:33 -0700
&gt;Received: by (Postfix, from userid 504)id 
BAA4213E2006; Wed,  4 May 2005 07:05:29 -0400 (EDT)
&gt;Received: from [] 
( [])by (Postfix) with ESMTP id 8AE1F13E2005for 
&lt;;; Wed,  4 May 2005 07:05:16 -0400 (EDT)
&gt;X-Message-Info: JGTYoYF78jEHjJx36Oi8+Z3TmmkSEdPtfpLB7P/ybN8=
&gt;Mailing-List: contact; run by ezmlm
&gt;Precedence: bulk
&gt;List-Unsubscribe: &lt;;
&gt;List-Subscribe: &lt;;
&gt;List-Help: &lt;;
&gt;List-Post: &lt;;
&gt;List-Id: &quot;Ant Users List&quot; &lt;;
&gt;Delivered-To: mailing list
&gt;X-ASF-Spam-Status: No, hits=0.0 required=10.0tests=
&gt;References: &lt;BAY102-F27084D1D205632FC394B02CC180@phx.gbl&gt;
&gt;X-Mailer: Apple Mail (2.728)
&gt;X-Spam-Checker-Version: SpamAssassin 3.0.1 (2004-10-22) on javelina
&gt;X-Spam-Status: No, score=-1.2 required=5.0 
&gt;X-Virus-Checked: Checked
&gt;X-OriginalArrivalTime: 04 May 2005 11:06:43.0534 (UTC) 
&gt;On May 3, 2005, at 2:48 PM, Ben Gill wrote:
&gt;&gt;The only reason I am even including Spring.jar - is because Spring
&gt;&gt;API supports loading of files using the ant style **/*.xml
&gt;&gt;paths...  (which is really useful especially for my custom task..)
&gt;&gt;But in theory, I should not need to include spring.jar for this
&gt;&gt;support - as the logic to map these paths to File resoures must be
&gt;&gt;in the ant core API somewhere...
&gt;&gt;The question is, where are the classes that do this mapping
&gt;&gt;(between path + file(s)), are they public, and do they have the
&gt;&gt;interfaces I need?
&gt;&gt;I currently call:
&gt;&gt;r p =
&gt;&gt;                    new
&gt;&gt;      [] resources =
&gt;&gt;                if (resources != null) {
&gt;&gt;                    info(&quot;Loaded [&quot; + resources.length +

&gt;&gt;resources from file&quot;);
&gt;&gt;                    for (int resourceNum=0; resourceNum &lt;
&gt;&gt;resources.length; resourceNum++) {
&gt;&gt;resource = resources[resourceNum];
&gt;&gt;                        String fileName = resource.getFile
&gt;&gt;                        debug(&quot;Processing file [&quot; + 
fileName +
&gt;&gt;Any help on this would be appreciated - it may save me having to
&gt;&gt;include the 1.2MB spring.jar file with the distribution..
&gt;&gt;I am sure there is probably a core Ant class I could use for this
&gt;&gt;support - the code must be in there somewhere!
&gt;&gt;But including spring works anyhow..
&gt;Have a look at Ant's Fileset and the way tasks use it with the
&gt;DirectoryScanner (hopefully I'm not speaking of ancient API! :) -
&gt;the  facility to deal with patternsets (**/*.xml, for example) is
&gt;built  right in.
&gt;Taking a look at some of Ant's tasks source code will be very
&gt;helpful  in this regard - such as the &lt;copy&gt; task.
&gt;     Erik
&gt;To unsubscribe, e-mail:
&gt;For additional commands, e-mail:

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

View raw message