ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ivan \"Rambius\" Ivanov" <rambiusparkisan...@yahoo.com>
Subject Re: file list without directory prepended how to get it
Date Sat, 06 May 2006 06:30:24 GMT
Hello,

--- Narahari 'n' Savitha <savithari@gmail.com> wrote:

> Consider this scenario friends.
> 
> build.xml
>     |
>     |------------lib
>                      |
>                     
> |----------averyveryverylong.jar
>                     
> |----------anotherlongjarfile.jar
> 
> now when I want to build a list of files in the lib
> folder I am using
> <fileset dir="lib" id="hi">
>     <include file=".jar" /<
> </fileset>
> 
> I then use pathconvert
> 
> <pathconvert pathsep="," property="testing"
> refid="hi" />
You should consider <pathconvert> with a <mapper>:
<property name="fs" value="${file.separator}"/>
<pathconvert pathsep="," property="testing"
refid="hi">
   <globmapper from="${basedir}${fs}lib${fs}*.jar"
to="*.jar"/>
</pathconver>

Regards
Ivan

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message