給 task 加入描述

2018-07-01 16:12 更新

你可以給你的任務(wù)加入一段描述性的文字. 它將會(huì)在任務(wù)執(zhí)行的時(shí)候顯示出來(lái).

例子 15.18. 給任務(wù)加入描述

build.gradle

task copy(type: Copy) {
   description 'Copies the resource directory to the target directory.'
   from 'resources'
   into 'target'
   include('**/*.txt', '**/*.xml', '**/*.properties')
}


以上內(nèi)容是否對(duì)您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號(hào)
微信公眾號(hào)

編程獅公眾號(hào)