open a specific eclipse project from command line

后端 未结 3 1395
醉话见心
醉话见心 2020-12-14 04:44

I work with many small, but unrelated java projects. I made an Ant script that creates the .project and .classpath automatically whenever I create a new project, with the ne

3条回答
  •  甜味超标
    2020-12-14 05:36

    Another possible option is given on this question. The essence of the answer is, if you have CDT installed, you can do:

    eclipse -nosplash 
        -application org.eclipse.cdt.managedbuilder.core.headlessbuild 
        -import     {[uri:/]/path/to/project} 
        -importAll  {[uri:/]/path/to/projectTreeURI} Import all projects under URI
        -build      {project_name | all} 
        -cleanBuild {projec_name | all}
    

    The trick here is that it can import any project, not only C projects.

提交回复
热议问题