Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Proper Selection Of Workspace(Selecting A Folder For Workspace)
icon5.gif  Proper Selection Of Workspace [message #723693] Fri, 09 September 2011 07:50 Go to next message
Panos Katergiathis is currently offline Panos KatergiathisFriend
Messages: 4
Registered: August 2011
Junior Member
Hello all.

I am having some trouble in understanding how one should select a workspace folder when doing web development. I selected a folder somewhere on my disk, while attempting the creation of a small java servlet. Having properly configured the "Servers" preferences pane, i "Run" my servlet and everything worked (using Tomcat 6).

However, how should i select the "workspace" folder if i was to use PDT tools for PHP? Should the "workspace" folder, be one that my web server (Apache) is already configured to serve, or should it be elsewhere (in which case, Eclipse would be publishing the files to the proper folder, when i select "Run")?

To make it even more complicated, how should i proceed in creating a working environment for the development of Java and PHP web applications?

Should i install Tomcat, install Apache, configure possible virtual hosts, know what folders each server serves, and create "workspace" folders... where?

Please assist, if possible.

Panos

Re: Proper Selection Of Workspace [message #724056 is a reply to message #723693] Sat, 10 September 2011 14:52 Go to previous messageGo to next message
David Wegener is currently offline David WegenerFriend
Messages: 1442
Registered: July 2009
Senior Member
On 09/09/2011 02:50 AM, Panos Katergiathis wrote:
> Hello all.
>
> I am having some trouble in understanding how one should select a
> workspace folder when doing web development. I selected a folder
> somewhere on my disk, while attempting the creation of a small java
> servlet. Having properly configured the "Servers" preferences pane, i
> "Run" my servlet and everything worked (using Tomcat 6).
>
> However, how should i select the "workspace" folder if i was to use PDT
> tools for PHP? Should the "workspace" folder, be one that my web server
> (Apache) is already configured to serve, or should it be elsewhere (in
> which case, Eclipse would be publishing the files to the proper folder,
> when i select "Run")?
>
> To make it even more complicated, how should i proceed in creating a
> working environment for the development of Java and PHP web applications?
>
> Should i install Tomcat, install Apache, configure possible virtual
> hosts, know what folders each server serves, and create "workspace"
> folders... where?
>
> Please assist, if possible.
>
> Panos
>
>

You need to understand the difference between a workspace and a project.
A workspace is a way to organize a group of projects. The workspace
provides a location to hold your projects, but they don't need to be
located in the workspace. In fact, keeping the projects located outside
of the workspace has many advantages. The project remains isolated from
the workspace configuration files. It is often easier to work with
source code management systems.

Pick a location for your workspace that is convenient for you. Often
times people will place their workspaces in their home directory so they
can find them easily. You can have as many workspaces as your hard
drive will hold. Use them to organize your projects.

Multiple workspaces can reference the same project. This allows utility
and library projects to be included in multiple workspaces.

The location of your project is a tougher question. This depends on the
type of project, how you intend to use it (personal, sharing with a
group), and how it fits in with the rest of your system. You reference
the PDT. I would look at the help documentation provided by that
feature to see if it provides any guidance. There is also an Eclipse
forum for PDT. You may want to ask there as well.
Re: Proper Selection Of Workspace [message #724095 is a reply to message #724056] Sat, 10 September 2011 18:45 Go to previous messageGo to next message
Panos Katergiathis is currently offline Panos KatergiathisFriend
Messages: 4
Registered: August 2011
Junior Member
Thank you for your answer. Indeed, i was unclear about projects and workspaces.

However, one question remains: should i be placing "projects" in directories served by a web server, or should i be placing them wherever and let Eclipse handle all web-server specifics, that would make the project's content serve-able? I mentioned PDT, since PHP is capable of web-applications only, while Java can be used as a language for building desktop applications, so for web apps the selection of a project's location is more critical.

Re: Proper Selection Of Workspace [message #724125 is a reply to message #724095] Sat, 10 September 2011 22:31 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 32454
Registered: July 2009
Senior Member
Panos,

I think you put them wherever and let the web tools help produce
something (like a WAR) that can be deployed to a webserver


On 10/09/2011 11:45 AM, Panos Katergiathis wrote:
> Thank you for your answer. Indeed, i was unclear about projects and
> workspaces.
>
> However, one question remains: should i be placing "projects" in
> directories served by a web server, or should i be placing them
> wherever and let Eclipse handle all web-server specifics, that would
> make the project's content serve-able? I mentioned PDT, since PHP is
> capable of web-applications only, while Java can be used as a language
> for building desktop applications, so for web apps the selection of a
> project's location is more critical.
>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Proper Selection Of Workspace [message #724931 is a reply to message #724125] Tue, 13 September 2011 14:10 Go to previous message
Eric Rizzo is currently offline Eric RizzoFriend
Messages: 3071
Registered: July 2009
Senior Member
On 9/10/11 6:31 PM, Ed Merks wrote:
> Panos,
>
> I think you put them wherever and let the web tools help produce
> something (like a WAR) that can be deployed to a webserver

I agree, for Java web projects. For PHP, it might be a different
situation. Best to ask in the PDT forum group, where the PHP gurus hang out.

Eric


> On 10/09/2011 11:45 AM, Panos Katergiathis wrote:
>> Thank you for your answer. Indeed, i was unclear about projects and
>> workspaces.
>>
>> However, one question remains: should i be placing "projects" in
>> directories served by a web server, or should i be placing them
>> wherever and let Eclipse handle all web-server specifics, that would
>> make the project's content serve-able? I mentioned PDT, since PHP is
>> capable of web-applications only, while Java can be used as a language
>> for building desktop applications, so for web apps the selection of a
>> project's location is more critical.
>>
>>
Previous Topic:ejb-jar.xml auto completion
Next Topic:How to set global preference?
Goto Forum:
  


Current Time: Fri Aug 19 23:44:13 GMT 2022

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

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

Back to the top