如何将 build.xml 添加到 Eclipse 中的现有 GWT 项目?

发布于 2024-10-04 00:40:05 字数 456 浏览 0 评论 0原文

我有一个正在运行的 Java GWT 应用程序,可以使用 Eclipse 对其进行编译。

现在我不想也能够使用 ant 从命令行构建这个应用程序。

据我了解,因此我需要一个 build.xml 文件。 我使用 SDK 附带的 webAppCreator 工具来创建这个 build.xml 文件并根据我的需要进行了调整并使其正常工作。

但是现在我如何告诉 Eclipse 在代码更改时自动更新 build.xml 文件呢?

我知道它可以在使用 webAppCreator 创建的项目中工作。但我只是将 build.xml 复制到另一个项目。那么我需要适应什么?或者我需要在哪里设置 build.xml 的链接?

I have a running Java GWT application, that I can compile using Eclipse.

Now I wan't to also be able to build this application from the command line using ant.

As of my understanding I therefore need a build.xml file.
I used the webAppCreator tool, that comes with the SDK to create this build.xml file and adapted it to my needs and got it working.

But how do I tell Eclipse now to automatically update the build.xml file upon code changes?

I know it is possible for it works in projects created with webAppCreator. But I just copied the build.xml to another project. So what do I need to adapt? Or where do I need to set up the link to the build.xml?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

深陷 2024-10-11 00:40:05

您可以使用 Ant4Eclipse 将 Eclipse 类路径放入您的 ant 构建文件中。这可能只是您正在寻找的解决方案的一部分...我不确定,当与 GWT 项目一起使用时,它实际上有多大用处(您是否希望将库自动复制到 WEB-INF/lib,还有等等?)

You could use Ant4Eclipse to get the Eclipse classpath into your ant build file. That's probably only part of the solution you're looking for... I'm not sure, how useful this will actually be when used together with a GWT project (do you want automatic copying of the libraries to WEB-INF/lib, too? Etc...)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文