ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject RE: Next tutorial and Task
Date Thu, 25 Sep 2003 12:52:57 GMT
.... or as inline text ... 


Find
Description
Searchs in a given path for a file and returns the absolute to it as
property. If delimiter is set this task returns all found locations.

Parameters
Attribute 
  Description 
  Required 

file 
  The name of the file to search. 
  yes 

location 
  The name of the property where to store the location 
  yes 

delimiter 
  A delimiter to use when returning the list 
  only if the list is required 

Parameters specified as nested elements 

path
The path where to search the file.

Examples
    <find file="ant.jar" location="loc">
        <path>
            <fileset dir="${ant.home}"/>
        <path>
    </find>

Searches in Ants home directory for a file ant.jar and stores its location
in property loc (should be ANT_HOME/bin/ant.jar). 

    <find file="ant.jar" location="loc" delimiter=";">
        <path>
            <fileset dir="C:/"/>
        <path>
    </find>
    <echo>ant.jar found in: ${loc}</echo>

Searches in Windows C: drive for all ant.jar and stores their locations in
property loc delimited with ';'. (should need a long time :-) After that it
prints out the result (e.g.
C:/ant-1.5.4/bin/ant.jar;C:/ant-1.6/bin/ant.jar). 

-----Original Message-----
From: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de]
Sent: Thursday, September 25, 2003 2:51 PM
To: dev@ant.apache.org
Subject: RE: Next tutorial and Task


Ok, as zip :-) 


> -----Original Message----- 
> From: Stefan Bodewig [mailto:bodewig@apache.org] 
> Sent: Thursday, September 25, 2003 1:08 PM 
> To: dev@ant.apache.org 
> Subject: Re: Next tutorial and Task 
> 
> 
> On Thu, 25 Sep 2003, Jan Materne <Jan.Materne@rzf.fin-nrw.de> wrote: 
> 
> > Documentation file (html) attached. 
> 
> No HTML attachments allowed on this list.  Zip it up, attach it to 
> bugzilla, show it in http://cvs.apache.org/~jhm/ or ... 
> 
> Stefan 
> 
> --------------------------------------------------------------------- 
> To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org 
> For additional commands, e-mail: dev-help@ant.apache.org 
> 
 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message