简体   繁体   English

如何查看Eclipse使用的Ant脚本?

[英]How do I view Ant scripts that eclipse uses?

I am having a bit of trouble building my project with Ant. 我在使用Ant构建项目时遇到了一些麻烦。 I wanted to take a look at the Ant scripts that eclipse uses to build my project. 我想看看eclipse用来构建我的项目的Ant脚本。 How can I do this? 我怎样才能做到这一点?

I don't think eclipse uses ant scripts to build your project by default. 我认为eclipse在默认情况下不使用ant脚本来构建您的项目。 However, eclipse can generate ant scripts for you. 但是,eclipse可以为您生成蚂蚁脚本。 This can be done by right click project > export > General > Ant buildfiles. 可以通过右键单击项目>导出>常规> Ant构建文件来完成。 Make sure you uncheck the 'use eclipse compiler' if you want the build file to be usable from outside of eclipse. 如果要使构建文件可从Eclipse外部使用,请确保取消选中“使用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. 您可以通过右键单击MANIFEST.MF或feature.xml和PDE工具->创建Ant构建文件来生成此类脚本。

The exact contents of the generated ant scripts will depend on the options selected for export, so there may be some differences. 生成的ant脚本的确切内容将取决于为导出选择的选项,因此可能会有一些差异。

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

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

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