在 Java 程序中使用 Apache Ant API 以编程方式构建源文件 [英] Using Apache Ant APIs in Java program to programmatically build source files

查看:44
本文介绍了在 Java 程序中使用 Apache Ant API 以编程方式构建源文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找能够帮助我有效使用 Ant API 的优质实用资源.项目网站只提供了 API 的文档,根本没有用.似乎很少有网站提供有关该主题的简短教程.

I am looking for good and practical resources that will help me use the Ant APIs effectively. The project website just gives the documentation of the API which is not useful at all. Very few websites seem to give very brief tutorials on the subject.

是不是我错过了一些资源?如何将 Ant API 用于简单的任务,而无需花费数小时浏览它们并查看源代码?

Is there some resource I am missing out on? How can I use the Ant APIs for simple tasks, without spending hours browsing through them and looking at source code?

谢谢.

(对之前提出的问题的回答没有帮助 - 我如何使用 Apache ANT以编程方式 )

(Answers to previously asked questions not helpful - How can i use Apache ANT Programmatically )

推荐答案

事实证明,缺乏使用 Ant API 的良好资源是众所周知的,也是有意为之.来自 Ant 的 this 文章的底部段落说 -

As it turns out, the lack of good resources on using the Ant API, is known and intended. The bottom paragraph of this article from the Ant says -

此时您可能会问自己的问题是:我如何知道必须调用哪些类和方法才能设置虚拟项目和目标?答案是:你没有.最终,您必须愿意涉足并阅读源代码.上面的例子只是为了激发你的胃口并让你开始.加油!

所以这似乎是充分利用 API 的唯一方法.

So this seems to be the only way to make best use of the API.

这篇关于在 Java 程序中使用 Apache Ant API 以编程方式构建源文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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