通过命令提示符或批处理文件打开eclipse项目 [英] Opening an eclipse project through command prompt or batch file
问题描述
我正在构建一个用于使用Selenium Java工具进行测试的应用程序。
是否有任何方法从命令行或批处理文件打开现有的eclipse项目,以便我可以允许用户只需点击一下按钮选择Java中的testproject?
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.
推荐答案
如果省略 -application
,只需运行 eclipse.exe -dataD:\Source\MyProject\workspace
打开。如果你只有一个项目,那么问题得到解决。如果没有,您可以轻松地创建新工作区,其中包含指向现有项目的链接。
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.
这篇关于通过命令提示符或批处理文件打开eclipse项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!