任何方式从Eclipse中自动生成Ant build.xml文件? [英] Any way to generate ant build.xml file automatically from Eclipse?

查看:598
本文介绍了任何方式从Eclipse中自动生成Ant build.xml文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Eclipse中,我发现的我可以很容易地导出Ant构建文件为我的项目。它提供了第三方库和一些基本的目标引用。我用它从我的全球构建文件。困扰我这个唯一,是如果事情是在项目结构修改(如添加一个新的第三方库),我们不得不思考(是的,这是很难有时!)关于再生的build.xml文件。 我不知道是否有人在这里知道一个办法把它自动更新。按自动我的意思是,它不会有必要明确要求每一个Eclipse的它需要时间去重新创造它。我不知道这可能是触发虽然...

From Eclipse, I found I can easily export an Ant build file for my project. It provides references to 3rd party libraries and some base targets. I'm using it from my global build file. The only thing that bothers me about this, is that if something is modified in the project structure (like adding a new 3rd party library), we have to think (yes that can be hard sometimes!) about regenerating that build.xml file. I'm wondering if anyone here knows a way to have it updated automatically. By "automatically" I mean that it would not be necessary to explicitly ask Eclipse to regenerate it every time it's needed. I don't know what could be the trigger though...

在这个任何想法或知识?

Any thoughts or knowledge on this?

谢谢!

MJ

推荐答案

这是一个Eclipse项目单击右键,然后导出,然后常规,然后Ant构建文件。我不认为这是可能的,虽然自定义输出格式。

Right-click on an Eclipse project then "Export" then "General" then "Ant build files". I don't think it is possible to customise the output format though.

这篇关于任何方式从Eclipse中自动生成Ant build.xml文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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