ant使用exec执行shell
2014-01-28 03:38
309 查看
<target name="versioncode"> <exec executable="sh" outputproperty="v_code"> <arg value="-c" /> <arg value="svnversion | sed -e 's/^[^:]*://;s/[A-Za-z]//'" /> </exec> <echo>Revision (app): ${v_code}</echo> <replaceregexp file="AndroidManifest.xml" match='android:versionCode="0"' replace='android:versionCode="${v_code}"' /> </target>向menifest中打入versionCode信息
相关文章推荐
- expect中使用exec执行shell命令的方法
- 使用ant 的exec时不能随意省略可执行文件的扩展名
- expect中使用exec执行shell命令的方法
- expect中使用exec执行shell命令
- 使用ant直接执行shell命令
- 使用ant的exec命令来调用 make命令执行makefile文件
- OC---第一个OC程序(使用GNUstep的shell编译执行)
- 概述PHP命令行shell_exec()使用
- 使用shell脚本执行hive、sqoop命令
- Linux下使用popen()执行shell命令
- php执行外部命令函数:exec()、passthru()、system()、shell_exec()对比
- Linux下使用Shell命令控制程序后台执行
- 利用python执行shell脚本 并动态传参 及subprocess基本使用
- WScript.Shell对象的 run()和exec()函数使用详解
- 使用Ant将java工程打包成bat可执行性文件
- 工具 07 使用crontab,让linux定时执行shell脚本
- 五种bash shell执行方式 fork, source, exec, (), {}
- Linux下使用popen()执行shell命令
- vbScript中WScript.Shell对象的run和exec使用心得
- Javascript中使用WScript.Shell对象执行.bat文件和cmd命令