有没有办法从 Eclipse 自动生成 ant build.xml 文件? [英] Any way to generate ant build.xml file automatically from Eclipse?

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

问题描述

从 Eclipse 中,我发现我可以轻松地为我的项目导出 Ant 构建文件.它提供了对 3rd 方库和一些基本目标的引用.我从我的全局构建文件中使用它.唯一让我烦恼的是,如果项目结构中的某些内容被修改(例如添加新的 3rd 方库),我们必须考虑(是的,有时可能很难!)重新生成该 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天全站免登陆