Bug 26166 - compile single file
Summary: compile single file
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.1   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 2.1 M4   Edit
Assignee: Kent Johnson CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-11-13 14:46 EST by rick labanca CLA
Modified: 2003-03-23 12:34 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description rick labanca CLA 2002-11-13 14:46:45 EST
It seems the built in build (not ant) will only do all files. An option to 
right click on a java source and compile just that one file would be handy.
Comment 1 Philipe Mulet CLA 2002-11-14 05:39:29 EST
The problem is that it would leave dependents out of sync (in case they need to 
react to the change you just made).

If you turn auto-build on, our Java builder will perform incrementally on each 
save action, and recompile what it thinks need to be recompiled. If you do a 
one line change inside a method, then nothing but that one file is getting 
recompiled.

If you turn, auto-build off, then after a save action, you'll have to press 
ctrl-B to run the incremental compiler.

Does this work for you?
Comment 2 rick labanca CLA 2002-11-14 10:06:23 EST
Ok, this isn't for me but another developer. I'm happy with the syntax 
highlighting myself.
The control-b seems to take forever, and hangs on two of our developer's 
boxes, it says it's scrubbing the output dir, and takes forever or is gone. 
And we were (maybe incorrectly) assuming it was doing a full compile because 
of this message.
I don't see the problem with compiling one file, command line java will 
compile the dependents, right? I am an old kawa user and liked the feature 
(this developer asking this is formerly netbeans which also did it).
Comment 3 Philipe Mulet CLA 2002-11-14 17:29:01 EST
Command line javac doesn't find dependents to recompile... if you have scenarii 
where you think the build process takes too long, then I would be interested in 
seeing them.

A single method change (not signature) should be immediate after an initial 
full build has occurred. Maybe some information in the .log file would indicate 
an issue ?
Comment 4 Kent Johnson CLA 2002-11-18 16:34:49 EST
Reopen when you have a repeatable performance problem.

If the problems on the other developer's machines can be repeated, please enter 
a separate PR with steps to reproduce.