Open ghost opened 7 years ago
Can I keep output from .../spoon/debug/ to .../spoon/20170506/ by set ouputs var?
def time() { return new Date().format("yyyyMMdd", TimeZone.getTimeZone("UTC")) }
android{ afterEvaluate { apply plugin: 'spoon' spoon { className = '...' sequential = true grantAllPermissions = true shard = true numShards = 4 shardIndex = 0 } } }
task copyTask(type: Copy) { from "build/spoon/debug" into "build/spoon/${time()}/" }
try this:
sweet, thanks @jainsahab
Can I keep output from .../spoon/debug/ to .../spoon/20170506/ by set ouputs var?
As follow is my code
def time() { return new Date().format("yyyyMMdd", TimeZone.getTimeZone("UTC")) }
android{ afterEvaluate { apply plugin: 'spoon' spoon { className = '...' sequential = true grantAllPermissions = true shard = true numShards = 4 shardIndex = 0 } } }
task copyTask(type: Copy) { from "build/spoon/debug" into "build/spoon/${time()}/" }