Date: 2004-07-05T05:24:02 Editor: 212.34.160.66 <> Wiki: Ant Wiki Page: AntNewbies URL: http://wiki.apache.org/ant/AntNewbies
no comment Change Log: ------------------------------------------------------------------------------ @@ -1,6 +1,23 @@ == This is the AntNewbies page where newbies can ask difficult but clear questions. == + ```Question#2``` How do i use a different JAVA Compiler than javac. +I tried to use the JDT to compile my Source but i don't know the right Syntax to start it correct in ANT. +The Commandline is: + +{{{ + java -classpath jdtcore.jar org/eclipse/jdt/internal/compiler/batch/Main <options> <Sources> +}}} + +I tried it with this Options. (jdtcore.jar is in Classpath set) + +{{{ +<target name="buildSources"> + <javac includes="**/*.java, *.java" srcdir="${dir.project.root}/src" destdir="${dir.build}" verbose="true" fork="yes" executable="org.eclipse.jdt.internal.compiler.batch.Main"> + <classpath refid="classpath"/> + </javac> +</target> +}}} ```Question#1``` How do you escape a '''"''' in an argument to an Exec command. This is what I have. {{{ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]