在 Eclipse 中为项目生成 Ant 构建文件

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/2753795/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 14:42:14  来源:igfitidea点击:

Generating Ant build file for a project in eclipse

javaeclipseant

提问by Maksim Skurydzin

I have a project written in Java using eclipse and I would like to generate an Ant build file for it. How can it be done? I constantly need to keep it synchronized with the source code, so that I could promote it along with the code to the common repository when with the project structure is modified.

我有一个使用 eclipse 用 Ja​​va 编写的项目,我想为它生成一个 Ant 构建文件。怎么做到呢?我经常需要保持它与源代码同步,以便在修改项目结构时可以将它与代码一起推广到公共存储库。

I'm sorry for a stupid question like this. I've browsed across the forums, but still no luck.

我很抱歉问这样一个愚蠢的问题。我浏览了论坛,但仍然没有运气。

Thanks in advance.

提前致谢。

采纳答案by Maksim Skurydzin

I have accidentally discovered the way to do it. It's quite simple: Right click on the project -> Export -> Ant build file :)

我偶然发现了这样做的方法。很简单:右键单击项目 -> 导出 -> Ant 构建文件 :)