在 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
Generating Ant build file for a project in eclipse
提问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 用 Java 编写的项目,我想为它生成一个 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 构建文件 :)
回答by demas
You can create Ant build file and attach it to Eclipse http://help.eclipse.org/help33/topic/org.eclipse.platform.doc.user/gettingStarted/qs-81_basics.htm
您可以创建 Ant 构建文件并将其附加到 Eclipse http://help.eclipse.org/help33/topic/org.eclipse.platform.doc.user/gettingStarted/qs-81_basics.htm