Package aQute.bnd.main
Class RepoCommand
java.lang.Object
aQute.bnd.main.RepoCommand
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static interfaceCopy(package private) static interface(package private) static interface(package private) static interface(package private) static interfaceList the content of the repos(package private) static interface(package private) static interfaceput(package private) static interface(package private) static interface(package private) static interfaceList the repos(package private) class(package private) static interface(package private) static interface -
Field Summary
FieldsModifier and TypeFieldDescription(package private) final bnd(package private) static final JSONCodecprivate static final org.slf4j.Logger(package private) final RepoCommand.repoOptions(package private) final List<RepositoryPlugin> (package private) final Workspace(package private) final RepositoryPlugin -
Constructor Summary
ConstructorsConstructorDescriptionRepoCommand(bnd bnd, RepoCommand.repoOptions opts) Called from the command line -
Method Summary
Modifier and TypeMethodDescriptionvoid_copy(RepoCommand.CopyOptions options) void_diff(RepoCommand.diffOptions options) void_get(RepoCommand.getOptions opts) get a file from the repovoidvoid_list(RepoCommand.listOptions opts) void_put(RepoCommand.putOptions opts) voidvoidvoid_sync(RepoCommand.SyncOptions opts) void_topom(RepoCommand.PomOptions opts) Read a repository and turn all bundles that have a pom into a dependency POMvoidprivate voidcopy(List<RepositoryPlugin> sources, RepositoryPlugin destRepo, String bsn, String range) private voidcopyGavs(RepoCommand.SyncOptions opts, List<RepositoryPlugin> sources, RepositoryPlugin destRepo) private voidcopyit(boolean dry, RepositoryPlugin dest, RepoCommand.Spec spec, File src) private voidcopyit(RepoCommand.getOptions opts, File file) private voidcopyIt(boolean dry, RepositoryPlugin dest, RepoCommand.Spec spec, File src) private Filefind(List<RepositoryPlugin> sources, String bsn, String range) private DownloadBlockerfindMatchingVersion(RepositoryPlugin dest, String bsn, Version version) private RepositoryPluginprivate boolean
-
Field Details
-
logger
private static final org.slf4j.Logger logger -
codec
-
bnd
-
opts
-
writable
-
repos
-
workspace
-
-
Constructor Details
-
RepoCommand
Called from the command line- Parameters:
bnd-opts-- Throws:
Exception
-
-
Method Details
-
_repos
-
_list
- Throws:
Exception
-
_get
get a file from the repo- Parameters:
opts-- Throws:
Exception
-
copyit
- Throws:
IOException
-
_put
- Throws:
Exception
-
_diff
public void _diff(RepoCommand.diffOptions options) throws UnsupportedEncodingException, IOException, Exception -
findRepo
-
_refresh
- Throws:
Exception
-
_versions
- Throws:
Exception
-
_copy
- Throws:
Exception
-
isBundle
- Throws:
IOException
-
copyIt
private void copyIt(boolean dry, RepositoryPlugin dest, RepoCommand.Spec spec, File src) throws ZipException, IOException - Throws:
ZipExceptionIOException
-
copyit
-
_topom
Read a repository and turn all bundles that have a pom into a dependency POM- Throws:
Exception
-
findMatchingVersion
private DownloadBlocker findMatchingVersion(RepositoryPlugin dest, String bsn, Version version) throws Exception - Throws:
Exception
-
_sync
- Throws:
Exception
-
copyGavs
private void copyGavs(RepoCommand.SyncOptions opts, List<RepositoryPlugin> sources, RepositoryPlugin destRepo) throws IOException - Throws:
IOException
-
copy
private void copy(List<RepositoryPlugin> sources, RepositoryPlugin destRepo, String bsn, String range) -
find
-
_index
- Throws:
Exception
-