> >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.