Groovy 1.6.4

groovy.lang
Annotation Type Grab

java.lang.Object
  groovy.lang.Grab

@Retention(RetentionPolicy.SOURCE)
@Target({
    ElementType.CONSTRUCTOR,
    ElementType.FIELD,
    ElementType.LOCAL_VARIABLE,
    ElementType.METHOD,
    ElementType.PARAMETER,
    ElementType.TYPE})
@interface Grab

Used to grab the referenced artifact and its dependencies and make it available on the Classpath.


Required Element Summary
String module

 
Optional Element Summary
String classifier

String group

boolean initClass

By default, when a @Grab annotation is used, the grab() call is added to the static initializers of the class the annotatable node appears in.

String version

 
Method Summary
 
Methods inherited from class Object
wait, wait, wait, hashCode, getClass, equals, toString, notify, notifyAll
 

Element Detail

classifier

String classifier
default:
""


group

String group
default:
""


initClass

boolean initClass
By default, when a @Grab annotation is used, the grab() call is added to the static initializers of the class the annotatable node appears in. If you wish to disable this add initClass=false to the annotation.
default:
true


module

String module


version

String version
default:
"*"


 

Copyright © 2003-2009 The Codehaus. All rights reserved.