build.xml in Java project

后端 未结 5 2052
轻奢々
轻奢々 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:06

    In java project build.xml file is used write the ant script. And from that ant script you can generate war file and can deploy on Tomcat server

    0 讨论(0)
  • 2021-01-01 11:09

    As mentioned by @coobird this is an ant build file. Although IDEs such as Eclipse and Netbeans have ant support built-in, it is also possible to run ant from the command-line and this may be the simplest way to get started if the project has been well created.

    See http://ant.apache.org/ for docs.

    If you want to try this approach, install ant, cd to the directory with build.xml and issue

    ant
    
    0 讨论(0)
  • 2021-01-01 11:12

    Eclipse can be told to build using an Ant script, but you can also use Ant itself.

    0 讨论(0)
  • 2021-01-01 11:20

    build.xml file is an Ant(Apache) script. you can find more information on Ant & build.xml here

    0 讨论(0)
  • 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.

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