简体   繁体   English

如何在执行eclipse Project clean时启动ant clean目标

[英]How to launch ant clean target when executing eclipse Project clean

In order to simplify Eclipse use for our newbie users, we want to add this features to Eclipse : 为了简化我们的新手用户的Eclipse使用,我们希望将这些功能添加到Eclipse:

1) If the user click on Project ---->Clean... , eclipse launches also the ant clean target which is implemented in the build.xml file of the concerned project. 1)如果用户单击Project ----> Clean ...,eclipse也会启动ant clean目标,该目标在相关项目的build.xml文件中实现。

2) When the user saves the code, the ant build is launched automatically. 2)当用户保存代码时,会自动启动ant构建。

Any link or a starting point. 任何链接或起点。 Thank you in advance 先感谢您

You can add an Ant build file to the builders for a project in project Properties > Builders . 您可以在项目“ Properties > Builders器”中为项目的构建器添加Ant构建文件。 Click New... and select Ant Builder . 单击New...并选择Ant Builder You can then specify the build.xml and select the targets used for clean, manual build and auto build (run during save). 然后,您可以指定build.xml并选择用于清理,手动构建和自动构建的目标(在保存期间运行)。

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

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