Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Build from arbitrary source directory
Build from arbitrary source directory [message #286327] Tue, 07 June 2005 09:53 Go to next message
Eclipse UserFriend
Hello,

Is it possible to use an arbitrary source directory for building a
project without importing the source files into the workspace?

David
Re: Build from arbitrary source directory [message #286328 is a reply to message #286327] Tue, 07 June 2005 09:59 Go to previous messageGo to next message
Eclipse UserFriend
David Thomson wrote:
> Hello,
>
> Is it possible to use an arbitrary source directory for building a
> project without importing the source files into the workspace?
>
> David
Or rather, have it not enforce the directory structure in having to
reflect the package structure?

David
Re: Build from arbitrary source directory [message #286349 is a reply to message #286328] Tue, 07 June 2005 12:31 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse.rizzoweb.com

David Thomson wrote:
> David Thomson wrote:
>
>> Hello,
>>
>> Is it possible to use an arbitrary source directory for building a
>> project without importing the source files into the workspace?
>>
>> David
>
> Or rather, have it not enforce the directory structure in having to
> reflect the package structure?

No, not possible. There are good reasons for this and most experienced
developers will recommend to keep source files organized according to
package structure.

HTH,
Eric
Re: Build from arbitrary source directory [message #286357 is a reply to message #286349] Tue, 07 June 2005 13:12 Go to previous messageGo to next message
Eclipse UserFriend
So, if I want to checkout someone else's source tree and work with it,
but in my workspace, how do I do this? Would I have to have a separate
project for that person's source? The point would be to have a directory
structure inside my project for different source trees, and just tell
Eclipse to use each one at a time. The problem is then that Eclipse
would think the package name is wrong if I had an entire source tree
under "Joe Source\package\name\structure" instead of just
package\name\structure.

David
Re: Build from arbitrary source directory [message #286358 is a reply to message #286357] Tue, 07 June 2005 13:23 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

You can use source folder instead. You tell the java build path that
"Joe Source" is the root of a source folder, then everything under "Joe
Source" would be packages.

David Thomson wrote:
> So, if I want to checkout someone else's source tree and work with it,
> but in my workspace, how do I do this? Would I have to have a separate
> project for that person's source? The point would be to have a directory
> structure inside my project for different source trees, and just tell
> Eclipse to use each one at a time. The problem is then that Eclipse
> would think the package name is wrong if I had an entire source tree
> under "Joe Source\package\name\structure" instead of just
> package\name\structure.
>
> David

--
Thanks,
Rich Kulp
Re: Build from arbitrary source directory [message #286371 is a reply to message #286358] Tue, 07 June 2005 17:02 Go to previous message
Eclipse UserFriend
Rich Kulp wrote:
> You can use source folder instead. You tell the java build path that
> "Joe Source" is the root of a source folder, then everything under "Joe
> Source" would be packages.
Thanks! That did the trick.

David
Previous Topic:Platform upgrade to Java 5?
Next Topic:documentation references in context help
Goto Forum:
  


Current Time: Thu Sep 25 05:14:11 EDT 2025

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

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

Back to the top