build.xml in Java project

后端 未结 5 2090
轻奢々
轻奢々 2021-01-01 10:31

What is the file build.xml?

I was wondering if it is a possibility to import this project in Eclipse or Netbeans using this build.xml. I tr

5条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-01 11:28

    build.xml usually is an ant build script.

    It contains information necessary to build the project to produce the desired output, be it Javadocs, a compiled project, or a JAR file.

    I believe Eclipse has ant built-in, so it should be possible to execute the build.xml by choosing "Run As..." and "Ant Build".

    The build.xml file, if it is an ant script, is not used to import the project into an IDE like Eclipse or Netbeans. A build script is used to build the project (or produce some desired output) rather than an mechanism for importing the project into an IDE.

提交回复
热议问题