ant实用手册(一)——开篇安装ant

本文详细介绍了如何下载和配置最新版本的Ant,并解释了如何使用ant-ffetch.xml命令自动下载依赖的jar包,以及设置环境变量以方便运行。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

ant下载地址:http://ant.apache.org/

现在最新版本:1.9.1

  1. 下载并解压到相应目录下,为了以后运行方便可以设置ant_home环境变量
  2. 运行ant -version测试ant是否正常
  3. ant运行任务需要依赖一些jar包,apache并没有把所有依赖的jar包放在ant下载文件中,但只需要运行一条命令这些jar文件就会自动下载:ant -f fetch.xml -Ddest=system,Ddest参数决定下载的目录,system表示下载到ant_home/lib文件夹下,具体说明如下:

ant -f fetch.xml -Ddest=[option]

where option is one of the following, as described above:

    • system - store in Ant's lib directory (Recommended)
    • user - store in the user's home directory
    • optional - store in Ant's source code lib/optional directory, used if building Ant source code

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值