Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Multiple Source Folders in a Project(How to have a output/class folder for each source folder)
Multiple Source Folders in a Project [message #719423] Sat, 27 August 2011 04:02 Go to next message
Lou  is currently offline Lou Friend
Messages: 1
Registered: August 2011
Junior Member
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 14:41 Go to previous message
David Wegener is currently offline David WegenerFriend
Messages: 1348
Registered: July 2009
Senior Member
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.
Previous Topic:JEE related keywords is showing errors in eclipse
Next Topic:Using Workspaces With Feature Branches
Goto Forum:
  


Current Time: Fri Nov 21 12:27:58 GMT 2014

Powered by FUDForum. Page generated in 0.02754 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software