|
Groovy 2.2.0 | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object groovy.grape.Grape
public class Grape extends Object
Facade to GrapeEngine.
Field Summary | |
---|---|
static String |
AUTO_DOWNLOAD_SETTING
|
static String |
DISABLE_CHECKSUMS_SETTING
|
protected static GrapeEngine |
instance
|
Method Summary | |
---|---|
static void
|
addResolver(Map args)
|
static Map
|
enumerateGrapes()
|
static boolean
|
getDisableChecksums()
Global flag to ignore checksums. |
static boolean
|
getEnableAutoDownload()
This is a static access auto download enabler. |
static boolean
|
getEnableGrapes()
This is a static access kill-switch. |
static GrapeEngine
|
getInstance()
|
static void
|
grab(String endorsed)
|
static void
|
grab(Map dependency)
|
static void
|
grab(Map args, Map... dependencies)
|
static Map[]
|
listDependencies(ClassLoader cl)
|
static URI[]
|
resolve(Map args, Map... dependencies)
|
static URI[]
|
resolve(Map args, List depsInfo, Map... dependencies)
|
static void
|
setDisableChecksums(boolean disableChecksums)
Set global flag to ignore checksums. |
static void
|
setEnableAutoDownload(boolean enableAutoDownload)
This is a static access auto download enabler. |
static void
|
setEnableGrapes(boolean enableGrapes)
This is a static access kill-switch. |
Methods inherited from class Object | |
---|---|
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Field Detail |
---|
public static final String AUTO_DOWNLOAD_SETTING
public static final String DISABLE_CHECKSUMS_SETTING
protected static GrapeEngine instance
Method Detail |
---|
public static void addResolver(Map args)
public static Map enumerateGrapes()
public static boolean getDisableChecksums()
public static boolean getEnableAutoDownload()
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.
public static boolean getEnableGrapes()
public static GrapeEngine getInstance()
public static void grab(String endorsed)
public static void grab(Map dependency)
public static void grab(Map args, Map... dependencies)
public static Map[] listDependencies(ClassLoader cl)
public static URI[] resolve(Map args, Map... dependencies)
public static URI[] resolve(Map args, List depsInfo, Map... dependencies)
public static void setDisableChecksums(boolean disableChecksums)
public static void setEnableAutoDownload(boolean enableAutoDownload)
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.
public static void setEnableGrapes(boolean enableGrapes)
Copyright © 2003-2013 The Codehaus. All rights reserved.