开发者

How to add build steps to Eclipse "run configuration"?

Is there a way to add build steps to a "run configuration" in 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.

I know I 开发者_如何学Ccan do it with Ant/Maven, but I wonder if there's a way to do it in Eclipse.

Thanks


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

For an External Tols launcher, not directly either.

The idea would be:

  • to not build your applet every time you modify your main project
  • make sure it is built when you want to launch your webapp.

For that, you could define two projects:

  • one for the compilation of your main project.
  • the second (depending on the first) for the compilation of your applet.

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜