Create an Eclipse project on the command line?

后端 未结 4 1615
难免孤独
难免孤独 2020-12-05 14:53

I would like to have a shell script create an entire CDT project on the command line and add it to a workspace. I\'m willing to generate the .project and .cproject files mys

4条回答
  •  情歌与酒
    2020-12-05 15:15

    I believe all you need is to do is create a folder here:

    WORKSPACE_DIR\.metadata\.plugins\org.eclipse.core.resources\.projects\YOUR_PROJECT_NAME
    

    and a .location file in it.

    You can either use the Eclipse Resources API, or try to implement it yourself based on the current implementation

    I don't know if there's an easiest way

提交回复
热议问题