Package aQute.bnd.main
Class RepoCommand
java.lang.Object
aQute.bnd.main.RepoCommand
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static interface
Copy(package private) static interface
(package private) static interface
(package private) static interface
(package private) static interface
List the content of the repos(package private) static interface
(package private) static interface
put(package private) static interface
(package private) static interface
(package private) static interface
List 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 JSONCodec
private 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 repovoid
void
_list
(RepoCommand.listOptions opts) void
_put
(RepoCommand.putOptions opts) void
void
void
_sync
(RepoCommand.SyncOptions opts) void
_topom
(RepoCommand.PomOptions opts) Read a repository and turn all bundles that have a pom into a dependency POMvoid
private void
copy
(List<RepositoryPlugin> sources, RepositoryPlugin destRepo, String bsn, String range) private void
copyGavs
(RepoCommand.SyncOptions opts, List<RepositoryPlugin> sources, RepositoryPlugin destRepo) private void
copyit
(boolean dry, RepositoryPlugin dest, RepoCommand.Spec spec, File src) private void
copyit
(RepoCommand.getOptions opts, File file) private void
copyIt
(boolean dry, RepositoryPlugin dest, RepoCommand.Spec spec, File src) private File
find
(List<RepositoryPlugin> sources, String bsn, String range) private DownloadBlocker
findMatchingVersion
(RepositoryPlugin dest, String bsn, Version version) private RepositoryPlugin
private 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:
ZipException
IOException
-
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
-