Launch an Eclipse Run Configuration from ANT

2019-02-23 21:37发布

I am using Orion server for my Java-based web application. I have a run configuration that launches Orion with the correct classpaths and all necessary configuration. I also have several ANT scripts for copying files to the build path. I want to create an ANT script that shuts down Orion, copies necessary files, and restarts Orion. I can shutdown and copy in ANT, but I can't figure out how to launch a run configuration. I prefer to reference the launch configuration as opposed to specifying all of the configurations in the ANT script as well. Is this possible?

2条回答
时光不老,我们不散
2楼-- · 2019-02-23 21:59

Ant4Eclipse is an Eclipse plugin and looks like it can do what you are asking. I have never used it myself so can't guarantee but reading their documentation they say you can create an Executor task that works on your launch configuration artifact. You will then reference this task in your build file.

查看更多
Fickle 薄情
3楼-- · 2019-02-23 22:12

With eclipse remote control you can launch eclipse run configurations in eclipse from a simple java client application.

查看更多
登录 后发表回答