How to run another gradle script from gradle. I have several gradle scripts to run tests in the <root_project>/test directory. <root_project>/build.gradle is called with the name of the gradle test file to run. for instance
gradle run_test -PtestFile=foobar
This should be done by <root_project>/test/foobar.gradle (its default tasks)
What I am doing now calls project.exec in the run_test task. This works, but now I need to pass the project properties from the gradle process that runs run_test to the one that runs foobar.gradle
How can i do this? Is there a more gradle-integrated way to run a gradle script from another, passing all the necessary information to the child gradle script?
source share