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 <[EMAIL PROTECTED]>
> To: Ant Users List <[EMAIL PROTECTED]>
>
> 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:[EMAIL PROTECTED]]
> > Envoye : jeudi 12 septembre 2002 10:57
> > A : Ant Users List
> > Cc : [EMAIL PROTECTED]
> > 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:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>