Store run configuration with project in Eclipse

前端 未结 1 1093
梦毁少年i
梦毁少年i 2020-12-08 18:37

I\'m programming in NetBeans however i like to get used to Eclipse as well. I have a Maven project what i\'ve developed in NetBeans and after importing it compiles fine in E

相关标签:
1条回答
  • 2020-12-08 19:33

    Yes - open "Run" then "Run Configurations...", and select your configuration. Click on the last tab, "Common". Under "Save As", choose "Shared File" instead of "Local File".

    enter image description here

    This dialog is a little confusing. The line next to "Shared File" can only be a path, not a file name - and it defaults to the root path of the current project. Once you hit "Apply", a file named the [Run Configuration Name] + ".launch" is created within that folder. So in my above example, this results in a "/JavaTest/JavaTest.launch" file. This is something that can be comitted to version control.

    0 讨论(0)
提交回复
热议问题