Bug 106953 - Compiler - Make batch compiler work like internal eclipse compiler
Summary: Compiler - Make batch compiler work like internal eclipse compiler
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-13 19:07 EDT by Jeff Badorek CLA
Modified: 2006-06-12 08:46 EDT (History)
1 user (show)

See Also:


Attachments
Addition of skipReferences compiler option (4.19 KB, patch)
2005-08-13 19:08 EDT, Jeff Badorek CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jeff Badorek CLA 2005-08-13 19:07:09 EDT
It would be nice if the batch compiler (specifically the one that can be used 
by an Ant script) would act more like the Java Builder in eclipse. As is, the 
batch compiler will compile a source file and all source files it depends on. 
I want to be able to turn this "feature" off. Basically I have the following 
scenario...

I need to compile Project1/src to Project1/bin
I need to compile Project2/src to Project2/bin

Project1/src has source files that depend on Project2/src source files. When 
Project1/src is compiled, the current implementation successfully compiles 
Project1/src to Project1/bin, but is also compiles Project2/src to 
Project1/bin.

I have a patch that fixes this by adding a CompilerOption.
Comment 1 Jeff Badorek CLA 2005-08-13 19:08:41 EDT
Created attachment 26090 [details]
Addition of skipReferences compiler option

This patch adds a compiler option to allow "not" compiling a source file's
references/dependencies.
Comment 2 Olivier Thomann CLA 2005-08-14 15:55:38 EDT
The java builder in Eclipse recompiles dependent types if necessary. So the
batch compiler and the java builder have a similar behavior.
Not compiling the dependants is error prone.
Comment 3 Jeff Badorek CLA 2005-08-15 11:39:12 EDT
True, I agree that not compiling dependents would be very error prone. I just 
really like the feature of the Java Builder in Eclipse that allows 
for "multiple output" locations. How is this currently accomplished? Because 
with the batch compiler, everything gets compiled to one directory.
Comment 4 Olivier Thomann CLA 2005-08-15 15:19:35 EDT
Yes, the batch compiler doesn't support multiple output folders. But this is a
different issue than the one related to the compilation of dependant classes. So
what you really want is the support for multiple output folders in the batch
compiler.
Comment 5 Philipe Mulet CLA 2006-06-08 09:25:41 EDT
Having a batch incremental compiler is interesting, for the request for multiple output folders, this is a separate issue which would deserve its own bug report.
Comment 6 Maxime Daniel CLA 2006-06-12 08:46:20 EDT
(In reply to comment #5)
> ... for the request for
> multiple output folders, this is a separate issue which would deserve its own
> bug report.
Entered https://bugs.eclipse.org/bugs/show_bug.cgi?id=146554 to this effect.