Java项目中的build.xml [英] build.xml in Java project

查看:157
本文介绍了Java项目中的build.xml的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



什么是文件 build.xml



我有一个我必须扩大的大学项目。它还包含一个 build.xml
我想知道是否有可能使用这个 build.xml 在Eclipse或Netbeans中导入此项目。我尝试导入项目,但是我收到一些错误,因为使用J2ME和其他J2SE创建了一个部分,我猜这个文件应该是配置。

解决方案

build.xml 通常是 ant 构建脚本。



它包含构建项目以产生所需输出所必需的信息,无论是Javadocs,编译项目还是JAR文件。我相信Eclipse内置Ant,所以应该可以通过选择Run来执行 build.xml as ...和Ant Build。



build.xml 文件,如果是蚂蚁脚本,不用于将项目导入到Eclipse或Netbeans等IDE中。构建脚本用于构建项目(或产生一些所需的输出),而不是将项目导入到IDE中的机制。


I am new in Java and I need some information.

What is the file build.xml?

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.

解决方案

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.

这篇关于Java项目中的build.xml的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆