SHARE
TWEET

Ant Filterchain for property modification

a guest May 16th, 2014 506 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top