Any way to generate ant build.xml file automatically from Eclipse?

后端 未结 7 1214
后悔当初
后悔当初 2020-11-30 23:33

From Eclipse, I found I can easily export an Ant build file for my project. It provides references to 3rd party libraries and some base targets. I\'m using

相关标签:
7条回答
  • 2020-12-01 00:11
    • Select File > Export from main menu (or right click on the project name and select Export > Export…).
    • In the Export dialog, select General > Ant Buildfiles as follows:

    • Click Next. In the Generate Ant Buildfilesscreen:

      • Check the project in list.
      • Uncheck the option "Create target to compile project using Eclipse compiler" - because we want to create a build file which is independent of Eclipse.
      • Leave the Name for Ant buildfile as default: build.xml

    • Click Finish, Eclipse will generate the build.xml file under project’s directory as follows:
    • Double click on the build.xml file to open its content in Ant editor:

    source

    0 讨论(0)
提交回复
热议问题