ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Scot P. Floess" <flo...@mindspring.com>
Subject RE: make a string lowercase
Date Tue, 19 Aug 2008 17:11:25 GMT
You can probably use some scripting...perhaps beanshell...to do this for 
you...

Additionally, you can look to Ant Contrib's propertyregex task - should be 
simple enough to do this with a regex :)

On Sun, 17 Aug 2008, Martin Gainty wrote:

>
>  I created a separate target to uppercase the string 
> call the java class upper
> store the results to outputproperty
> <property name='newVar' value='newVar'/>
>   <property name='out' value='out' />
>   <target name='mapper'>
>  <java classname='upper' outputproperty='out'>
>   <arg value='${newVar}'/>
>  </java>
>   <echo>out = ${out}</echo>
>   </target>
> (source file to convert attached)
> 
> anyone else?
> Martin
> ______________________________________________
> Disclaimer and confidentiality note
> Everything in this e-mail and any attachments relates to the official business of Sender.
This transmission is of a confidential nature and Sender does not endorse distribution to
any party other than intended recipient. Sender does not necessarily
> endorse content contained within this transmission.
> 
> 
> > From: Guy.catz@waves.com
> > To: user@ant.apache.org
> > Date: Sun, 17 Aug 2008 08:32:54 -0400
> > Subject: make a string lowercase
> >
> > Is it possible to make a string lowercase (or uppercase)?
> > Something like ....
> > <lowercase var='myVar' property='newVar' />
> >
> > ${myVar} can be 'Release', while after calling <lowercase>, ${newVar} will
be set to 'release'.
> >
> > Does something like this exist?
> >
> > Thanks.
> >
> 
> 
> 
> ________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
> Get ideas on sharing photos from people like you. Find new ways to share. Get Ideas Here!
>

Scot P. Floess
27 Lake Royale
Louisburg, NC  27549

252-478-8087 (Home)
919-754-4592 (Work)

Chief Architect JPlate   http://sourceforge.net/projects/jplate
Chief Architect JavaPIM  http://sourceforge.net/projects/javapim

Architect Keros          http://sourceforge.net/projects/keros

Mime
View raw message