gdub icon indicating copy to clipboard operation
gdub copied to clipboard

gw: always execute from same dir that gradle or gradlew would (#22)

Open javabrett opened this issue 7 years ago • 1 comments

This PR addresses #22:

  • Commit 1
    • adds a gradle build for gw itself, just as a convenient way of running some script-tests.
    • adds a Travis build for running those tests.
    • adds test which run both before and after a gradle-wrapper is installed, testing gradle and gradlew wrapping behaviour. The test fails - it is testing that the correct subproject task is executed in a subproject without a build.gradle, and checks the behaviour is the same for all four of gradle, gradlew, gw->gradle, gw->gradlew.
  • Commit 2 fixes by removing the cd to the closest ancestor dir with a build.gradle.

In a properly constructed multi-project Gradle project this should make no difference - Gradle doesn't require you to run -b ../../......../build.gradle and gw should not assume you want to run from the rootProject, because neither gradle nor gradlew do.

javabrett avatar Nov 28 '17 00:11 javabrett

Seems like this is already changed.

yeshvantbhavnasi avatar Oct 04 '19 18:10 yeshvantbhavnasi