code_junkie

Override the compiler attribute in an Ant javac task

Nov 11th, 2011
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. ant -Dbuild.compiler=mycompiler
  2.  
  3. <javac srcdir="."
  4. destdir="${classes.dir}/core"
  5. compiler="modern"
  6. encoding="UTF-8">
  7. <include name="org/**" />
  8. <include name="com/**" />
  9. <compilerarg line="${config.build.compilerarg}" />
  10. </javac>
Add Comment
Please, Sign In to add comment