ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject AW: How to "stringify" path ref to call command-line app?
Date Fri, 16 Jul 2004 15:53:40 GMT
Nop - you have to specify the targetos or the separators.
But you can <presetdef> it for your own.

<presetdef name="path2prop">
    <pathconvert dirsep="${file.separator}" pathsep="${path.separator}"/>
</presetdef>

<path2prop property="cp.value" refid="cp"/>

Jan


> -----Urspr√ľngliche Nachricht-----
> Von: Karr, David [mailto:david.karr@wamu.net]
> Gesendet am: Freitag, 16. Juli 2004 17:50
> An: Ant Users List
> Betreff: RE: How to "stringify" path ref to call command-line app?
> 
> Ah, then summarizing from a related answer, this would just be:
> 
>  <pathconvert dirsep="${file.separator}" pathsep="${path.separator}"  
>               refid="cp" property="cp"/>
> 
> I still think it should just use those as the defaults if they're not
> specified.
> 
> > -----Original Message-----
> > From: Karr, David 
> > 
> > Ok, now, how do you use "pathconvert" so you don't have to 
> > specify the target OS (or, if you could easily figure it 
> > out)?  I'm surprised "targetos" is required, and it just 
> > doesn't use the value of File.separator and 
> > File.pathSeparator for dirsep and pathsep.
> > 
> > > -----Original Message-----
> > > From: Dominique Devienne [mailto:DDevienne@lgc.com]
> > > 
> > > > From: Karr, David [mailto:david.karr@wamu.net]
> > > > 
> > > > I have to call a command-line app in my build script, one
> > > which takes
> > > > a classpath argument.  I can easily build a "path" with an
> > > "id", but
> > > > is it possible to then "stringify" that path into a string
> > > I can use
> > > > on a command line?
> > > 
> > > <pathconvert>. --DD
> > 
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> > For additional commands, e-mail: user-help@ant.apache.org
> > 
> > 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message