I want to be able to run gradle in the situation where the build.gradle file is not located with the source tree that it’s using for the build. For my experimenting, it looks like both the “-b” and “-p” point to the folder where build.gradle is located. I need some way to identify where the source tree lives.
This need arise when setting up a gradle build within Jenkins. The source tree will be within the Jenkins folder structure and build.gradle will be within a build tree located somewhere else.