Reputation: 8748
I'm executing a GradleBuild
task, and I'd like to maintain all the properties that the current script has been given. In other words, I want to package up "these startparameters" and pass them along to the build I'm calling.
Is there any way to do this cleanly?
Upvotes: 7
Views: 1629
Reputation: 123920
If you mean project properties:
task foo(type: GradleBuild) {
startParameter.projectProperties = gradle.startParameter.projectProperties
}
If you mean system properties, replace projectProperties
with systemPropertiesArgs
(on both sides).
Upvotes: 12