concept workspace in category liferay

appears as: workspaces, workspace
Liferay in Action: The Official Guide to Liferay Portal Development

This is an excerpt from Manning's book Liferay in Action: The Official Guide to Liferay Portal Development.

A.1.1. Eclipse and workspaces

Eclipse uses the notion of workspaces (something it inherited from Visual Age for Java) to store Java projects. Unlike Visual Age for Java, an Eclipse workspace is just a folder on your file system with projects in it. Eclipse creates various hidden folders (using UNIX-style dot notation) that make the IDE look at the folder structure as a workspace. Eclipse also allows you to import projects from your file system. In that case, only Eclipse’s configuration files for the various projects are stored in the workspace. I think it’s better to use Eclipse this way, because you’re free to put your projects anywhere you wish, which frees you to organize your projects the way you want.

The first time you launch Eclipse, it will ask you for a workspace location. If you’re developing on a Windows platform and you plan to store projects in the workspace, I recommend that you place your workspaces somewhere close to the root folder of your drive in [Code Home], for reasons mentioned in chapter 2. Users of LUM operating systems don’t have this problem.

Longtime Eclipse users generally have the practice of keeping separate workspaces for separate groups of projects. For example, if a developer were working on a set of portlets that made up a Customer Relationship Management system, that set of projects might exist in one workspace. Say a bug was found that affected another set of projects the developer completed a month ago. This developer could then switch workspaces and open the other set of projects all at once.

Developers who use Eclipse have learned to do this because Eclipse compiles code in the background occasionally. If there are a lot of projects in the workspace, this process can take a long time and slow down your system. Liferay is a very large project with thousands of source-code files, so you can imagine how Eclipse might be affected by having the Liferay source-code project in its workspace. If you’re writing applications on top of Liferay, this won’t affect you as much, because you won’t necessarily need access to the Liferay source. But if you’re customizing Liferay or want to hack on Liferay itself, it can be an issue, especially if you mix Liferay and a bunch of other projects in your workspace.