给 task 加入描述

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

例子 15.18. 给任务加入描述

build.gradle

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