从ANT启动Eclipse运行配置 [英] Launch an Eclipse Run Configuration from ANT
问题描述
Ant4Eclipse 是一个Eclipse插件,看起来可以做你所要求的。我从来没有使用过它,所以不能保证阅读他们说可以创建的文档一个适用于您的启动配置工件的 Executor 任务。然后,您将在构建文件中引用此任务。
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?
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.
这篇关于从ANT启动Eclipse运行配置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!