Skip to main content



      Home
Home » Eclipse Projects » Technology Project and PMC » How to set source files and outputted classes outside of Eclipse directories
How to set source files and outputted classes outside of Eclipse directories [message #19316] Tue, 27 August 2002 08:56 Go to next message
Eclipse UserFriend
Originally posted by: speterson.frontierproductions.net

Hi all:

I just installed Eclipse and the whole thing looks great except
that I cannot seem to set the source path or the outputted class path to

anything outside of the eclipse "workspace" directory. When I create a
new project, the project is created as a folder underneath the
'Workspace' directory. Then I can modify the 'Java Build Path/Source'
and the
'outputted classpath to any directory I want -- just so long as they are

underneath eclipses 'Workspace' directory.

I would like to be able use more than Eclipse as my development
environment. But it seems that if I use Eclipse, I would have to have
two versions of the source code, one where I normally keep it and one
under the Eclipse 'Workspace' directory. Even worse -- after doing a
build, the classes are all under the workspace directory, meaning I have

to take an extra step to move them to where I want them.

I am sure this is not the way it was intended. Do you know how I might
be able to designate a source directory and a class output directory
that is outside of the Eclipse directory structure?

- Steve



--
Steven Peterson, President
Frontier Productions, Inc.
310 Wesley Drive
Chapel Hill, NC 27516
http://www.frontierproductions.net
Tel: 919-942-1386
Fax: 919-933-2677
Re: How to set source files and outputted classes outside of Eclipse directories [message #19363 is a reply to message #19316] Tue, 27 August 2002 11:33 Go to previous message
Eclipse UserFriend
Originally posted by: harald.theco.de

Steve,

you should actually have asked this question in eclipse.tools (it's
explained on the eclipse.org website and I have set Followup-To to
eclipse.tools).

But anyway:
"Steven Peterson" <speterson@frontierproductions.net> wrote in message
news:3D6B76E3.BE69F37C@frontierproductions.net...
> I just installed Eclipse and the whole thing looks great except
> that I cannot seem to set the source path or the outputted class path to
> anything outside of the eclipse "workspace" directory.

No, a project cannot refer to folders outside the project (at least not for
the source and output path).

> When I create a
> new project, the project is created as a folder underneath the
> 'Workspace' directory. Then I can modify the 'Java Build Path/Source'
> and the 'outputted classpath to any directory I want -- just so long as
> they are underneath eclipses 'Workspace' directory.

You can create the project anywhere you like, just uncheck the "default
location" checkbox and navigate to a folder of your choice. The only things
Eclipse needs there are the .project and .classpath files.

> I would like to be able use more than Eclipse as my development
> environment. But it seems that if I use Eclipse, I would have to have
> two versions of the source code, one where I normally keep it and one
> under the Eclipse 'Workspace' directory. Even worse -- after doing a
> build, the classes are all under the workspace directory, meaning I have
> to take an extra step to move them to where I want them.

I was able to create my Eclipse projects on top of existing project folders
using the steps outlined above, if that's not possible for you I'd be
curious to know what prevents it from working. :-)

Usually I create the Eclipse project at the top of my CVS modules and then
adjust source and output paths to point at the right places in the
structure.

Harald
Re: How to set source files and outputted classes outside of Eclipse directories [message #573917 is a reply to message #19316] Tue, 27 August 2002 11:33 Go to previous message
Eclipse UserFriend
Steve,

you should actually have asked this question in eclipse.tools (it's
explained on the eclipse.org website and I have set Followup-To to
eclipse.tools).

But anyway:
"Steven Peterson" <speterson@frontierproductions.net> wrote in message
news:3D6B76E3.BE69F37C@frontierproductions.net...
> I just installed Eclipse and the whole thing looks great except
> that I cannot seem to set the source path or the outputted class path to
> anything outside of the eclipse "workspace" directory.

No, a project cannot refer to folders outside the project (at least not for
the source and output path).

> When I create a
> new project, the project is created as a folder underneath the
> 'Workspace' directory. Then I can modify the 'Java Build Path/Source'
> and the 'outputted classpath to any directory I want -- just so long as
> they are underneath eclipses 'Workspace' directory.

You can create the project anywhere you like, just uncheck the "default
location" checkbox and navigate to a folder of your choice. The only things
Eclipse needs there are the .project and .classpath files.

> I would like to be able use more than Eclipse as my development
> environment. But it seems that if I use Eclipse, I would have to have
> two versions of the source code, one where I normally keep it and one
> under the Eclipse 'Workspace' directory. Even worse -- after doing a
> build, the classes are all under the workspace directory, meaning I have
> to take an extra step to move them to where I want them.

I was able to create my Eclipse projects on top of existing project folders
using the steps outlined above, if that's not possible for you I'd be
curious to know what prevents it from working. :-)

Usually I create the Eclipse project at the top of my CVS modules and then
adjust source and output paths to point at the right places in the
structure.

Harald
Previous Topic:Java telnet server implementation
Next Topic:Question about FTP capabilities
Goto Forum:
  


Current Time: Sat Jul 12 11:00:02 EDT 2025

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

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

Back to the top