title: jdt batch compiler for no uniform encoding files
body: <p>I want to use the jdt compiler in ant to compile my project, but the project with no uniform files, so i try use the home doc encoding flag: <a href="https://help.eclipse.org/mars/index.jsp?topic=%2Forg.eclipse.jdt.doc.user%2Ftasks%2Ftask-using_batch_compiler.htm" rel="nofollow noreferrer">batch compiler usage</a>.</p>
  
  <p>code below:</p>
  
  <pre><code>&lt;property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter" /&gt;
  &lt;property name="compiler.args" value="-encoding UTF-8 src/test/Test.java[GBK]" /&gt;
  &lt;javac destdir="${bin.dir}" includeantruntime="true" debug="true" failonerror="true" &gt;
     &lt;compilerarg line="${compiler.args}" /&gt;
     &lt;src path="${src.dir}" /&gt;
     &lt;classpath refid="compile.classpath"/&gt;
  &lt;/javac&gt;
  </code></pre>
  
  <p>when i run this tasks, it will show error:<br>
  Error in D:\src\test\Test.java<br>
     public class Test { </p>
  
  <p>The type Test is already defined.  </p>
  
  <p>How can i set the different encoding in each file? Is the path wrong?</p>