English 中文(简体)
Apache Ant构建命令“拒绝访问”
原标题:
  • 时间:2009-04-07 05:33:12
  •  标签:

嘿!我试图安装ant和已经做了< a href = " http://ant.apache.org/manual/install.html #安装”rel = " nofollow noreferrer " >然而,这说明< / >我得到这个错误:

Buildfile: build.xml does not exist!
Build failed

它说,我可能会因此我只是尝试执行下一个命令说我应该(因为我在Windows年代这一个):

build -Ddist.dir=<C:Ant> dist

反正我得到“拒绝访问”当撞击进入我无法找出原因。我也试过

build install

build install-lite

但我总是得到消息= /任何想法为什么?或者我做错了什么?


<强>编辑< /强>

我得到一个没有< >:

build is not recognized as an internal or external comm和, operable program or batch file.


Edit2 Well, my ANT_HOME is in C:Ant 和 I m trying to run the comm和 while placing myself on that folder, isn t that correct?

最佳回答

蚂蚁已经正确安装如果你得到这个:

Buildfile: build.xml does not exist!
Build failed

“构建”命令,您尝试下一只从源代码构建蚁。你不需要这样做,因为蚂蚁已经安装。

一般来说,“XXXX并不承认…”意味着XXXX不是命令/可执行文件,或者它不是在你的路径。

问题回答

你是<和>符号太表面化了。脱。

有点像<代码> C:用户<您的ID > < /代码>符号是占位符。

你是在正确的目录吗?你有别的东西叫做构建路径中可能superceeding构建你想打电话。你可以创建这个目录中的一个文件吗?

PROMPT> copy con foo.txt
asdf
asdf
sdf
CONTROL-D

不知道这有助于但想到的第一个问题是“你有适当的权限的文件”?





相关问题
热门标签