動作確認用のbuild.propertiesは、以下の通り。
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
defaultTasks 'checkProperty' | |
task checkProperty << { | |
println hasProperty('test') | |
println project.hasProperty('test') | |
} |
上記タスクの実行結果は、以下の通り。
>gradle -q -Ptest
null
true
>gradle -q
null
false
0 件のコメント:
コメントを投稿