diff --git a/quasar-hook/README.md b/experimental/quasar-hook/README.md similarity index 82% rename from quasar-hook/README.md rename to experimental/quasar-hook/README.md index 833246779c..43a253a5af 100644 --- a/quasar-hook/README.md +++ b/experimental/quasar-hook/README.md @@ -9,8 +9,8 @@ Example usage ============= ``` -./gradlew quasar-hook:jar -java -javaagent:quasar-hook/build/libs/quasar-hook.jar="expand=com,de,org,co;truncate=net.corda" -jar path/to/corda.jar +./gradlew experimental:quasar-hook:jar +java -javaagent:experimental/quasar-hook/build/libs/quasar-hook.jar="expand=com,de,org,co;truncate=net.corda" -jar path/to/corda.jar ``` The above will run corda.jar and on exit will print information about what classes were scanned/instrumented. diff --git a/quasar-hook/build.gradle b/experimental/quasar-hook/build.gradle similarity index 93% rename from quasar-hook/build.gradle rename to experimental/quasar-hook/build.gradle index c7c5352809..08b10c30a0 100644 --- a/quasar-hook/build.gradle +++ b/experimental/quasar-hook/build.gradle @@ -1,7 +1,7 @@ buildscript { // For sharing constants between builds Properties constants = new Properties() - file("$projectDir/../constants.properties").withInputStream { constants.load(it) } + file("$projectDir/../../constants.properties").withInputStream { constants.load(it) } ext.kotlin_version = constants.getProperty("kotlinVersion") ext.javaassist_version = "3.12.1.GA" diff --git a/quasar-hook/src/main/kotlin/net/corda/quasarhook/QuasarInstrumentationHook.kt b/experimental/quasar-hook/src/main/kotlin/net/corda/quasarhook/QuasarInstrumentationHook.kt similarity index 100% rename from quasar-hook/src/main/kotlin/net/corda/quasarhook/QuasarInstrumentationHook.kt rename to experimental/quasar-hook/src/main/kotlin/net/corda/quasarhook/QuasarInstrumentationHook.kt diff --git a/settings.gradle b/settings.gradle index 8bc404c929..bbf3702dcd 100644 --- a/settings.gradle +++ b/settings.gradle @@ -17,6 +17,7 @@ include 'webserver' include 'webserver:webcapsule' include 'experimental' include 'experimental:sandbox' +include 'experimental:quasar-hook' include 'verifier' include 'test-utils' include 'tools:explorer' @@ -30,5 +31,4 @@ include 'samples:irs-demo' include 'samples:network-visualiser' include 'samples:simm-valuation-demo' include 'samples:raft-notary-demo' -include 'samples:bank-of-corda-demo' -include 'quasar-hook' \ No newline at end of file +include 'samples:bank-of-corda-demo' \ No newline at end of file