Advertisement
Guest User

Ant Filterchain for property modification

a guest
May 16th, 2014
634
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 0.36 KB | None | 0 0
  1. Hi,
  2.  
  3. You can use a filterchain to do this:
  4.  
  5. <!-- Format the property -->
  6. <loadresource property="modifiedProperty">
  7.     <string value="${propertyToModify}"/>
  8.     <filterchain>
  9.         <replacestring from="\\" to="/"/>
  10.     </filterchain>
  11. </loadresource>
  12.  
  13. You can also use regex replace in a filterchain:
  14. https://ant.apache.org/manual/Types/filterchain.html#replaceregex
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement