简体   繁体   English

无法运行ant clean jar ide-dependencies命令

[英]Can't run ant clean jar ide-dependencies command

I'm trying to setup Freemarker, but in order to be able to use it, I installed Ant (bin) and Ivy. 我正在尝试设置Freemarker,但是为了能够使用它,我安装了Ant(bin)和Ivy。

If I type ant -version everything seems fine, but everytime I type any command that involves ant, it displays "Buildfile: build.xml does not exist! Build failed". 如果我键入ant -version,一切似乎都很好,但是每次键入涉及ant的任何命令时,它都会显示“ Buildfile:build.xml不存在!构建失败”。 I already copied the ivy jar file to the ant's lib folder. 我已经将常春藤jar文件复制到ant的lib文件夹中。 However, I'm still having the same problem. 但是,我仍然遇到同样的问题。 错误味精

You should execute ant using build.xml file, 您应该使用build.xml文件执行ant,

If you aren't in its directory, you can specify path using -buildfile or -file or -f 如果不在目录中,则可以使用-buildfile或-file或-f指定路径

-buildfile use given buildfile -buildfile使用给定的buildfile

-file '' -文件''

-f '' -F ''

For example: 例如:

 ant -f c:\temp\build.xml clean jar ide-dependencies

You have to issue that command from FreeMarker's directory (the extracted FreeMarker source release directory, or where you have checked FreeMarker out from Git), not from the Ant directory. 您必须从FreeMarker的目录(提取的FreeMarker源发行目录,或从Git中检出FreeMarker的目录)发出命令,而不是从Ant目录发出。 build.xml is part of the FreeMarker source code. build.xml是FreeMarker源代码的一部分。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM