提取Eclipse项目的.classpath依赖关系ant脚本 [英] Extract eclipse project .classpath dependencies into ant script

查看:338
本文介绍了提取Eclipse项目的.classpath依赖关系ant脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的Eclipse项目的清单,我想根据现有项目配置进行编译。

I have a list of Eclipse projects that I would like to compile based on the existing project configuration.

据我所知,如果一个ant脚本可以读取classpath文件,将pretty多少能够推断出该项目的依赖关系,并在正确的顺序执行的javac编译。这将节省时间再次描述ant脚本或一个Makefile相同的依赖关系。

As far as I can tell, if an ant script could read the .classpath files, it would pretty much be able to infer the project dependencies and perform a "javac" compilation in the right order. This would save time in describing the same dependencies again in the ant script or a Makefile.

我感兴趣的依赖项JAR依赖,JRE的依赖,以及项目间的依赖关系。这是 - 据我可以告诉 - 的的.classpath XML文件的一部分

The dependencies I am interested in are JAR Dependencies, JRE dependencies, and inter-project dependencies. These are -- as far as I can tell -- part of the .classpath XML file.

如何Eclipse项目的依赖关系可以在Ant脚本中使用的任何想法?

Any ideas on how Eclipse project dependencies could used in an ant script?

推荐答案

右键单击您的项目 - >导出
一般/蚂蚁构建文件。
选择项目,你去那里。

Right click on your Project -> Export "General/Ant Buildfiles". Choose the projects and there you go.

否则...
我有ant4eclipse一定的经验,这是一个麻烦让它保持稳定。

Otherwise... I have some experience with ant4eclipse and it is a hassle to get it stable.

去检查巴克明斯特或Maven第谷的一个很好的解决方案。

Go check Buckminster or Maven Tycho for a good solution.

这篇关于提取Eclipse项目的.classpath依赖关系ant脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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