如何将以编程方式生成的 ant 项目导出到 build.xml 中
我在外部使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我最近经常使用 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.