How can I exclude some folders from my Eclipse project?

后端 未结 5 1929
自闭症患者
自闭症患者 2021-01-30 03:30

I\'m adding an eclipse project to our existing code-base, and I\'d like to know if there is a way to exclude some directories from being picked up by eclipse at all? The reason

5条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-30 04:31

    The way I've always done it is to explicitly check out projects as peers. e.g:

    ~/myworkspace/goodproject
    ~/myworkspace/3rdparty
    

    then import only "goodproject" into eclipse. If "3rdparty" is a subdirectory of goodproject, you can fake it out... Say for example your svn project looks like this:

    project/
           src/
              main/
              3rdparty/
    

    You can locally create project/src/ then checkout only the "main" directory, and have eclipse rely on a packaged version (e.g. point to the jar if your project is java).

提交回复
热议问题