Package aQute.bnd.osgi

Examples of aQute.bnd.osgi.Verifier


    private void doPrint(File file, int options) throws ZipException, IOException, Exception {
        Jar jar = new Jar(file.getName(), file);
        try {
            if ((options & VERIFY) != 0) {
                Verifier verifier = new Verifier(jar);
                verifier.setPedantic(isPedantic());
                verifier.verify();
                getInfo(verifier);
            }
            if ((options & MANIFEST) != 0) {
                Manifest manifest = jar.getManifest();
                if (manifest == null)
View Full Code Here


    private void doPrint(File file, int options) throws ZipException, IOException, Exception {
        Jar jar = new Jar(file.getName(), file);
        try {
            if ((options & VERIFY) != 0) {
                Verifier verifier = new Verifier(jar);
                verifier.setPedantic(isPedantic());
                verifier.verify();
                getInfo(verifier);
            }
            if ((options & MANIFEST) != 0) {
                Manifest manifest = jar.getManifest();
                if (manifest == null)
View Full Code Here

        for ( int i = 1; i <= 14; i++ )
        {
            assertTrue( pkgs.contains( "p" + i ) );
        }

        new Verifier(builder).verify();
    }
View Full Code Here

        manifest.read(getClass().getResourceAsStream("/test.mf"));
        Jar jar = new Jar("name");
        jar.setManifest(manifest);
        analyzer.setJar(jar);
        analyzer.analyze();
        new Verifier(analyzer).verify();
    }
View Full Code Here

  private void doPrint(Jar jar, int options, printOptions po) throws ZipException, IOException, Exception {

    try {
      if ((options & VERIFY) != 0) {
        Verifier verifier = new Verifier(jar);
        verifier.setPedantic(isPedantic());
        verifier.verify();
        getInfo(verifier);
      }
      if ((options & MANIFEST) != 0) {
        Manifest manifest = jar.getManifest();
        if (manifest == null)
View Full Code Here

      } else {
        Jar jar = new Jar(f);
        if (jar.getManifest() == null || jar.getBsn() == null)
          error("Not a bundle %s", f);
        else {
          Verifier v = new Verifier(jar);
          getInfo(v, f.getName());
          v.close();
        }
        jar.close();
      }
    }
  }
View Full Code Here

  private void doPrint(Jar jar, int options, printOptions po) throws ZipException, IOException, Exception {

    Analyzer analyzer = new Analyzer();
    try {
      if ((options & VERIFY) != 0) {
        Verifier verifier = new Verifier(jar);
        verifier.setPedantic(isPedantic());
        verifier.verify();
        getInfo(verifier);
      }
      if ((options & MANIFEST) != 0) {
        Manifest manifest = jar.getManifest();
        if (manifest == null)
View Full Code Here

      } else {
        Jar jar = new Jar(f);
        if (jar.getManifest() == null || jar.getBsn() == null)
          error("Not a bundle %s", f);
        else {
          Verifier v = new Verifier(jar);
          getInfo(v, f.getName());
          v.close();
        }
        jar.close();
      }
    }
  }
View Full Code Here

        }

        bnd.trace("bsn %s version %s", bsn, jar.getVersion());

        if (!opts.force()) {
          Verifier v = new Verifier(jar);
          v.setTrace(true);
          v.setExceptions(true);
          v.verify();
          bnd.getInfo(v);
        }

        if (bnd.isOk()) {
          PutResult r = writable.put(new BufferedInputStream(new FileInputStream(file)),
View Full Code Here

  private void doPrint(Jar jar, int options, printOptions po) throws ZipException, IOException, Exception {

    try {
      if ((options & VERIFY) != 0) {
        Verifier verifier = new Verifier(jar);
        verifier.setPedantic(isPedantic());
        verifier.verify();
        getInfo(verifier);
      }
      if ((options & MANIFEST) != 0) {
        Manifest manifest = jar.getManifest();
        if (manifest == null)
View Full Code Here

TOP

Related Classes of aQute.bnd.osgi.Verifier

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.