Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 385 Bytes

adding_a_description_to_a_task.md

File metadata and controls

16 lines (12 loc) · 385 Bytes

给 task 加入描述

你可以给你的任务加入一段描述性的文字. 它将会在任务执行的时候显示出来.

例子 15.18. 给任务加入描述

build.gradle

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