Class BaselineCommands


  • public class BaselineCommands
    extends java.lang.Object
    Implements commands to maintain the Package versions db.
    • Field Detail

      • logger

        private static final org.slf4j.Logger logger
      • transformerFactory

        static javax.xml.transform.TransformerFactory transformerFactory
      • bnd

        final bnd bnd
      • SKIP_HEADERS

        final java.util.Collection<java.lang.String> SKIP_HEADERS
    • Constructor Detail

      • BaselineCommands

        BaselineCommands​(bnd bnd)
                  throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • baseline

        private void baseline​(BaselineCommands.baseLineOptions opts,
                              Jar newer,
                              Jar older)
                       throws java.io.FileNotFoundException,
                              java.io.UnsupportedEncodingException,
                              java.io.IOException,
                              java.lang.Exception
        Throws:
        java.io.FileNotFoundException
        java.io.UnsupportedEncodingException
        java.io.IOException
        java.lang.Exception
      • _schema

        public void _schema​(BaselineCommands.schemaOptions opts)
                     throws java.lang.Exception
        Create a schema of a set of jars outling the packages and their versions. This will create a list of packages with multiple versions, link to their specifications, and the deltas between versions.
          bnd package schema
         *
         
        Parameters:
        opts -
        Throws:
        java.lang.Exception
      • traverseTag

        private void traverseTag​(java.lang.StringBuilder sb,
                                 Diff diff,
                                 java.lang.String indent)
      • doExportPackage

        public void doExportPackage​(Baseline.Info[] infos,
                                    java.io.PrintStream out)
                             throws java.io.IOException
        Parameters:
        infos -
        out -
        Throws:
        java.io.IOException