Ant构建工具的安装不能正常工作! [英] Ant build tool installation not working properly!

查看:198
本文介绍了Ant构建工具的安装不能正常工作!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经下载在Ant网站蚂蚁分布。
Apache的ANT-1.7.0
并设置环境变量指定的Ant installationas的位置
ANT_HOME = C:\\门户\\ Apache的ANT-1.7.0

i have downloaded the Ant distribution from the Ant web site. apache-ant-1.7.0 and set environment variable specifying the location of the Ant installationas ANT_HOME = C:\portal\apache-ant-1.7.0

PATH =;%ANT_HOME%\\ bin中

PATH=;%ANT_HOME%\bin

但蚂蚁是没有得到正确安装

But ant is not getting properly installed

推荐答案

更好地利用批处理或shell脚本,开始你的蚂蚁文件,F.E. =

Better use batch or shell scripts to start your ant files, f.e. =

窗口

  set JAVA_HOME=C:\java\jdk\1.6.0_xx
  set ANT_HOME=C:\ant
  set ANT_ARGS=-lib C:\ant_xtralibs;C:\ant_testlibs
  set PATH=%PATH%;%JAVA_HOME%\bin;%ANT_HOME%\bin;C:\cvsnt

  :: default
  call ant -f %1

  :: debug
  ::call ant -debug -f %1
  ...

UNIX - 不要忘了quotationmarks上ANT_ARGS行

unix - don't forget the quotationmarks on the ANT_ARGS line !

  ...
  ANT_ARGS="-lib /usr/local/ant_xtralibs:/usr/local/ant_testlibs"
  export ANT_ARGS
  ...

开始蚂蚁那样的一些优点:

Some advantages of starting ant like that :


  • ANT_ARGS是一个特殊的环境变量。其内容是自动
    加入到蚂蚁的调用。

  • ANT_ARGS is a special environment variable. Its content is automatically added to the invocation of ant.

您可以在机器上使用自己的Ant设置在您没有管理员权限

you may use your own ant settings on a machine where you have no admin rights

这篇关于Ant构建工具的安装不能正常工作!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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