Eclipse projects deleted from workspace after checkout to another directory
up vote
0
down vote
favorite
I've a code repository in which is commited an eclipse workspace (everything in the workspace directory except pdom files).
This workspace references several projects that are commited in the same repository.
If I checkout this repository to another place and open it with eclipse, the workspace is empty (no project anymore)
I suspect that eclipse stores projects location with a full path while I expected a relative path.
Unfortunately, I was unable to find in which file of the workspace are stored the projects reference.
I'm using this system for continuous integration with Jenkis. Each branch is checked out in a different directory.
What should I do to make it work ?
Edit : Even if the workspace references projects by their full and not relative path, opening a workspace should at least contain some projects...
eclipse jenkins
add a comment |
up vote
0
down vote
favorite
I've a code repository in which is commited an eclipse workspace (everything in the workspace directory except pdom files).
This workspace references several projects that are commited in the same repository.
If I checkout this repository to another place and open it with eclipse, the workspace is empty (no project anymore)
I suspect that eclipse stores projects location with a full path while I expected a relative path.
Unfortunately, I was unable to find in which file of the workspace are stored the projects reference.
I'm using this system for continuous integration with Jenkis. Each branch is checked out in a different directory.
What should I do to make it work ?
Edit : Even if the workspace references projects by their full and not relative path, opening a workspace should at least contain some projects...
eclipse jenkins
What kind of repository (Git, SVN, ...)? It's unclear to me what your question is. The project locations are stored in the<workspace>/.metadata/.plugins/org.eclipse.core.resources/.projects/<project_name>/.location
files. Is that what you wanted to know?
– howlger
yesterday
For me, it does not depends on the repository but in my case, it is mercurial. Yes, this is the file i'm looking for. I can see that the path is not a relative path... I will try to change it by hand but it's a binary file, not sure if this will work.
– Julien
yesterday
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I've a code repository in which is commited an eclipse workspace (everything in the workspace directory except pdom files).
This workspace references several projects that are commited in the same repository.
If I checkout this repository to another place and open it with eclipse, the workspace is empty (no project anymore)
I suspect that eclipse stores projects location with a full path while I expected a relative path.
Unfortunately, I was unable to find in which file of the workspace are stored the projects reference.
I'm using this system for continuous integration with Jenkis. Each branch is checked out in a different directory.
What should I do to make it work ?
Edit : Even if the workspace references projects by their full and not relative path, opening a workspace should at least contain some projects...
eclipse jenkins
I've a code repository in which is commited an eclipse workspace (everything in the workspace directory except pdom files).
This workspace references several projects that are commited in the same repository.
If I checkout this repository to another place and open it with eclipse, the workspace is empty (no project anymore)
I suspect that eclipse stores projects location with a full path while I expected a relative path.
Unfortunately, I was unable to find in which file of the workspace are stored the projects reference.
I'm using this system for continuous integration with Jenkis. Each branch is checked out in a different directory.
What should I do to make it work ?
Edit : Even if the workspace references projects by their full and not relative path, opening a workspace should at least contain some projects...
eclipse jenkins
eclipse jenkins
edited 11 hours ago
asked yesterday
Julien
140112
140112
What kind of repository (Git, SVN, ...)? It's unclear to me what your question is. The project locations are stored in the<workspace>/.metadata/.plugins/org.eclipse.core.resources/.projects/<project_name>/.location
files. Is that what you wanted to know?
– howlger
yesterday
For me, it does not depends on the repository but in my case, it is mercurial. Yes, this is the file i'm looking for. I can see that the path is not a relative path... I will try to change it by hand but it's a binary file, not sure if this will work.
– Julien
yesterday
add a comment |
What kind of repository (Git, SVN, ...)? It's unclear to me what your question is. The project locations are stored in the<workspace>/.metadata/.plugins/org.eclipse.core.resources/.projects/<project_name>/.location
files. Is that what you wanted to know?
– howlger
yesterday
For me, it does not depends on the repository but in my case, it is mercurial. Yes, this is the file i'm looking for. I can see that the path is not a relative path... I will try to change it by hand but it's a binary file, not sure if this will work.
– Julien
yesterday
What kind of repository (Git, SVN, ...)? It's unclear to me what your question is. The project locations are stored in the
<workspace>/.metadata/.plugins/org.eclipse.core.resources/.projects/<project_name>/.location
files. Is that what you wanted to know?– howlger
yesterday
What kind of repository (Git, SVN, ...)? It's unclear to me what your question is. The project locations are stored in the
<workspace>/.metadata/.plugins/org.eclipse.core.resources/.projects/<project_name>/.location
files. Is that what you wanted to know?– howlger
yesterday
For me, it does not depends on the repository but in my case, it is mercurial. Yes, this is the file i'm looking for. I can see that the path is not a relative path... I will try to change it by hand but it's a binary file, not sure if this will work.
– Julien
yesterday
For me, it does not depends on the repository but in my case, it is mercurial. Yes, this is the file i'm looking for. I can see that the path is not a relative path... I will try to change it by hand but it's a binary file, not sure if this will work.
– Julien
yesterday
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
OK, I solved it by scripting the building of a new eclipse workspace with the headless feature of eclipse.
No workspace is stored in the repository anymore.
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
OK, I solved it by scripting the building of a new eclipse workspace with the headless feature of eclipse.
No workspace is stored in the repository anymore.
add a comment |
up vote
0
down vote
OK, I solved it by scripting the building of a new eclipse workspace with the headless feature of eclipse.
No workspace is stored in the repository anymore.
add a comment |
up vote
0
down vote
up vote
0
down vote
OK, I solved it by scripting the building of a new eclipse workspace with the headless feature of eclipse.
No workspace is stored in the repository anymore.
OK, I solved it by scripting the building of a new eclipse workspace with the headless feature of eclipse.
No workspace is stored in the repository anymore.
answered 10 hours ago
Julien
140112
140112
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53372473%2feclipse-projects-deleted-from-workspace-after-checkout-to-another-directory%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
What kind of repository (Git, SVN, ...)? It's unclear to me what your question is. The project locations are stored in the
<workspace>/.metadata/.plugins/org.eclipse.core.resources/.projects/<project_name>/.location
files. Is that what you wanted to know?– howlger
yesterday
For me, it does not depends on the repository but in my case, it is mercurial. Yes, this is the file i'm looking for. I can see that the path is not a relative path... I will try to change it by hand but it's a binary file, not sure if this will work.
– Julien
yesterday