| Author |
Welcome Rob, David, and Ed
|
Kirk Pepperdine
Author
Ranch Hand
Joined: Jan 17, 2001
Posts: 71
|
|
Just thought I'd harass you guys over for a change In my typical setup, my source directories are scattered about. This allows me to break up a project source by categories of layers and components. The last time that I downloaded eclipse to check it out. I quickly abandoned the tool because I could not get it to adapt to my pre-existing appliction. It wanted me to abandon my way of working. So I abandoned Eclipse instead. Has this changes, does eclipse now support mutiple source paths with may or may not lie with-in the current root project?
|
Author of <a href="http://www.amazon.com/exec/obidos/ASIN/0672324261/ref=jranch-20" target="_blank" rel="nofollow">Ant Developer's Handbook</a>
|
 |
Faisal Khan
Ranch Hand
Joined: Jun 29, 2003
Posts: 285
|
|
Hey, I had similar problem with Eclipse, though I did not investiagate thoroughly. I am using HomeSite as an editor with the ant build tool and have a very nice source and deployment directory structures, which I picked up from an open source project (VENICE). I need to know, how I will maintain my environment too. - FK
|
The secret to creativity is knowing how to hide your sources.
|
 |
Anders Olsen
Greenhorn
Joined: Apr 17, 2003
Posts: 13
|
|
You can add multiple source paths to a Java project. These paths can link to dirrectories outside the eclipse workspace dirrectory if you want that. It is also possible to setup different build dirrectories for the paths. There are some limitations as to what must be inside and what must be outside the workspace, but I don't remember them exactly. Regards Anders
|
 |
Robert McGovern
Author
Greenhorn
Joined: Jul 08, 2003
Posts: 8
|
|
Originally posted by Kirk Pepperdine: Has this changes, does eclipse now support mutiple source paths with may or may not lie with-in the current root project?
Hi Kirk, good to see you are always harassing as always. Yes you can use multiple source directories and its quite simple to actually do so. Right click on your Project name, and select Properties. The project properties dialog is now displayed. Click on Java Build Path in the left hand pane. Click on the Source tab in the right hand pane. Click on "Add Folder" -- this allows you to create folders that are inside your project or (after pressing the advanced button) linking to a folder in your file system (which of course isn't portable). Enter a name, then click OK and OK to dismiss the dialogs. Thats it Now there are some extra things you can do, for instance for each src directory you have, you can specify what output directory it uses. The default option is to use the common output directory, but you can specify your own. Lastly, for each source folder you can specify exclusions of files and directories that won't be included during building. The exclusions can either be specified as patterns (for instance Test*.java) or explicity (for instance TestAccount.java). Rob
|
Co-author of <a href="http://www.manning.com/gallardo" target="_blank" rel="nofollow">Eclipse In Action</a>
|
 |
Ed Burnette
Author
Ranch Hand
Joined: Jun 10, 2003
Posts: 142
|
|
Originally posted by Kirk Pepperdine: Just thought I'd harass you guys over for a change
Is that the best you got? You don't throw softballs like that on the ST-J list.
|
Ed Burnette, Author of Hello Android
Blog: ZDNet's Dev Connection - Twitter: @eburnette
|
 |
 |
|
|
subject: Welcome Rob, David, and Ed
|
|
|