diff --git a/experimental/behave/README.md b/experimental/behave/README.md index 33c5517cf7..0e10434285 100644 --- a/experimental/behave/README.md +++ b/experimental/behave/README.md @@ -26,11 +26,21 @@ The project is split into three pieces: # Setup -To get started, please run the following command: +To get started, please follow the instructions below: -```bash -$ ./prepare.sh -``` + * Go up to the root directory and build the capsule JAR. + + ```bash + $ cd ../../ + $ ./gradlew install + ``` + + * Come back to this folder and run: + + ```bash + $ cd experimental/behave + $ ./prepare.sh + ``` This script will download necessary database drivers and set up the dependencies directory with copies of the Corda fat-JAR and diff --git a/experimental/behave/prepare.sh b/experimental/behave/prepare.sh index 62af3afb91..3912cf11be 100755 --- a/experimental/behave/prepare.sh +++ b/experimental/behave/prepare.sh @@ -7,7 +7,7 @@ mkdir -p deps/corda/${VERSION}/apps mkdir -p deps/drivers # Copy Corda capsule into deps -cp ../../node/capsule/build/libs/corda-*.jar deps/corda/${VERSION}/corda.jar +cp $(ls ../../node/capsule/build/libs/corda-*.jar | tail -n1) deps/corda/${VERSION}/corda.jar # Download database drivers curl "https://search.maven.org/remotecontent?filepath=com/h2database/h2/1.4.196/h2-1.4.196.jar" > deps/drivers/h2-1.4.196.jar