---
title: "Ant的配置"
author: "icyheart"
date: "2009-03-22T11:49:55Z"
tags: ["Ant", "Apache", "DOS"]
categories: ["企业架构"]
slug: "ant"
draft: false
lastmod: "2009-03-22T11:51:32Z"
id: 353090
url: "https://sucre.iteye.com/blog/353090"
---

一、下载Ant

 

下载地址：

[http://labs.xiaonei.com/apache-mirror/ant/binaries/apache-ant-1.7.1-bin.zip](http://labs.xiaonei.com/apache-mirror/ant/binaries/apache-ant-1.7.1-bin.zip)

 

二、配置Ant

 

在系统环境变量中新建ANT\_HOME=E:\\apache-ant-1.7.1(这个是我解压Ant的目录)，然后在PATH的最后面添加

%ANT\_HOME%\\bin就行了。

 

三、验证

 

在DOS下输入ant -version有如下结果就证明配置成功：

 

Apache Ant version 1.7.1 compiled on June 27 2008