You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Raja Nagendra Kumar <Na...@tejasoft.com> on 2008/03/30 05:50:45 UTC
how to file path from fileset
I would like to know exact location of file given a fileset way to find one
<fileset dir="${tejasoft.root}">
<include name="**/${name}Common.xml"/>
</fileset>
Assuming that only one file in tejasoft.root would match the expression
"**/${name}Common.xml.
Regards,
Raja Nagendra Kumar,
C.T.O
www.tejasoft.com
--
View this message in context: http://www.nabble.com/how-to-file-path-from-fileset-tp16378261p16378261.html
Sent from the Ant - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: how to file path from fileset
Posted by Raja Nagendra Kumar <Na...@tejasoft.com>.
Hi Gibert,
Nice to know such feature exists. In case there is a documentation for all
such sudo functions in ant, could you pl. let me know the url.
I also noticed that giving the refid to property does exactly the same
thing.
<path id="p">
<fileset dir="${foundation.root}">
<include name="**/${f.name}"/>
</fileset>
</path>
<property name="nag.prop" refid="p"/>
Also, what is the way to access list of all the files which are selected
using the script (groovy or so, based on the id).
Regards,
Nagendra
Gilbert Rebhan wrote:
>
> Raja Nagendra Kumar wrote:
>> I would like to know exact location of file given a fileset way to find
>> one
>>
>>
>> <fileset dir="${tejasoft.root}">
>> <include name="**/${name}Common.xml"/>
>> </fileset>
>>
>> Assuming that only one file in tejasoft.root would match the expression
>> "**/${name}Common.xml.
>
> <fileset dir="${tejasoft.root}" id="yourID">
> <include name="**/${name}Common.xml"/>
> </fileset>
>
> the property ${toString:yourID} has your file
>
> Regards,
> Gilbert
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/how-to-file-path-from-fileset-tp16378261p16391073.html
Sent from the Ant - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: how to file path from fileset
Posted by Gilbert Rebhan <an...@schillbaer.de>.
Gilbert Rebhan schrieb:
> <fileset dir="${tejasoft.root}" id="yourID">
> <include name="**/${name}Common.xml"/>
> </fileset>
>
> the property ${toString:yourID} has your file
P.S. =
if there's more than one match, the property
${toString:yourID} has all matches in a comma
separated list
Regards,
Gilbert
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: how to file path from fileset
Posted by Gilbert Rebhan <an...@schillbaer.de>.
Raja Nagendra Kumar wrote:
> I would like to know exact location of file given a fileset way to find one
>
>
> <fileset dir="${tejasoft.root}">
> <include name="**/${name}Common.xml"/>
> </fileset>
>
> Assuming that only one file in tejasoft.root would match the expression
> "**/${name}Common.xml.
<fileset dir="${tejasoft.root}" id="yourID">
<include name="**/${name}Common.xml"/>
</fileset>
the property ${toString:yourID} has your file
Regards,
Gilbert
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: how to file path from fileset
Posted by Robin Chaddock <ro...@iplay.com>.
<pathconvert>
Raja Nagendra Kumar wrote:
> I would like to know exact location of file given a fileset way to find one
>
>
> <fileset dir="${tejasoft.root}">
> <include name="**/${name}Common.xml"/>
> </fileset>
>
> Assuming that only one file in tejasoft.root would match the expression
> "**/${name}Common.xml.
>
> Regards,
> Raja Nagendra Kumar,
> C.T.O
> www.tejasoft.com
>
________________________________________________________________________
E-mail is an informal method of communication and may be subject to data corruption, interception and unauthorised amendment for which I-play, a trading name of Digital Bridges Ltd will accept no liability. Therefore, it will normally be inappropriate to rely on information contained on e-mail without obtaining written confirmation.
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.
(C) 2005. I-play is a trademark and trading name of Digital Bridges Limited. All Rights Reserved.
________________________________________________________________________
This message has been checked for all known viruses by the
MessageLabs Virus Scanning Service. For further information visit
http://www.messagelabs.com/stats.asp
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org