简体   繁体   中英

How to execute existing build file in Eclipse using ant command?

I am a beginner and new to StackOverflow.

In my root folder, which has a package, I have a build file "build.xml". i wish to execute the build file using the command "ant" while in Eclipse. Example in the folder:

lklk>src>11>"Insert.java","Sort.java","build.xml"

Now, in Terminal we simply type "ant" and the project get's built into jar files.

How do I do the same in Eclipse?

PLEASE NOTE: The answer below maybe right, but the build file isn't showing up there!

窗口>显示视图>蚂蚁>添加build.xml>点击播放按钮

Right-click on the build.xml file. Select: Run As > Ant Build.

Also note, you shouldn't place your build file in the src package. I think build.xml should be the same level as src , not in it.

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