如何添加构建步骤到Eclipse"运行配置"? [英] How to add build steps to Eclipse "run configuration"?

查看:174
本文介绍了如何添加构建步骤到Eclipse"运行配置"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有一种方法来构建步骤添加到Eclipse的一个运行配置?

Is there a way to add build steps to a "run configuration" in Eclipse?

我的工程中使用的应该启动Web应用程序之前建立了一个小程序。所以我想配置Eclipse做实际运行应用程序之前,这个单一的一步。

My project uses an applet that should be built before starting the web application. So I'd like to configure Eclipse to do this single step before actually running the application.

我知道我可以用Ant / Maven的做,但我不知道是否有办法做到这一点在Eclipse。

I know I can do it with Ant/Maven, but I wonder if there's a way to do it in Eclipse.

感谢

推荐答案

有关经典的启动(Java或Java小程序)的配置,没有。不能直接使用。

For a classic launching (Java or Java Applet) configuration, no. Not directly.

对于外部TOLS发射,不直接或者

For an External Tols launcher, not directly either.

这个想法是:


  • 要每次修改你的主要项目时,不建立自己的小程序

  • 确保当你想要启动你的webapp它是建立。

有关这一点,你可以定义两个项目:

For that, you could define two projects:


  • 一个主项目的编译。

  • 第二(根据第一),为你的小应用程序的编译。

然后,您的启动配置将与第二个项目运行(包括第一)

Your launching configuration would then run with the second project (which includes the first)

如果选择了选项自动生成,第二个项目不应该没有被先编译运行。

If the option "Build automatically" is selected, the second project shouldn't run without being compiled first.

这篇关于如何添加构建步骤到Eclipse"运行配置"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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