从ANT启动Eclipse运行配置 [英] Launch an Eclipse Run Configuration from ANT

查看:108
本文介绍了从ANT启动Eclipse运行配置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Orion服务器作为我的基于Java的Web应用程序。我有一个运行配置,启动Orion与正确的类路径和所有必要的配置。我还有几个用于将文件复制到构建路径的ANT脚本。我想创建一个关闭Orion的ANT脚本,复制必要的文件,然后重新启动Orion。我可以关闭并复制ANT,但是我不知道如何启动运行配置。我更喜欢引用启动配置,而不是指定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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆