Package aQute.bnd.version

Examples of aQute.bnd.version.Version


            }
          } else {
            // Verify this matches with packageinfo
            String presentVersion = info.get(VERSION_ATTRIBUTE);
            try {
              Version av = new Version(presentVersion);
              Version bv = new Version(version);
              if (!av.equals(bv)) {
                error("Version from annotation for %s differs with packageinfo or Manifest", clazz
                    .getClassName().getFQN());
              }
            }
View Full Code Here


    Entry<String,Attrs> name = getBundleSymbolicName();
    if (name != null) {
      String bsn = name.getKey();
      String version = getBundleVersion();
      Version v = Version.parseVersion(version);
      String outputName = bsn + "-" + v.getWithoutQualifier() + Constants.DEFAULT_JAR_EXTENSION;
      return new File(outputDir, outputName);
    }

    File source = getJar().getSource();
    if (source != null) {
View Full Code Here

          i.remove();

      }
      String version = exports.get(entry.getKey()).get(Constants.VERSION_ATTRIBUTE);
      if (version != null) {
        Version v = new Version(version);
        set.add(new Element(Type.VERSION, v.getWithoutQualifier().toString(), null, IGNORED, IGNORED, null));
      }
      Element pd = new Element(Type.PACKAGE, entry.getKey().getFQN(), set, MINOR, MAJOR, null);
      result.add(pd);
    }
View Full Code Here

TOP

Related Classes of aQute.bnd.version.Version

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.