ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From EXT / FOCAL MALAPRADE Roland <ext.focal.malapr...@sncf.fr>
Subject RE: Echoing the string value of a path-like structure
Date Thu, 12 Sep 2002 09:00:26 GMT
use the <pathconvert> task like this:

<pathconvert pathsep="," property="my.classpath.in.a.prop"
refid="project.classpath"/>

then echo the property

<echo>My Classpath: ${my.classpath.in.a.prop}</echo>

-----Message d'origine-----
De : joel feraud [mailto:joel.feraud@france.sun.com]
Envoye : jeudi 12 septembre 2002 10:57
A : Ant Users List
Cc : Joel.Feraud@Sun.COM
Objet : Echoing the string value of a path-like structure



Hello,

I am using Ant 1,5 and I would like to echo the string value of a path-like
structure and don't know how to do that.

For example, I define in my project:

    <path id="project.classpath">
        <fileset dir="${lib.dir}">
            <include name="**/*.jar"/>
        </fileset>
    </path>


And I would like to do at some place in my build file, something like:

    <echo>
        <path refid="project.classpath" />
    </echo>

which is not supported. How can I achieve that?


Thanks,
Joel

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

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


Mime
View raw message