Examples of Version


Examples of aQute.bnd.version.Version

public class BundleUtils {
    private static final String FILE_URL_PREFIX = "file:";

    public static final Bundle findBundle(BundleContext context, String symbolicName, VersionRange range) {
        Bundle matched = null;
        Version matchedVersion = null;
        Bundle[] bundles = context.getBundles();
        for (Bundle bundle : bundles) {
            try {
                String name = bundle.getSymbolicName();
                String versionStr = (String) bundle.getHeaders().get(Constants.BUNDLE_VERSION);
                Version version = versionStr != null ? new Version(versionStr) : new Version();
                if (range == null || range.includes(version)) {
                    if (symbolicName.equals(name)) {
                        if (matched == null || version.compareTo(matchedVersion) > 0) {
                            matched = bundle;
                            matchedVersion = version;
                        }
                    }
                }
View Full Code Here

Examples of aQute.libg.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.getPackage(clazz.className));
              }
            } catch( Exception e) {
              // Ignore
View Full Code Here

Examples of at.kugel.tool.buildtray.config.Version

   public PopupMenu getPopup() {
      return popup;
   }

   private void addAbout(final GlobalActions globalActions) {
      String version = new Version().get();
      addEntry("BuildServerSystemTray v" + version, new ActionListener() {
         @Override
         public void actionPerformed(@SuppressWarnings("unused") ActionEvent e) {
            globalActions.about();
         }
View Full Code Here

Examples of at.molindo.notify.render.IRenderService.Version

        throw new RenderException("params unavailable", e);
      }
    }

    String key = notification.getKey();
    Version version = cPrefs.getVersion();

    return new Dispatch(_renderService.render(key, version, params), params);
  }
View Full Code Here

Examples of bibliothek.util.Version

     * Lets all {@link ApplicationResource}s read from <code>in</code>.
     * @param in the stream to read from
     * @throws IOException if the operation can't be completed
     */
    public void readStream( DataInputStream in ) throws IOException{
        Version version = Version.read( in );
        version.checkCurrent();
       
        int size = in.readInt();
        for( int i = 0; i < size; i++ ){
            String key = in.readUTF();
           
View Full Code Here

Examples of ca.uhn.hl7v2.Version

        version = getVersion(message);
      } catch (Exception e) { /* use the default */
      }

      if (version == null) {
        Version availableVersion = Version.highestAvailableVersionOrDefault();
        version = availableVersion.getVersion();
      }

      Segment msh = Parser.makeControlMSH(version, getFactory());
      Terser.set(msh, 1, 0, 1, 1, String.valueOf(fieldSep));
      Terser.set(msh, 2, 0, 1, 1, encChars);
View Full Code Here

Examples of ch.njol.skript.util.Version

   * @param p
   */
  SkriptAddon(final JavaPlugin p) {
    plugin = p;
    name = "" + p.getName();
    Version v;
    try {
      v = new Version("" + p.getDescription().getVersion());
    } catch (final IllegalArgumentException e) {
      final Matcher m = Pattern.compile("(\\d+)(?:\\.(\\d+)(?:\\.(\\d+))?)?").matcher(p.getDescription().getVersion());
      if (!m.find())
        throw new IllegalArgumentException("The version of the plugin " + p.getName() + " does not contain any numbers: " + p.getDescription().getVersion());
      v = new Version(Utils.parseInt("" + m.group(1)), m.group(2) == null ? 0 : Utils.parseInt("" + m.group(2)), m.group(3) == null ? 0 : Utils.parseInt("" + m.group(3)));
      Skript.warning("The plugin " + p.getName() + " uses a non-standard version syntax: '" + p.getDescription().getVersion() + "'. Skript will use " + v + " instead.");
    }
    version = v;
  }
View Full Code Here

Examples of com.Acrobot.ChestShop.Commands.Version

        if (!Properties.LOG_TO_CONSOLE) {
            logger.setUseParentHandlers(false);
        }

        getCommand("iteminfo").setExecutor(new ItemInfo());
        getCommand("csVersion").setExecutor(new Version());
        getCommand("csGive").setExecutor(new Give());
        getCommand("cstoggle").setExecutor(new Toggle());

        startStatistics();
        startUpdater();
View Full Code Here

Examples of com.alibaba.rocketmq.common.MQVersion.Version

        case RequestCode.GET_KV_CONFIG:
            return this.getKVConfig(ctx, request);
        case RequestCode.DELETE_KV_CONFIG:
            return this.deleteKVConfig(ctx, request);
        case RequestCode.REGISTER_BROKER:
            Version brokerVersion = MQVersion.value2Version(request.getVersion());
            // 新版本Broker,支持Filter Server
            if (brokerVersion.ordinal() >= MQVersion.Version.V3_0_11.ordinal()) {
                return this.registerBrokerWithFilterServer(ctx, request);
            }
            // 低版本Broker,不支持Filter Server
            else {
                return this.registerBroker(ctx, request);
View Full Code Here

Examples of com.atlassian.jira.rest.client.api.domain.Version

        new IssueLink("TST-1", resolveURI("rest/api/2/issue/10000"), new IssueLinkType("Duplicate", "duplicates", IssueLinkType.Direction.OUTBOUND)),
        new IssueLink("TST-1", resolveURI("rest/api/2/issue/10000"), new IssueLinkType("Duplicate", "is duplicated by", IssueLinkType.Direction.INBOUND))
    ));

    // fix versions
    final Version actualFixVersion = Iterables.getOnlyElement(issue.getFixVersions());
    final Version expectedFixVersion = new Version(resolveURI("rest/api/2/version/10000"), 10000L, "1.1", "Some version", false, false, toDateTime("2010-08-25T00:00:00.000"));
    assertEquals(expectedFixVersion, actualFixVersion);

    // affected versions
    assertThat(issue.getAffectedVersions(), IsIterableContainingInOrder.contains(
        new Version(resolveURI("rest/api/2/version/10001"), 10001L, "1", "initial version", false, false, null),
        new Version(resolveURI("rest/api/2/version/10000"), 10000L, "1.1", "Some version", false, false, toDateTime("2010-08-25T00:00:00.000"))
    ));

    // dates
    assertNull(issue.getDueDate());
    assertEquals(toDateTime("2010-08-30T10:49:33.000"), issue.getUpdateDate());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.