Date: 2004-07-05T05:35:49
Editor: StefanBodewig <stefan.bodewig@freenet.de>
Wiki: Ant Wiki
Page: AntNewbies
URL: http://wiki.apache.org/ant/AntNewbies
no comment
Change Log:
------------------------------------------------------------------------------
@@ -58,3 +58,11 @@
'''Answer #1'''
the easiest solution for you is to use the Ant compiler adapter that ships with Eclipse [http://help.eclipse.org/help21/index.jsp?topic=/org.eclipse.jdt.doc.isv/guide/jdt_api_compile.htm].
+
+'''Answer #2'''
+
+the more general solution. The javac task has a compiler attribute that you not only can
use to select one of the compilers with
+built-in support, it can also point to a Java class that implements a certain Ant interface.
The build.compiler Ant property can
+be used to set a default value for this attribute for all javac tasks.
+
+This is exactly what Answer #1 uses, you just don't need to write the compiler adapter since
somebody else has already done so for you.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org
|