Top Description Fields Constructors Methods
groovy.grape

public Class Grape

extends Object
Class Inheritance
Imports
java.lang.reflect.InvocationTargetException, java.net.URI, java.security.AccessController, .PrivilegedAction, java.util.Collections, .List, .Map

Facade to GrapeEngine.

Field Summary

Modifier and TypeField and Description
public static final String
public static final String
private static boolean
private static final Map<K, V>[]
private static final URI[]
private static boolean
private static boolean
protected static GrapeEngine
public static final String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static void
public static Map<String, Map<String, List<String>>>
public static boolean
getDisableChecksums()

Global flag to ignore checksums.

public static boolean
getEnableAutoDownload()

This is a static access auto download enabler.

public static boolean
getEnableGrapes()

This is a static access kill-switch.

public static synchronized GrapeEngine
public static void
grab(String endorsed)

public static void
grab(Map<String, Object> dependency)

public static void
grab(final Map<String, Object> args, final Map<K, V>... dependencies)

public static Map<K, V>[]
public static URI[]
resolve(Map<String, Object> args, Map<K, V>... dependencies)

public static URI[]
resolve(Map<String, Object> args, List<E> depsInfo, Map<K, V>... dependencies)

public static void
setDisableChecksums(boolean disableChecksums)

Set global flag to ignore checksums.

public static void
setEnableAutoDownload(boolean enableAutoDownload)

This is a static access auto download enabler.

public static void
setEnableGrapes(boolean enableGrapes)

This is a static access kill-switch.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

AUTO_DOWNLOAD_SETTINGback to summary
public static final String AUTO_DOWNLOAD_SETTING
DISABLE_CHECKSUMS_SETTINGback to summary
public static final String DISABLE_CHECKSUMS_SETTING
disableChecksumsback to summary
private static boolean disableChecksums
EMPTY_MAP_ARRAYback to summary
private static final Map<K, V>[] EMPTY_MAP_ARRAY
EMPTY_URI_ARRAYback to summary
private static final URI[] EMPTY_URI_ARRAY
enableAutoDownloadback to summary
private static boolean enableAutoDownload
enableGrapesback to summary
private static boolean enableGrapes
instanceback to summary
protected static GrapeEngine instance
SYSTEM_PROPERTIES_SETTINGback to summary
public static final String SYSTEM_PROPERTIES_SETTING

Constructor Detail

Grapeback to summary
public Grape()

Method Detail

addResolverback to summary
public static void addResolver(Map<String, Object> args)
enumerateGrapesback to summary
public static Map<String, Map<String, List<String>>> enumerateGrapes()
getDisableChecksumsback to summary
public static boolean getDisableChecksums()

Global flag to ignore checksums. By default it is set to false.

getEnableAutoDownloadback to summary
public static boolean getEnableAutoDownload()

This is a static access auto download enabler. It will set the 'autoDownload' value to the passed in arguments map if not already set. If 'autoDownload' is set the value will not be adjusted.

This applies to the grab and resolve calls.

If it is set to false, only previously downloaded grapes will be used. This may cause failure in the grape call if the library has not yet been downloaded

If it is set to true, then any jars not already downloaded will automatically be downloaded. Also, any versions expressed as a range will be checked for new versions and downloaded (with dependencies) if found.

By default it is set to true.

getEnableGrapesback to summary
public static boolean getEnableGrapes()

This is a static access kill-switch. All of the static shortcut methods in this class will not work if this property is set to false. By default it is set to true.

getInstanceback to summary
public static synchronized GrapeEngine getInstance()
grabback to summary
public static void grab(String endorsed)
grabback to summary
public static void grab(Map<String, Object> dependency)
grabback to summary
public static void grab(final Map<String, Object> args, final Map<K, V>... dependencies)
listDependenciesback to summary
public static Map<K, V>[] listDependencies(ClassLoader cl)
resolveback to summary
public static URI[] resolve(Map<String, Object> args, Map<K, V>... dependencies)
resolveback to summary
public static URI[] resolve(Map<String, Object> args, List<E> depsInfo, Map<K, V>... dependencies)
setDisableChecksumsback to summary
public static void setDisableChecksums(boolean disableChecksums)

Set global flag to ignore checksums. By default it is set to false.

setEnableAutoDownloadback to summary
public static void setEnableAutoDownload(boolean enableAutoDownload)

This is a static access auto download enabler. It will set the 'autoDownload' value to the passed in arguments map if not already set. If 'autoDownload' is set the value will not be adjusted.

This applies to the grab and resolve calls.

If it is set to false, only previously downloaded grapes will be used. This may cause failure in the grape call if the library has not yet been downloaded.

If it is set to true, then any jars not already downloaded will automatically be downloaded. Also, any versions expressed as a range will be checked for new versions and downloaded (with dependencies) if found. By default it is set to true.

setEnableGrapesback to summary
public static void setEnableGrapes(boolean enableGrapes)

This is a static access kill-switch. All of the static shortcut methods in this class will not work if this property is set to false. By default it is set to true.