Examples of Version


Examples of org.criticalfailure.torchlight.core.model.model.Version

                }
                break;
               
            case ACTION_TYPE_VERSION:
                try {
                    Version version;

                    // find a version creation helper
                    if(runWizard) {
                        logger.debug("running wizard to create version");
View Full Code Here

Examples of org.davinci.server.review.Version

            boolean isHasClosedManually = Boolean.parseBoolean(versionElement.getAttribute("hasClosedManually"));
            String restartFrom = versionElement.getAttribute("restartFrom");
            String description = versionElement.getAttribute("description");
            boolean receiveEmail = Boolean.parseBoolean(versionElement.getAttribute("receiveEmail"));
            boolean hasRestarted = Boolean.parseBoolean(versionElement.getAttribute("hasRestarted"));
            Version version = new Version(versionID, time,isDraft,dueDate,width,height);
            if (versionTitle == null)
              versionTitle = "";
            version.setVersionTitle(versionTitle);
            version.setHasClosedManually(isHasClosedManually);
            version.setRestartFrom(restartFrom);
            version.setDescription(description);
            version.setReceiveEmail(receiveEmail);
            version.setHasRestarted(hasRestarted);

            NodeList reviewers = versionElement.getElementsByTagName("reviewer");
            for (int j = 0; j < reviewers.getLength(); j++) {
              Element reviewer = (Element) reviewers.item(j);

              String reviewerName = reviewer.getAttribute("name");
              String reviewerEmail = reviewer.getAttribute("email");
              version.addReviewer(ReviewManager.getReviewManager().getReviewer(reviewerName, reviewerEmail));
            }

            NodeList resources = versionElement.getElementsByTagName("resource");
            for (int j = 0; j < resources.getLength(); j++) {
              Element resource = (Element) resources.item(j);

              String path = resource.getAttribute("path");
              version.addResource(path);
            }
            objects.add(version);

          }
        } catch (ParserConfigurationException e) {
View Full Code Here

Examples of org.dbwiki.data.time.Version

        nid = new NodeIdentifier(nodeId);
      Provenance provenance =
        ProvenanceFactory.getProvenance((byte)rs.getInt(RelVersionColProvenance),
            user, nid, rs.getString(RelVersionColSource));
      long createTime = rs.getLong(RelVersionColTime);
      this.add(new Version(versionNumber, versionName, createTime, provenance, this));
   
    rs.close();
    stmt.close()
 
  }
View Full Code Here

Examples of org.dru.clay.respository.artifact.Version

  @Override
  public Artifact lookup(Transport transport, Group group, UnresolvedArtifact artifact) {
    if (!artifact.getVersionPattern().isDynamic()) {
      // The version isn't dynamic so it can be 'looked-up' directly
      final Version version = Version.fromString(artifact.getVersionPattern().getOriginal());
      return new Artifact(artifact.getName(), version, artifact.getExtension(), artifact.getClassifier());
    }

    try {
      Version latest = null;

      final URI directory = calculateSearchURI(group, artifact);
      for (URI uri : transport.list(directory)) {
        final String moduleVersion = lastPathElement(uri.getPath());
        final Matcher matcher = VERSION_PATTERN.matcher(moduleVersion);
        if (!matcher.matches()) {
          // invalid module link
          continue;
        }

        final Version version = Version.fromString(matcher.group(1));
        if (version.compareTo(latest) > 0) {
          latest = version;
        }
      }

      if (latest == null) {
View Full Code Here

Examples of org.dspace.versioning.Version

            if (AuthorizeManager.authorizeActionBoolean(context, item,
                    Constants.WRITE) || item.canEdit())
            {
                VersioningService versioningService = new DSpace()
                        .getSingletonService(VersioningService.class);
                Version version = versioningService.createNewVersion(context,
                        itemID, summary);
                WorkspaceItem wsi = WorkspaceItem.findByItem(context,
                        version.getItem());

                context.commit();

                return wsi.getID();
View Full Code Here

Examples of org.eclipse.aether.version.Version

  }

  private Artifact resolveLatestArtifact(FqPackageName name)
          throws VersionRangeResolutionException {
    Artifact artifact = new DefaultArtifact(name.getGroupId(), name.getPackageName(), "jar", "[0,)");
    Version newestVersion = resolveLatestVersion(artifact);
    if (newestVersion == null) {
      return null;
    }
    return artifact.setVersion(newestVersion.toString());
  }
View Full Code Here

Examples of org.eclipse.equinox.p2.metadata.Version

          _builder_1.append("  ");
          _builder_1.append("<unit id=\"");
          String _id = iu.getId();
          _builder_1.append(_id, "  ");
          _builder_1.append("\" version=\"");
          Version _version = iu.getVersion();
          _builder_1.append(_version, "  ");
          _builder_1.append("\"/>");
          _builder_1.newLineIfNotEmpty();
        }
      }
View Full Code Here

Examples of org.eclipse.sapphire.Version

   
    @Test
   
    public void testVersionCanonicalization()
    {
        Version version;
       
        version = new Version( "1.2.3.0" );

        assertEquals( 3, version.length() );
        assertEquals( 1l, version.segment( 0 ) );
        assertEquals( 2l, version.segment( 1 ) );
        assertEquals( 3l, version.segment( 2 ) );
        assertEquals( 0l, version.segment( 3 ) );
        assertEquals( 0l, version.segment( 1000 ) );
        assertEquals( list( 1l, 2l, 3l ), version.segments() );

        version = new Version( "1.2.3.0.0.0.0" );

        assertEquals( 3, version.length() );
        assertEquals( 1l, version.segment( 0 ) );
        assertEquals( 2l, version.segment( 1 ) );
        assertEquals( 3l, version.segment( 2 ) );
        assertEquals( 0l, version.segment( 3 ) );
        assertEquals( 0l, version.segment( 4 ) );
        assertEquals( 0l, version.segment( 5 ) );
        assertEquals( 0l, version.segment( 6 ) );
        assertEquals( 0l, version.segment( 1000 ) );
        assertEquals( list( 1l, 2l, 3l ), version.segments() );
    }
View Full Code Here

Examples of org.eclipse.wb.internal.core.utils.Version

  /**
   * @return the version of build file, not exactly same as version of GWT.
   */
  private static Version getBuildVersion(IProject project) {
    Version version = Utils.getVersion(project);
    if (version.isHigherOrSame(Utils.GWT_2_0)) {
      version = Utils.GWT_2_0;
    }
    return version;
  }
View Full Code Here

Examples of org.elasticsearch.Version

                            final JsonNode nodesList = resultTree.get("nodes");

                            final Iterator<String> nodes = nodesList.fieldNames();
                            while (nodes.hasNext()) {
                                final String id = nodes.next();
                                final Version clusterVersion = Version.fromString(nodesList.get(id).get("version").textValue());

                                if (!configuration.isEsDisableVersionCheck()) {
                                    checkClusterVersion(clusterVersion);
                                }
                            }
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.