public class IvyRepositories extends Repositories
REPOSITORY_SECTION_SEPARATOR
Modifier | Constructor and Description |
---|---|
protected |
IvyRepositories(File ivyFile,
org.apache.ivy.Ivy ivy)
Parses the Ivy settings file.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addMaven(String section,
String name,
String url)
Adds a Maven resolver.
|
boolean |
addPyPi(String section,
String name,
String url)
Adds a PyPI resolver.
|
Collection<Repository> |
get(String section)
The repositories in a section.
|
boolean |
remove(String section,
String name)
Removes a resolver.
|
protected IvyRepositories(File ivyFile, org.apache.ivy.Ivy ivy) throws SincerityException
ivyFile
- The Ivy settings file (usually
"/configuration/sincerity/repositories.conf")ivy
- The Ivy instanceSincerityException
- In case of an errorpublic Collection<Repository> get(String section)
Repositories
get
in class Repositories
section
- The section namepublic boolean addMaven(String section, String name, String url) throws SincerityException
Repositories
addMaven
in class Repositories
section
- The section namename
- The resolver name within the sectionurl
- The Maven root URLSincerityException
- In case of an errorpublic boolean addPyPi(String section, String name, String url) throws SincerityException
Repositories
addPyPi
in class Repositories
section
- The section namename
- The resolver name within the sectionurl
- The PyPI root URLSincerityException
- In case of an errorpublic boolean remove(String section, String name) throws SincerityException
Repositories
remove
in class Repositories
section
- The section namename
- The resolver name within the sectionSincerityException
- In case of an errorCopyright © 2011-2016 Three Crickets LLC.