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

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

问题描述

我用ANT我所有的构建和我也使用Eclipse作为我的IDE,我想能够使用最新版本的ANT在我的日食,频繁的ANT附带日食的背后是发行点。所以我的问题是。


  1. 有没有一种简单的方法来获得日食蚂蚁插件使用最新版本的Ant?

  2. 有没有简单的方法来定制额外的蚂蚁库添加到Eclipse内置ANT插上,因为我希望能够像颠覆任务添加东西我的Ant构建并从Eclipse中访问。


解决方案

下载并解压最新蚂蚁的任何地方建立在你的硬盘上,然后运行Eclipse,并转到

 窗口> preferences>蚂蚁>运行

和点击调用按钮

 蚂蚁首页

浏览到您刚才解压的文件夹蚂蚁,并选择该文件夹。现在Eclipse将使用此版本的蚂蚁,而不是内置的蚂蚁。我用这种方式,实际上preFER它,因为现在我有同样的蚂蚁版本的命令行,并在Eclipse

在同一个窗口中,可以添加其他任何广口瓶与第三方Ant任务,它们将被用于蚂蚁(只是'罐子添加/添加外部JAR')

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. Is there an easy way to get the eclipse ant plug-in to use the latest version of ANT?
  2. Is there any easy way to add extra custom ant libraries to the built in eclipse ANT plug in, as I would like to be able to add things like the subversion task to my ant build and have it accessible from within eclipse.

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

Window > Preferences > Ant > Runtime 

and click on the button called

Ant Home

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

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的蚂蚁?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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