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

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

问题描述

我使用ANT的所有我的构建,我还使用eclipse作为我的IDE,我想要能够使用最新版本的ANT在我的eclipse,经常的ANT与eclipse一起是一个点释放背后。所以我的问题是。


  1. 有一个简单的方法来获取eclipse ant插件使用最新版本的ANT? li>
  2. 是否有任何简单的方法来添加额外的自定义ant库到内置的eclipse ANT插件,因为我想能够添加像subversion任务到我的蚂蚁构建,并有它从内部访问。 org / bindownload.cgi>最新的ant 构建在硬盘上的任何地方,然后运行Eclipse,然后转到

     窗口>偏好设定> Ant>运行

    并单击

    按钮

      Ant首页

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



    在同一个窗口中,您可以添加任何其他jar第三方ant任务,它们将被ant使用(只是'添加jars'/'添加外部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天全站免登陆