android - Why doesn't gradle tasks show group or description when using exec? -
my gradle task stopped showing group
, description
in ./gradlew tasks
, since i've added exec {}
in root build.gradle
.
what's going on, , how back?
task dosomething << { group 'yourgroupname' description 'runs bash script' exec { workingdir "$projectdir/../pathto/" commandline 'bash', '-c', './bashscript.sh' } }
everything else works.
you cannot configure group , description in dolast()
closure
this code
task dosomething << { exec { workingdir "$projectdir/../pathto/" commandline 'bash', '-c', './bashscript.sh' } }
is same
task dosomething { dolast { exec { workingdir "$projectdir/../pathto/" commandline 'bash', '-c', './bashscript.sh' } } }
in following group
, description
not taking account
task dosomething { dolast { group 'yourgroupname' description 'runs bash script' exec { workingdir "$projectdir/../pathto/" commandline 'bash', '-c', './bashscript.sh' } } }
but here :
task dosomething { group 'yourgroupname' description 'runs bash script' dolast { exec { workingdir "$projectdir/../pathto/" commandline 'bash', '-c', './bashscript.sh' } } }
Comments
Post a Comment