Summary: | [ant][compiler] Batch compiler show warnings, that not show in IDE | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Alexey Kuznetsov <kuaw26> |
Component: | Core | Assignee: | Olivier Thomann <Olivier_Thomann> |
Status: | VERIFIED INVALID | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | CC: | jarthana, Olivier_Thomann |
Version: | 3.5 | ||
Target Milestone: | 3.6 M3 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
Alexey Kuznetsov
2009-09-16 12:44:45 EDT
You are not running our compiler inside your ant script. Do you have this line in your ant script ? <property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter" /> The ouput that you give looks like javac warning output, not the Eclipse compiler output. Closing as INVALID. Reopen if you still have a problem once the Eclipse compiler is used inside the ant javac task. Very strange... When I remove [compiler="modern"] from <javac> command all works fine. It seems that some how ant compile my classes by JDK6 compiler. But I don't configure JAVA_HOME to JDK6. It seems that because of I configure tools.jar in Ant-runtime-global entries to D:\JDK\j2sdk1.6_16\lib\tools.jar, ant is able to find JDK javac compiler and use it not regarding of <property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter" /> I also configure Ant-runtime-global entries: add exteranl jar: ecj-3.5.1RC4.jar now all works fine, but Is such behavior expected (compiler="modern")? compiler=modern, this is javac, not the Eclipse compiler. You should report this against Ant and not JDT. Closing as INVALID. Verified for 3.6 M3 |