Package aQute.bnd.version

Examples of aQute.bnd.version.Version


          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


            }
          } 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

      cd.xmlns = namespace;
    }
    String version = info.get(COMPONENT_VERSION);
    if (version != null) {
      try {
        Version v = new Version(version);
        cd.updateVersion(v);
      } catch (Exception e) {
        error("version: specified on component header but not a valid version: "
            + version);
        return;
View Full Code Here

            }
          } 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

            }
          } 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

      return namespace;
    }
    String version = info.get(COMPONENT_VERSION);
    if (version != null) {
      try {
        Version v = new Version(version);
        return NAMESPACE_STEM + "/v" + v;
      } catch (Exception e) {
        error("version: specified on component header but not a valid version: "
            + version);
        return null;
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.