From fb3ac73b4db662aa4959b8ba4ad9a1e131cd542e Mon Sep 17 00:00:00 2001 From: Andy Clement Date: Wed, 22 Jan 2014 14:16:34 -0800 Subject: [PATCH] added gradle info --- README.md | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 104c805..54d3655 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,7 @@ used in Grails 2. The download is the agent jar and needs no further unpacking before use. + # Running with reloading java -javaagent:/springloaded-{VERSION}.jar -noverify SomeJavaClass @@ -61,9 +62,9 @@ the invokedynamic instruction and associated new constant pool entries that arri git clone https://github.com/SpringSource/spring-loaded -Once cloned there will be three projects suitable for import into eclipse. The main project and -two containing testdata. One of the test projects is an AspectJ project (containing both Java -and AspectJ code), the other test project is a Groovy project. To compile these test projects +Once cloned there will be some projects suitable for import into eclipse. The main project and +some test projects. One of the test projects is an AspectJ project (containing both Java +and AspectJ code), and one is a Groovy project. To compile these test projects in Eclipse you will need the relevant eclipse plugins: AJDT: update site: `http://download.eclipse.org/tools/ajdt/42/dev/update` @@ -77,10 +78,11 @@ To run just the hand crafted ones supply this to the JVM when launching the test NOTE: When running the tests you need to pass -noverify to the JVM also. -To build a new version of the agent jar, just run `ant` in the org.springsource.loaded project, -this will create a new springloaded-dev.jar in the builds folder using the compiled eclipse -output. Note: the jarjar task is used to repackage asm with a prefix (to avoid clashes) - -so you will need to install the jarjar task (from the project lib folder) into your ant lib folder. +Two launch configurations are already included if you are importing these projects into eclipse, +which run with or without the generated tests. + +A gradle build script is included, run './gradlew build' to rebuild the agent - it will be created +as something like: springloaded/build/libs/springloaded-1.1.5.BUILD-SNAPSHOT.jar # Can I contribute?