问题描述
我使用的猎户座服务器为我的基于Java的Web应用程序。我有一个用正确的类路径和所有必要的配置启动猎户座运行配置。我也有将文件复制到构建路径一些Ant脚本。我想创建关闭猎户座,复制必要的文件,并重新启动猎户座Ant脚本。我可以关闭和ANT复制,但我无法弄清楚如何启动一个运行配置。我preFER引用启动配置,而不是指定所有配置的Ant脚本为好。这可能吗?
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?
推荐答案
是一个Eclipse插件和外观喜欢的话可以做你的要求。我从来没有使用过自己,所以不能保证,但阅读他们的他们说你可以创建一个的任务,在你的启动配置神器工作。然后,您将在您的构建文件中引用此任务。
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运行配置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!