title: Ant modifying property file but escaping characters
body: <p>I have an ant build script that is modifying a properties file.  When it amends the properties with the new paths, it seems to escape the back slashes and colons.  I understand this is probably working as intended but batch files use this property file further down the process and it is causing errors.</p>
  
  <p>Is there an ant solution to this, or should I start looking at a shell script workaround?</p>
  
  <p>Thanks,
  BON</p>
  
  <p><strong>Ant target</strong>:</p>
  
  <pre><code>    &lt;target name="modify_workstation_properties" depends="loadWinEnvVars, loadUnixEnvVars"&gt;
      &lt;propertyfile file="${basedir}/Deliverables/config/framework_setup/workstation.properties"&gt;
          &lt;entry key="toplevel.project.dir" value="${basedir}"/&gt;
          &lt;entry key="root.project.dir" value="${basedir}/Construction"/&gt;
          &lt;entry key="root.dir" value="${basedir}/Framework/Construction/netc_os"/&gt;
          &lt;entry key="jdk.home" value="${JDKHome}"/&gt;
          &lt;entry key="wls.home" value="${WLSHome}"/&gt;
          &lt;entry key="domain.dir" value="${DomainDir}"/&gt;
          &lt;entry key="stage.dir" value="${DomainDir}"/&gt;
      &lt;/propertyfile&gt;
  &lt;/target&gt;
  </code></pre>
  
  <p><strong>Output:</strong></p>
  
  <pre><code># Top Level Root directory of the new working project
  toplevel.project.dir=C\:\\forImage\\r16_dev_deploy
  
  # Root directory of the new working project
  root.project.dir=C\:\\forImage\\r16_dev_deploy/Construction
  
  # Root directory of the framework project
  root.dir=C\:\\forImage\\r16_dev_deploy/Framework/Construction/netc_os
  ...
  </code></pre>