Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / August 2006

Tip: Looking for answers? Try searching our database.

Eclipse compile a working set

Thread view: 
VisionSet - 15 Aug 2006 16:05 GMT
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
Oliver Wong - 15 Aug 2006 20:54 GMT
>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
VisionSet - 16 Aug 2006 14:19 GMT
> >I have an eclipse project where a subset of the class therein are
> > compiled in a version 1.4.
[quoted text clipped - 9 lines]
>
>     - 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.
Oliver Wong - 16 Aug 2006 15:44 GMT
>> >I have an eclipse project where a subset of the class therein are
>> > compiled in a version 1.4.
[quoted text clipped - 14 lines]
> 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
Ian Wilson - 16 Aug 2006 16:11 GMT
>>>I have an eclipse project where a subset of the class therein are
>>>compiled in a version 1.4.
[quoted text clipped - 15 lines]
> 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.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.