Problem using org.eclipse.jdt.core.JDTCompilerAdapter [message #229099] |
Wed, 03 May 2006 04:34  |
Eclipse User |
|
|
|
Hi,
We have a large project with many generated java files. I am trying to
compile these using the eclipse compiler from ant. The reason is that I
want the compiler to generate a class file even though there are compile
errors. Just like eclipse does.
However the compiler seems to stop after comming accross 5 compilation
errors. My ant file looks something like the following:
<property name="build.compiler"
value="org.eclipse.jdt.core.JDTCompilerAdapter" />
<javac srcdir="${project}\src\java"
includes="**\*.java"
destdir="${project}\bin"
verbose="true"
source="1.5"
failonerror="false"
nowarn="true"
debug="true"
debuglevel="lines, vars, and source">
<compilerarg compiler="org.eclipse.jdt.core.JDTCompilerAdapter"
line="-maxProblems 500" />
<classpath refid="project.classpath" />
</javac>
as you can see, I send "-maxProblems 500" which should mean that the
compiler will only give up after 500 errors. However it gives up after
only 5 !
The documentation
( http://help.eclipse.org/help31/index.jsp?topic=/org.eclipse. jdt.doc.isv/guide/jdt_api_compile.htm)
says that the default for -maxProblems is 100, however if I remove the
-maxProblems then it still gives up after 5 errors !
Has anyone else experianced this or am I doing something wrong ?
Many thanks in advance,
Ian
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03367 seconds