[英]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.