Date: 2004-07-05T05:29:06
Editor: StefanBodewig <[EMAIL PROTECTED]>
Wiki: Ant Wiki
Page: AntNewbies
URL: http://wiki.apache.org/ant/AntNewbies
no comment
Change Log:
------------------------------------------------------------------------------
@@ -1,23 +1,5 @@
== 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.
{{{
@@ -54,3 +36,22 @@
</exec>
</target>
}}}
+ ```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>
+}}}
+
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]