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

查看:123
本文介绍了在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进行简单的任务,而无需花费时间通过他们浏览和查看源$ C ​​$ C?

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?

感谢。

(答案previously问的问题没有什么帮助 - 我该怎么使用Apache ANT编程

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

推荐答案

事实证明,缺乏对使用Ant API很好的资源,是已知的和预期的。
在Ant这个文章底部的一段说 -

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 -

你可能会问自己此时的问题是:我怎么知道哪些类和方法必须以建立一个虚拟的项目和Target被称为?答案是:你不知道。最终,你必须愿意让你的脚湿和阅读源$ C ​​$ C。上面的例子仅仅是旨在激起你的食欲,让你开始。加油!

所以,这似乎是使API的最佳使用的唯一途径。

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

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

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