Eclipse compile a working set

V

VisionSet

I have an eclipse project where a subset of the class therein are
compiled in a version 1.4.
I can't seem to compile just that working set, since it appears to be
checking actual chages to source to determine whether to compile or
not. The only way I can do it is to do a complete rebuild. Yes Ant
sloves this, but I want the functionallity in eclipse too.

TIA,
Mike W
 
O

Oliver Wong

VisionSet said:
I have an eclipse project where a subset of the class therein are
compiled in a version 1.4.
I can't seem to compile just that working set, since it appears to be
checking actual chages to source to determine whether to compile or
not. The only way I can do it is to do a complete rebuild. Yes Ant
sloves this, but I want the functionallity in eclipse too.

Doesn't Eclipse only rebuild those files which change? Which means once
it's compiled, and if you never change any of the files, nothing will get
recompiled? And if you change 1 file, and if that change affects nothing
else, nothing will get recompiled other than that one file?

- Oliver
 
V

VisionSet

Oliver said:
Doesn't Eclipse only rebuild those files which change? Which means once
it's compiled, and if you never change any of the files, nothing will get
recompiled? And if you change 1 file, and if that change affects nothing
else, nothing will get recompiled other than that one file?

- Oliver

Well yes exactly. But since it has the option to change java version to
compile against I thought may be there was a way to force compilation
since obviously users will flip between versions. Perhaps the answer
is to have 2 projects. Or to have a 'clean my working set' fucntion,
though I don't know how within eclipse.
 
O

Oliver Wong

VisionSet said:
Well yes exactly. But since it has the option to change java version to
compile against I thought may be there was a way to force compilation
since obviously users will flip between versions. Perhaps the answer
is to have 2 projects. Or to have a 'clean my working set' fucntion,
though I don't know how within eclipse.

I don't think you'd want to flip between two java version targets
frequently. You'd usually choose a target at the beginning of the project,
and as you develop the project, you stick to the target you've selected. And
if you wanted to release two versions of your project, you'd probably be
better off, like you said, making two different projects (or 3 projects: one
for the shared code, and one for unique code in each version you're
targetting).

So if you want part of your code to be 1.4, and part to be 1.5, you're
probably best off splitting the code into seperate projects.

- Oliver
 
I

Ian Wilson

VisionSet said:
Well yes exactly. But since it has the option to change java version to
compile against I thought may be there was a way to force compilation
since obviously users will flip between versions. Perhaps the answer
is to have 2 projects. Or to have a 'clean my working set' fucntion,
though I don't know how within eclipse.

In the Package Explorer, I'd choose the working set then select
everything in it (click first, shift-click last) then select "Project",
"Clean" from the menubar.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,262
Messages
2,571,059
Members
48,769
Latest member
Clifft

Latest Threads

Top