如何将以编程方式生成的 ant 项目导出到 build.xml 中

发布于 2024-09-06 15:24:43 字数 123 浏览 2 评论 0原文

我在外部使用 ant,即我动态构建 org.apache.tools.ant.Project 在我的程序中:设置其任务、目标等,然后我想创建 build.xml 文件。怎么可能呢?如何将该项目导出到序号ant build.xml?

I am using ant externally, i.e. I construct org.apache.tools.ant.Project dynamically
in my program: setup its Tasks, Targets etc., then I want to create build.xml file. How is possible? How possible export this project into ordinal ant build.xml?

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

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

发布评论

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

评论(1

耳根太软 2024-09-13 15:24:43

我最近经常使用 ant 代码库,恐怕我认为这是不可能的。

由于您是首先生成项目的人,因此如果同时生成 XML 可能会更容易。

I've been working with the ant codebase a lot recently, and I'm afraid I don't think this is possible.

Since you're the one generating the project in the first place, it might be easier if you generate the XML at the same time.

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