在的build.xml Java项目 [英] build.xml in Java project
问题描述
我在Java中新的,我需要一些资料。
I am new in Java and I need some information.
什么是文件的build.xml
?
我有我不得不延长一所大学的项目。这也是一个的build.xml
包含。
我想知道,如果它是一种可能性,导入Eclipse或Netbeans的这个项目使用该的build.xml
。我试图导入该项目,但我得到了一些错误,因为是使用J2ME和其他J2SE创建一个部分,我想这个文件应该是配置。
I have a university project which I have to extend. It contains also a build.xml
.
I was wondering if it is a possibility to import this project in Eclipse or Netbeans using this build.xml
. I tried to import the project but I get some errors since one part is created using J2ME and the other J2SE and I guess this file should be the configuration.
推荐答案
它包含了必要的信息来构建项目以产生所需的输出,无论是Javadoc文档,编译好的项目,或者一个JAR文件。
It contains information necessary to build the project to produce the desired output, be it Javadocs, a compiled project, or a JAR file.
我相信Eclipse已经蚂蚁内置的,所以它应该可以通过选择运行方式...和Ant构建执行的build.xml
I believe Eclipse has ant built-in, so it should be possible to execute the build.xml
by choosing "Run As..." and "Ant Build".
的的build.xml
文件,如果它是一个ant脚本,不用于项目导入像Eclipse或Netbeans的一个IDE。构建脚本来构建项目(或产生一些所需的输出),而不是导入项目到IDE的机制。
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.
这篇关于在的build.xml Java项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!