ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From halfsetgelly <...@legacysd.com>
Subject Re: make a string lowercase
Date Fri, 07 Jan 2011 13:19:13 GMT

You could use  http://ant.apache.org/manual/Tasks/pathconvert.html
<pathconvert>  and a 
http://ant.apache.org/manual/Types/mapper.html#script-mapper scriptmapper 


 <property name="mixed" value="Foo_Baa"/>

  <pathconvert property="converted">
   <path path="${mixed}"/>
   <chainedmapper>
    <flattenmapper/>
    <scriptmapper language="javascript">
     self.addMappedName(source.toLowerCase());
    </scriptmapper>
    </chainedmapper>
  </pathconvert>

  <echo>${converted}</echo>
-- 
View this message in context: http://ant.1045680.n5.nabble.com/make-a-string-lowercase-tp1352626p3331823.html
Sent from the Ant - Users mailing list archive at Nabble.com.

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


Mime
View raw message