Skip to content

Instantly share code, notes, and snippets.

@harrifeng
Last active December 10, 2015 07:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save harrifeng/4404799 to your computer and use it in GitHub Desktop.
Save harrifeng/4404799 to your computer and use it in GitHub Desktop.
Ant configure file for error message use English. The fork="true" is must-have.
<?xml version="1.0"?>
<project name="firstbuild" default="compile">
<target name="compile">
<javac srcdir="." fork="true" >
<compilerarg value="-J-Duser.language=en"/>
<compilerarg value="-J-Duser.country=US"/>
</javac>
<echo>compilation complete!</echo>
</target>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment