title: How do I set file.encoding for a junit test in ant?
body: <p>I'm not quite done with <a href="https://stackoverflow.com/questions/1339352/how-do-i-set-dfile-encoding-within-ants-build-xml">file.encoding and ant</a>.   How do I set the <em>file.encoding</em> for junit tests in ant?  The <em>junit</em> ant task doesn't support the <em>encoding</em> attribute like the <em>javac</em> task does.  </p>
  
  <p>I've tried running «ant -Dfile.encoding=UTF-8» and «ANT_OPTS="-Dfile.encoding=UTF-8" ant» without success.  System.getProperty("file.encoding") within a test still returns <em>MacRoman</em>.</p>