[英]shell script to groovy script using gant
我写了一个 shell 脚本,其中包含以下命令:
version=$1;
sed -i 's/def version = ".*"/def version = "'$version'"/' $file;
grails package-plugin;
echo -n 'Enter description of new version: ';
read desc;
git commit -m "$desc";
我想将它转换为一个groovy script
即使用GANT
创建一个执行相同操作的自定义 grails-command。
我搜索了很多。 但是,我无法在 Apache Ant API 中找到正确的方法来运行上述 linux 命令。
请建议我使用等效的 GANT 脚本来解决我的 shell 脚本代码
至少建议我从where to start with
来完成我的任务。
非常感谢您提前...
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.