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...










share|improve this question
























  • 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















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...










share|improve this question
























  • 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













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...










share|improve this question















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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


















  • 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












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.






share|improve this answer





















    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














     

    draft saved


    draft discarded


















    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

























    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.






    share|improve this answer

























      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.






      share|improve this answer























        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.






        share|improve this answer












        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.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 10 hours ago









        Julien

        140112




        140112






























             

            draft saved


            draft discarded



















































             


            draft saved


            draft discarded














            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





















































            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







            Popular posts from this blog

            Can a sorcerer learn a 5th-level spell early by creating spell slots using the Font of Magic feature?

            Does disintegrating a polymorphed enemy still kill it after the 2018 errata?

            A Topological Invariant for $pi_3(U(n))$