Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Orion » The ABCs of workspace organization
The ABCs of workspace organization [message #916110] Tue, 18 September 2012 14:47 Go to next message
Wayne Beaton is currently offline Wayne Beaton
Messages: 502
Registered: July 2009
Senior Member
I've downloaded eclipse-orion-1.0M1-linux.gtk and have installed it locally. Everything seems to work, including Git cloning of repositories.

The challenge is that the directory names on disk do not match the names of the repositories. Instead of seeing {workspace}/org, and {workspace}/eclipse.org-common, I'm seeing {workspace}/C and {workspace}/Q

What I need to be able to do is have the names of these folders match the names of the repositories, so that I can point my webserver at the root and test some PHP files locally. i.e., I need to point the DocRoot of my Apache server to {workspace}.

The files that I'm testing are PHP. A file from one repository, say org/index.php needs to import {serverRoot}/eclipse.org-common/classes/App.class.php. Sometimes we access using relative urls (e.g. ../eclipse.org/common/classes/App.class.php).

Is there a setting that will make this happen?

Thanks,

Wayne
Re: The ABCs of workspace organization [message #916236 is a reply to message #916110] Tue, 18 September 2012 19:32 Go to previous messageGo to next message
John Arthorne is currently offline John Arthorne
Messages: 174
Registered: July 2009
Senior Member
In a word, "no". The Orion server is designed to be multi-user, so using actually project names on disk would inevitably result in collisions between users. This isn't my area of expertise, but I think you need to be using org.eclipse.jetty.servlets.CGI, so that the PHP processing is operating on the files as served up by jetty rather than a particular disk layout. Gunnar suggested this in a bug or mailing list discussion that I am now failing to track down. I suggest entering a bug if there isn't one already, and CC Gunnar and Simon Kaegi.

John
Re: The ABCs of workspace organization [message #917074 is a reply to message #916236] Wed, 19 September 2012 19:49 Go to previous message
Wayne Beaton is currently offline Wayne Beaton
Messages: 502
Registered: July 2009
Senior Member
The quick and dirty solution seems to be to create link to the directory
with the required name. For our purposes, this is all that we need to
make this work with a local installation of Orion.

This will be a bigger issue to solve when we try to make a shared Orion
install for this sort of thing.

FWIW, I tried setting Orion to the 'tree' layout figuring that maybe
that might work (of course, if that would have worked, you would have
suggested it, right?).

Wayne

On 09/18/2012 03:32 PM, John Arthorne wrote:
> In a word, "no". The Orion server is designed to be multi-user, so using
> actually project names on disk would inevitably result in collisions
> between users. This isn't my area of expertise, but I think you need to
> be using org.eclipse.jetty.servlets.CGI, so that the PHP processing is
> operating on the files as served up by jetty rather than a particular
> disk layout. Gunnar suggested this in a bug or mailing list discussion
> that I am now failing to track down. I suggest entering a bug if there
> isn't one already, and CC Gunnar and Simon Kaegi.
>
> John
Previous Topic:Load Timeout for Plugins
Next Topic:"Could not delete read-only file" error running server tests
Goto Forum:
  


Current Time: Thu Oct 30 16:45:06 GMT 2014

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

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