简体   繁体   中英

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.

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". I already copied the ivy jar file to the ant's lib folder. However, I'm still having the same problem. 错误味精

You should execute ant using build.xml file,

If you aren't in its directory, you can specify path using -buildfile or -file or -f

-buildfile use given buildfile

-file ''

-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. build.xml is part of the FreeMarker source code.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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