Bug 12520

Summary: JDTCompilerAdapter does not understand -extdirs
Product: [Eclipse Project] JDT Reporter: Kristopher Wehner <kris>
Component: CoreAssignee: David Audel <david_audel>
Status: VERIFIED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: rodrigo
Version: 2.0   
Target Milestone: 2.0 F2   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Kristopher Wehner CLA 2002-03-30 22:20:45 EST
When attempting to use ant integration (in drop 20020321), with the 
build.compiler set to org.eclipse.pde.internal.core.JDTCompilerAdapter, my ant 
script fails with:
Build file: D:\src\olt\est\build.xml
Compiling source files
directory does not exist: -extdirs
------------------------
Eclipse Java Compiler 0.235a
Copyright IBM Corp 2000, 2001. All rights reserved.
<...usage message snipped...>

The relevant portions of the build script are:
<property name="build.compiler" 
value="org.eclipse.pde.internal.core.JDTCompilerAdapter" />

<..large irrelevant detail snipped...>

<javac srcdir="${src}" destdir="${classes}" debug="true" deprecation="true" 
extdirs="${extdirs}"/>

This breaks the extdirs mechanism of the ant javac target. Without using the 
internal JDTCompiler, I get the "cannot use classic compiler" message. This 
would work with jikes theoretically, but there is an internal bug in jikes 
preventing me from confirming this (it crashes building my code).
Comment 1 Rodrigo Peretti CLA 2002-05-18 11:45:03 EDT
It is now supported by the compiler adapter provided by JDT Core 
(org.eclipse.jdt.core.JDTCompilerAdapter). Moving to JDT Core for closure.
Comment 2 Philipe Mulet CLA 2002-05-21 11:14:52 EDT
Closing
Comment 3 David Audel CLA 2002-06-03 10:26:35 EDT
Verified.