Multiple Source Folders in a Project [message #719423] |
Sat, 27 August 2011 00:02  |
Eclipse User |
|
|
|
Hi,
I have a project that contains multiple source folders.
I would like to have an output/class folder that corresponds to each source folder.
Example
src/Folder 1
src/Folder 2
src/Folder 3
classes/Folder 1
classes/Folder 2
classes/Folder 3
I have tried right-clicking on each source folder and selecting Build Path >> Configure Build Path ... and changing the Default output folder for each source folder, but it puts all classes from all folders in a single class folder like
src/Folder 1
src/Folder 2
src/Folder 3
classes/Folder 1
so output form all source folders go to the single classes/Folder 1.
I tried changing src/Folder 2 to output to classes/Folder 2 but again it put all classes from all folders into classes/Folder 2.
src/Folder 1
src/Folder 2
src/Folder 3
classes/Folder 2
Any suggestions on how I can get the output classes folders to match up to the source folders?
Thanks,
lou
|
|
|
Re: Multiple Source Folders in a Project [message #719507 is a reply to message #719423] |
Sat, 27 August 2011 10:41  |
Eclipse User |
|
|
|
On 08/26/2011 11:02 PM, Lou wrote:
> Hi,
>
> I have a project that contains multiple source folders.
>
> I would like to have an output/class folder that corresponds to each
> source folder.
>
> Example
> src/Folder 1
> src/Folder 2
> src/Folder 3
> classes/Folder 1
> classes/Folder 2
> classes/Folder 3
>
> I have tried right-clicking on each source folder and selecting Build
> Path >> Configure Build Path ... and changing the Default output folder
> for each source folder, but it puts all classes from all folders in a
> single class folder like src/Folder 1
> src/Folder 2
> src/Folder 3
> classes/Folder 1
>
> so output form all source folders go to the single classes/Folder 1.
>
> I tried changing src/Folder 2 to output to classes/Folder 2 but again it
> put all classes from all folders into classes/Folder 2.
> src/Folder 1
> src/Folder 2
> src/Folder 3
> classes/Folder 2
>
> Any suggestions on how I can get the output classes folders to match up
> to the source folders?
>
> Thanks,
>
> lou
>
>
Do you have Build Automatically turned on? If not, you will need to
perform a build to recreate the class files.
Have you performed a Clean? The old classes may not be cleaned out when
you change the output folder. A clean might be necessary to get rid of
them (Just a complete guess)
Do you have any build path errors? Build path errors will prevent a
build from completing.
|
|
|
Powered by
FUDForum. Page generated in 0.07506 seconds