string - Replacing characters in Ant property - Stack Overflow
Two possibilities :
via script task and builtin javascript engine (if using jdk >= 1.6)
<project> <property name="propA" value="This is a value"/> <script language="javascript"> project.setProperty('propB', project.getProperty('propA'). replace(" ", "_")); </script> <echo>$${propB} => ${propB}</echo> </project>
Read full article from string - Replacing characters in Ant property - Stack Overflow
No comments:
Post a Comment