Mac update Ant

Installing or Upgrading Ant in Mac OSX

First of all Ant already come with Mac OSX, but if you really need to install it or want to upgrade it, though, the best way would be to install it through  MacPorts (using  sudo port install apache-ant). To install it manually you can follow these simple steps:
  1. Download latest Ant build from: http://ant.apache.org/bindownload.cgi
  2. Check previous version of ant on your mac
    ant --version
  3. Go to your downloads folder or folder where you downloaded Ant bundle.
  4. Extract the bundle
    tar -xvzf apache-ant-1.8.1-bin.tar.gz 
  5. Ensure that /usr/local exists; if not found can be created by
    sudo mkdir -p /usr/local
  6. Copy it into /usr/local
    sudo cp -rf apache-ant-1.8.1-bin /usr/local/apache-ant
  7. Add the new version of Ant to current terminal session
    export PATH=/usr/local/apache-ant/bin:$PATH;
  8. Add the new version of Ant to future terminal sessions
    echo 'export PATH=/usr/local/apache-ant/bin:$PATH' >> ~/.profile
Now check new version of ant on you mac.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值