Support simple @Grab annotations everywhere

Previously, simple @Grab annotations only worked on classes. This commit
updates the simple @Grab support so that they can be used on anything
that can be annotated with @Grab.

The simplified @Grab support relies upon springcli.properties having
been generated. This commit adds an M2E lifecycle mapping for the
antrun plugin so that springcli.properties is generated as part of an
Eclipse build, thereby making it easier to run tests in Eclipse that
rely upon the simplified @Grab support.
This commit is contained in:
Andy Wilkinson
2013-10-10 15:04:04 +01:00
parent 0ec2d19e38
commit 97f93bfa64
3 changed files with 58 additions and 8 deletions

View File

@@ -1,8 +1,7 @@
package org.test
@Grab("org.apache.activemq:activemq-all:5.4.0")
@Grab("org.apache.activemq:activemq-pool:5.4.0")
@Grab("activemq-pool")
import java.util.concurrent.CountDownLatch
@Log