Return-Path: Delivered-To: apmail-jakarta-ant-dev-archive@jakarta.apache.org Received: (qmail 48591 invoked by uid 500); 26 May 2001 11:07:34 -0000 Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk Reply-To: ant-dev@jakarta.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 48582 invoked from network); 26 May 2001 11:07:33 -0000 From: "Jose Alberto Fernandez" To: Subject: RE: tokenize each directory of a path Date: Sat, 26 May 2001 12:09:46 +0100 Message-ID: <000401c0e5d4$60425040$ec78883e@viquity.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 In-Reply-To: <427DFCD270242B48A2C3223D4AB180E264AC39@DCFLMAIL3.state.mn.us> Importance: Normal X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N Can't you just use java.io.File? It knows how to pick paths appart and path does not have to exist or anything. > -----Original Message----- > From: Wee, Merrick [mailto:Merrick.Wee@state.mn.us] > Sent: Saturday, May 26, 2001 7:01 AM > To: 'ant-dev@jakarta.apache.org' > Subject: tokenize each directory of a path > > > I need to parse out a path (test/directory/path) in order to > get the deepest > child "path" in other words > > Can anyone give me a recommendation on how to approach this? > > I've found the path tokenizer, some regex and perl5 (in the > ORO and regex > jakarta projects) but > I can't find any docs on how to use them, or even what tasks > are available, > just the javadoc. > Can I just stick in a java chunk in the xml somewhere, as it > is a pretty > simple job? Do I have to go ahead and write > my own task? Which I"ve done for other stuff, this just > seems like a simple > task. > > Any help?? > > > Thanks >