Class RepoCommand


  • public class RepoCommand
    extends java.lang.Object
    • Constructor Detail

      • RepoCommand

        public RepoCommand​(bnd bnd,
                           RepoCommand.repoOptions opts)
                    throws java.lang.Exception
        Called from the command line
        Parameters:
        bnd -
        opts -
        Throws:
        java.lang.Exception
    • Method Detail

      • _list

        public void _list​(RepoCommand.listOptions opts)
                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • _get

        public void _get​(RepoCommand.getOptions opts)
                  throws java.lang.Exception
        get a file from the repo
        Parameters:
        opts -
        Throws:
        java.lang.Exception
      • copyit

        private void copyit​(RepoCommand.getOptions opts,
                            java.io.File file)
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • _put

        public void _put​(RepoCommand.putOptions opts)
                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • _diff

        public void _diff​(RepoCommand.diffOptions options)
                   throws java.io.UnsupportedEncodingException,
                          java.io.IOException,
                          java.lang.Exception
        Throws:
        java.io.UnsupportedEncodingException
        java.io.IOException
        java.lang.Exception
      • _copy

        public void _copy​(RepoCommand.CopyOptions options)
                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • isBundle

        private boolean isBundle​(java.io.File src)
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • copyIt

        private void copyIt​(boolean dry,
                            RepositoryPlugin dest,
                            RepoCommand.Spec spec,
                            java.io.File src)
                     throws java.util.zip.ZipException,
                            java.io.IOException
        Throws:
        java.util.zip.ZipException
        java.io.IOException
      • _topom

        public void _topom​(RepoCommand.PomOptions opts)
                    throws java.lang.Exception
        Read a repository and turn all bundles that have a pom into a dependency POM
        Throws:
        java.lang.Exception
      • findMatchingVersion

        private DownloadBlocker findMatchingVersion​(RepositoryPlugin dest,
                                                    java.lang.String bsn,
                                                    Version version)
                                             throws java.lang.Exception
        Throws:
        java.lang.Exception
      • _sync

        public void _sync​(RepoCommand.SyncOptions opts)
                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • find

        private java.io.File find​(java.util.List<RepositoryPlugin> sources,
                                  java.lang.String bsn,
                                  java.lang.String range)