ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From joel feraud <joel.fer...@france.sun.com>
Subject Re: Echoing the string value of a path-like structure
Date Thu, 12 Sep 2002 13:26:31 GMT

Merci Roland, Thanks Steve, for these 2 solutions!

Joel


> Subject: Re: Echoing the string value of a path-like structure
> Date: Thu, 12 Sep 2002 05:17:44 -0400
> From: Erik Hatcher <jakarta-ant@ehatchersolutions.com>
> To: Ant Users List <ant-user@jakarta.apache.org>
> 
> Actually for a <path> its even simpler to get it into a property:
> 
>         <property name="my.classpath.in.a.prop" refid="project.classpath"/>
> 
> 
> EXT / FOCAL MALAPRADE Roland wrote:
> > 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
> >

-- 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
Joel Feraud			Sun Microsystems, Inc.
Tel: +33 476 188 325		07, chemin du Vieux Chene
Fax: +33 476 188 350		38240 MEYLAN, France
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

--
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