使用Gradle脚本结帐 [英] Checkout using gradle script

查看:62
本文介绍了使用Gradle脚本结帐的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是gradle的新手.我想使用gradle脚本检出远程存储库.可以在gradle任务中运行shell命令,以使用datetime stamp shell命令克隆远程存储库.

I am new to gradle.I want to checkout remote repository using gradle script. It is possible to run shell command Inside gradle task to clone remote repository with datetime stamp shell commands.

推荐答案

是的,您可以使用gradle Exec类型任务在OS Shell中执行任意命令.请参阅此处的文档和示例.

Yes, you can use a gradle Exec type task to execute any arbitrary command in the OS shell. See documentation and examples here.

您没有说出您使用的是什么类型的仓库,但是有一个 gradle git插件进行包括结帐在内的git操作.

You didn't say what type of repo you're using, but there is a gradle git plugin to do git operations including checkout.

这篇关于使用Gradle脚本结帐的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆