简体   繁体   English

使用ant创建Android项目的源代码分发

[英]Creating a source distribution of an Android project with ant

I'm building an Android application and would like to automate the packaging of the source code (either into tarballs or zip files). 我正在构建一个Android应用程序,并且希望自动打包源代码(打包成tarball或zip文件)。 Now, obviously, I could do this with a shell script that zips up everything that is relevant and ignores the Mercurial directory at the top of the source tree, but that seems kludgy. 现在,很明显,我可以使用一个shell脚本来做到这一点,该脚本压缩所有相关的内容,并忽略源代码树顶部的Mercurial目录,但这似乎很笨拙。

I'm wondering if there is a "proper" way to do this with ant, in much the same way that GNU autotools would let me type "make dist" in the top level of a C project, and give me a file such as hello-0.0.1.tar.gz, containing only the source. 我想知道是否有一种使用ant的“适当”方法,就像GNU autotools可以让我在C项目的顶层键入“ make dist”并给我一个诸如以下文件一样hello-0.0.1.tar.gz,仅包含源。

I'm not using Eclipse, just hand-editing files with vi and running ant manually. 我没有使用Eclipse,而是使用vi手动编辑文件并手动运行ant。

Cheers, 干杯,

Paul 保罗

尝试使用AntMaven

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM