如何升级eclipse内置的ant? [英] How to upgrade the ant built into eclipse?

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

问题描述

我的所有构建都使用 ANT,我也使用 eclipse 作为我的 IDE,我希望能够在我的 eclipse 中使用最新版本的 ANT,通常 eclipse 附带的 ANT 是一个点发布.所以我的问题是.

I use ANT for all my builds and I also use eclipse as my IDE and I would like to be able to use the latest version of ANT in my eclipse, frequently the ANT that ships with eclipse is a point release behind. so my questions are.

  1. 是否有一种简单的方法可以让 eclipse ant 插件使用最新版本的 ANT?
  2. 是否有任何简单的方法可以将额外的自定义 ant 库添加到内置的 eclipse ANT 插件中,因为我希望能够将 subversion 任务之类的内容添加到我的 ant 构建中,并可以从 eclipse 中访问它.

推荐答案

下载并解压 最新的 ant 在硬盘上的任意位置构建,然后运行 ​​Eclipse,然后转到

Download and unpack the latest ant build anywhere on your hard disk, then run Eclipse, and go to

Window > Preferences > Ant > Runtime 

然后点击名为

Ant Home

浏览到您刚刚解压的 ant 文件夹,然后选择该文件夹.现在 Eclipse 将使用这个版本的 ant 而不是内置的 ant.我使用这种方式,实际上更喜欢它,因为现在我在命令行和 Eclipse 中拥有相同的 ant 版本

Browse to the ant folder that you just unpacked, and choose that folder. Now Eclipse will use this version of ant instead of the built-in ant. I use this way, and actually prefer it, because now I have the same ant version in command line and in Eclipse

在同一窗口中,您可以添加任何其他带有 3rd 方 ant 任务的 jar,它们将被 ant 使用(只需添加 jar"/添加外部 jar")

In the same window you can add any other jars with 3rd party ant tasks, and they will be used by ant (just 'add jars'/'add external jars')

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

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