如何使用Ant? [英] How to use Ant?

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

问题描述

我一直在试图了解蚂蚁用来但我仍然不明白这一点。

I've been trying to understand what Ant is used for but i still don't get it.

有人可以给我这蚂蚁是用于一个用例,这是我可以尝试看看为什么Ant是有用的,什么样的东西,我可以用它来做什么?

Can someone give me one use case for which Ant is used for, something I can try to see why Ant is useful and what kind of things I can use it for?

我做的Eclipse Java开发和我刚开始使用servlet和谷歌Web工具包。

I do Java development in Eclipse and I'm just getting started with servlets and Google Web Toolkit.

推荐答案

Ant是一个构建工具。例如说,你在你的Eclipse工作区的几个项目,所有这些都是一个更大的应用的各个部分。为了建立所有到包括依赖jar文件,你可以选择所有的项目,并将其导出为一个jar文件,但这是有点麻烦。

Ant is a build tool. Say for example you have several projects in your Eclipse workspace, all of which are pieces of a larger application. To build it all into a jar file with dependencies included, you could select all the projects and export them as a jar file, but that's somewhat cumbersome.

Ant是一个可扩展的解决方案。您可以定义XML生成过程中,和Ant编译Java文件,按照这个食谱。

Ant is an extensible solution. You define the build process in XML, and ant compiles your java files according to this recipe.

Ant可以做的比建造更多了。我曾在一家公司,其中用于部署的机制是在我们自己的资源库Debian软件包。我们有Ant脚本将构建jar文件,安排他们和一些元数据文件到Debian的软件包,把它们放进存储库,并重新生成库清单。

Ant can do more than building, too. I worked at a company where the mechanism for deployment was Debian packages in our own repository. We had Ant scripts that would build the jar files, arrange them and some metadata files into a Debian package, put them into the repository, and re-generate the repository manifest.

至于用什么Java中,有很多的配置,你需要得到你的头上你熟练使用Ant前左右,但一些基本教程应该给你,你让自己成什么样的想法。

As with anything Java, there's a lot of configuration you need to get your head around before you're proficient with Ant, but some of the basic tutorials should give you an idea of what you're getting yourself into.

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

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