简体   繁体   中英

How do I view Ant scripts that eclipse uses?

I am having a bit of trouble building my project with Ant. I wanted to take a look at the Ant scripts that eclipse uses to build my project. How can I do this?

I don't think eclipse uses ant scripts to build your project by default. However, eclipse can generate ant scripts for you. This can be done by right click project > export > General > Ant buildfiles. Make sure you uncheck the 'use eclipse compiler' if you want the build file to be usable from outside of eclipse.

No ant scripts are used building in the workspace, however, exporting your projects does use ant scripts. You can generate such scripts by right click on the MANIFEST.MF or feature.xml and PDE Tools -> Create Ant Build File.

The exact contents of the generated ant scripts will depend on the options selected for export, so there may be some differences.

选择项目»属性»构建器,以查看Eclipse构建项目时运行的内容。

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