Apache Ant Build 命令“拒絕訪問” (Apache Ant Build command "Access Denied")


問題描述

Apache Ant Build 命令“拒絕訪問” (Apache Ant Build command "Access Denied")

Hey! I am trying to get ant installed and actually already did following this instructions however, I get this error:

Buildfile: build.xml does not exist!
Build failed

which it says there I might get so I just tried executing the next command it says I should(since I'm under Windows it's this one):

build ‑Ddist.dir=<C:\Ant> dist

anyway I get "access denied" when hitting enter and I can't figure out why. I also tried 

build install

and

build install‑lite

but I always get that message =/ any ideas why? or what am I doing wrong?


Edit

Without the < > I get a:

  

'build' is not recognized as an   internal or external command, operable   program or batch file.


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

‑‑‑‑‑

參考解法

方法 1:

You are taking the < and > symbols too literally.  Take them off.

Kind of like C:\Users\<Your ID> the symbols are placeholders.

Are you in the right directory?  Do you have something else called build in your path that may be superceeding the build you are trying to call.  Can you create a file in that directory?

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

方法 2:

Ant is already installed correctly if you're getting this:

Buildfile: build.xml does not exist!
Build failed

The "build" commands you tried next are only for building Ant from source.  You don't need to do this, since Ant is already installed.

In general, the "'XXXX' is not recognized..." means XXXX is not a command/executable, or that it's not on your PATH.

方法 3:

Not sure if this helps but the first question that comes to mind is "do you have appropriate permissions on the file"?

(by TsundokuojblassrkbAnkur)

參考文件

  1. Apache Ant Build command "Access Denied" (CC BY‑SA 3.0/4.0)

#installation #ant #build






相關問題

Instal versi Firebird yang benar (32bit atau 64bit) dengan Inno Setup (Install correct version of Firebird (32bit or 64bit) with Inno Setup)

在 Ubuntu 中與 EPD python 一起安裝 NLTK (Installing NLTK alongside EPD python in Ubuntu)

INSTAL_PARSE_FAILED_NO_CERTIFICATES - 試圖在 robotsium 上測試不是我的 .apk 文件 (INSTAL_PARSE_FAILED_NO_CERTIFICATES - trying to test not my .apk file on robotium)

直截了當的回答:安裝 py2app (Straight and simple answer: installing py2app)

Sql 2008 排序規則 (Sql 2008 Collation)

Apache Ant Build 命令“拒絕訪問” (Apache Ant Build command "Access Denied")

如何在 C# 部署中包含文件? (How can I include files in a C# deployment?)

使用一個安裝程序安裝多個軟件(安裝包裝器?) (Install multiple softwares with one installer (install wrapper?))

如何獲取 Eclipse 安裝目錄的絕對路徑? (How can I get the absolute path to the Eclipse install directory?)

iPhone,如何使用objective-c為iphone安裝新字體? (Iphone,how to install new font to iphone by using objective-c?)

create-react-app 命令卡在使用 cra-template 安裝 react react-dom react-scripts (create-react-app command stuck on installing react react-dom react-scripts with cra-template)

tensorflow安裝報錯(ERROR:找不到滿足tensorflow要求的版本) (Tensorflow installation error (ERROR: Could not find a version that satisfies the requirement tensorflow))







留言討論