我如何使用Apache Ant的编程 [英] How can i use Apache ANT Programmatically

查看:151
本文介绍了我如何使用Apache Ant的编程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我做一个简单的程序,汇编和一个jar文件,但我不希望使用一个build.xml(然后以exec调用它)。

I'm making a simple program that compile and make a jar file but i don't want to use a build.xml (and then invoke it with exec).

但我想用ANT API(例如: org.apache.tools.ant.Task

but i want using ANT API(for example:org.apache.tools.ant.Task)

任何帮助吗?

推荐答案

您还不如直接从源得到的答案:的使用Ant任务的Ant 之外

You might as well get the answer directly from the source: Using Ant Tasks Outside of Ant

您可能也有兴趣在类似切叶,号称提供:

You might also be interested in something like Leafcutter, which claims to provide:

这是API,它可以让你从Java code执行Ant任务。

An API which allows you to execute Ant tasks from Java code.

我没有用往心里去,只是让你知道它的存在...

I haven't used it personally, just letting you know that it exists...

这篇关于我如何使用Apache Ant的编程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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