Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Modifiers | Name | Description |
---|---|---|
static String |
AUTO_DOWNLOAD_SETTING |
|
static String |
DISABLE_CHECKSUMS_SETTING |
|
protected static GrapeEngine |
instance |
Type | Name and description |
---|---|
static void |
addResolver(Map<String, Object> args) |
static Map<String, Map<String, List<String>>> |
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<String, Object> dependency) |
static void |
grab(Map<String, Object> args, Map... dependencies) |
static Map[] |
listDependencies(ClassLoader cl) |
static URI[] |
resolve(Map<String, Object> args, Map... dependencies) |
static URI[] |
resolve(Map<String, Object> 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. |
Global flag to ignore checksums. By default it is set to false.
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.
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.
Set global flag to ignore checksums. By default it is set to false.
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.
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.