groovy.grape
Class Grape

java.lang.Object
  extended by groovy.grape.Grape

public class Grape
extends Object

User: Danno.Ferrin Date: Sep 30, 2008 Time: 9:36:46 PM


Field Summary
protected static GrapeEngine instance
           
 
Constructor Summary
Grape()
           
 
Method Summary
static Map<String,Map<String,List<String>>> enumerateGrapes()
           
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(Map dependency)
           
static void grab(Map args, Map... dependencies)
           
static void grab(String endorsed)
           
static Map[] listDependencies(ClassLoader cl)
           
static URI[] resolve(Map args, List depsInfo, Map... dependencies)
           
static URI[] resolve(Map args, Map... dependencies)
           
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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

protected static GrapeEngine instance
Constructor Detail

Grape

public Grape()
Method Detail

getEnableGrapes

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.


setEnableGrapes

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.


getEnableAutoDownload

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 false.


setEnableAutoDownload

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 false.


getInstance

public static GrapeEngine getInstance()

grab

public static void grab(String endorsed)

grab

public static void grab(Map dependency)

grab

public static void grab(Map args,
                        Map... dependencies)

enumerateGrapes

public static Map<String,Map<String,List<String>>> enumerateGrapes()

resolve

public static URI[] resolve(Map args,
                            Map... dependencies)

resolve

public static URI[] resolve(Map args,
                            List depsInfo,
                            Map... dependencies)

listDependencies

public static Map[] listDependencies(ClassLoader cl)

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