Opening an eclipse project through command prompt or batch file

孤街醉人 提交于 2020-02-05 05:35:20

问题


I am building an application that is for testing using Selenium Java tool. Is there any way to open an existing eclipse project from the command line or through a batch file so that I can allow the users to select the testproject which is in Java with just a click of a button?

I found that this command if for building a project

eclipsec.exe -noSplash -data "D:\Source\MyProject\workspace" -application org.eclipse.jdt.apt.core.aptBuild

But I couldn't find one for opening one.


回答1:


If you omit -application and simply run eclipse.exe -data "D:\Source\MyProject\workspace", then your workspace will be opened. If you have only one project there then issue is resolved. If not, you can easily create new workspace with a link to your existing project.



来源:https://stackoverflow.com/questions/5177748/opening-an-eclipse-project-through-command-prompt-or-batch-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!