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

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

问题描述

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

推荐答案

Ant4Eclipse 是一个 Eclipse 插件和看起来它可以做你所要求的.我自己从未使用过它,所以不能保证但阅读他们的 文档 他们说你可以创建一个 Executor 任务,适用于您的启动配置工件.然后,您将在构建文件中引用此任务.

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天全站免登陆