This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
task hello << { | |
println 'hello' | |
} | |
hello.group = 'greeting' | |
hello.description = 'Say hello.' | |
task hi << { | |
println 'hi' | |
} | |
hi.group = 'greeting' | |
hi.description = 'Say hi.' |
gradle tasks
を実行した結果は、以下の通り。helloタスクとhiタスクがgreetingというグループにまとめて表示されている。また、各タスクの説明も表示されている。> gradle -q tasks ------------------------------------------------------------ All tasks runnable from root project ------------------------------------------------------------ Greeting tasks -------------- hello - Say hello. hi - Say hi. (以下省略)
0 件のコメント:
コメントを投稿