Pre-Build events in Eclipse

风流意气都作罢 提交于 2019-12-06 18:24:18

问题


I have a project that uses jaxb for some xml processing. How can I setup a pre-build event in eclipse to execute xjc before building my project?


回答1:


Goto Project->Properties->Builders. Create your own builder and enable it. And in the configuration of the builder enable "During auto builds" etc. as shown below:




回答2:


At the moment, eclipse doesn't support this. However, you can use a build tool like Ant, Maven or Gradle for getting the same result.

There are functions in these tools which specifically allow you to execute a given task at any stage of the build.



来源:https://stackoverflow.com/questions/6415211/pre-build-events-in-eclipse

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!