groovy.lang
Annotation Type Grab


@Retention(value=SOURCE)
@Target(value={CONSTRUCTOR,FIELD,LOCAL_VARIABLE,METHOD,PARAMETER,TYPE})
public @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 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
           
 

Element Detail

module

public abstract String module

group

public abstract String group
Default:
""

version

public abstract String version
Default:
"*"

initClass

public abstract 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

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