Examples of Version


Examples of net.minecraftforge.gradle.json.version.Version

    }

    public static Version loadVersion(File json) throws JsonSyntaxException, JsonIOException, IOException
    {
        FileReader reader = new FileReader(json);
        Version v =  GSON.fromJson(reader, Version.class);
        reader.close();
        return v;
    }
View Full Code Here

Examples of net.pms.util.Version

  private int totalBytes = -1;
  private boolean downloadCancelled = false;

  public AutoUpdater(String updateServerUrl, String currentVersion) {
    this.serverUrl = updateServerUrl; // may be null if updating is disabled
    this.currentVersion = new Version(currentVersion);
  }
View Full Code Here

Examples of net.pterodactylus.util.version.Version

    String releaseTimeString = properties.getProperty("CurrentVersion/ReleaseTime");
    if ((versionString == null) || (releaseTimeString == null)) {
      logger.log(Level.INFO, "Invalid data parsed from properties.");
      return;
    }
    Version version = Version.parse(versionString);
    long releaseTime = 0;
    try {
      releaseTime = Long.parseLong(releaseTimeString);
    } catch (NumberFormatException nfe1) {
      /* ignore. */
    }
    if ((version == null) || (releaseTime == 0)) {
      logger.log(Level.INFO, "Could not parse data from properties.");
      return;
    }
    if (version.compareTo(currentLatestVersion) > 0) {
      currentLatestVersion = version;
      latestVersionDate = releaseTime;
      logger.log(Level.INFO, String.format("Found new version: %s (%tc)", version, new Date(releaseTime)));
      eventBus.post(new UpdateFoundEvent(version, releaseTime, edition));
    }
View Full Code Here

Examples of net.sf.katta.protocol.metadata.Version

  protected static void registerUpgradeAction(String fromVersion, String toVersion, UpgradeAction upgradeAction) {
    _upgradeActionsByVersion.put(new VersionPair(fromVersion, toVersion), upgradeAction);
  }

  public static UpgradeAction findUpgradeAction(InteractionProtocol protocol, Version distributionVersion) {
    Version clusterVersion = protocol.getVersion();
    if (clusterVersion == null) {
      // version exist up from 0.6 only
      boolean isPre0_6Cluster = protocol.getZkClient().exists(
              protocol.getZkConfiguration().getZkRootPath() + "/indexes");
      if (isPre0_6Cluster) {
        LOG.info("version of cluster not found - assuming 0.5");
        clusterVersion = new Version("0.5", "Unknown", "Unknown", "Unknown");
      } else {
        clusterVersion = distributionVersion;
      }
    }
    LOG.info("version of distribution " + distributionVersion.getNumber());
    LOG.info("version of cluster " + clusterVersion.getNumber());
    if (clusterVersion.equals(distributionVersion)) {
      return null;
    }

    VersionPair currentVersionPair = new VersionPair(clusterVersion.getNumber(), distributionVersion.getNumber());
    LOG.warn("cluster version differs from distribution version " + currentVersionPair);
    for (VersionPair versionPair : _upgradeActionsByVersion.keySet()) {
      LOG.info("checking upgrade action " + versionPair);
      if (currentVersionPair.getFromVersion().startsWith(versionPair.getFromVersion())
              && currentVersionPair.getToVersion().startsWith(versionPair.getToVersion())) {
View Full Code Here

Examples of net.sf.redmine_mylyn.api.model.Version

    return versions;
  }

  public List<Version> getOpenById(int[] idlist) {
    List<Version> listed = new ArrayList<Version>(idlist.length);
    Version version;
    for (int id : idlist) {
      if ((version=getById(id))!=null && version.getStatus()!=Status.CLOSED) {
        listed.add(version);
      }
    }
    return listed;
  }
View Full Code Here

Examples of net.sourceforge.jpaxjc.ns.persistence.orm.Version

            }

            if ( f.getPropertyInfo().getCustomizations().find( ORM_NS, "version" ) != null )
            {
                final CPluginCustomization pc = f.getPropertyInfo().getCustomizations().find( ORM_NS, "version" );
                final Version version = JAXB.unmarshal( new DOMSource( pc.element ), Version.class );

                if ( version.getName() == null )
                {
                    version.setName( f.getPropertyInfo().getName( false ) );
                }

                attributes.getVersion().add( version );
                mapped = true;

                if ( !pc.isAcknowledged() )
                {
                    pc.markAsAcknowledged();
                }

                final Column defaultColumn =
                    this.applySchemaDefaults( f.getPropertyInfo().getSchemaComponent(), version.getColumn() );

                version.setColumn( defaultColumn );
            }

            if ( f.getPropertyInfo().getCustomizations().find( ORM_NS, "many-to-one" ) != null )
            {
                final CPluginCustomization pc = f.getPropertyInfo().getCustomizations().find( ORM_NS, "many-to-one" );
View Full Code Here

Examples of net.xeoh.plugins.base.annotations.meta.Version

            if (author == null) break;
            rval.add(author.name());
            break;

        case VERSION:
            final Version version = plugin.getClass().getAnnotation(Version.class);
            if (version == null) break;
            rval.add(Integer.toString(version.version()));
           
            if(plugin == this.pluginManager) {
                final String build = $(PluginManagerImpl.class.getResourceAsStream("jspf.version")).text().split("\n").hashmap().get("build");
                rval.add("jspf.build:" + build);
            }
View Full Code Here

Examples of nodebox.versioncheck.Version

     */
    private void setNodeBoxVersion() throws RuntimeException {
        Properties properties = new Properties();
        try {
            properties.load(new FileInputStream("version.properties"));
            version = new Version(properties.getProperty("nodebox.version"));
        } catch (IOException e) {
            throw new RuntimeException("Could not read NodeBox version file. Please re-install NodeBox.", e);
        }
    }
View Full Code Here

Examples of opennlp.tools.util.Version

    // First check version, everything else might change in the future
    String versionString = getManifestProperty(VERSION_PROPERTY);
   
    if (versionString != null) {
      Version version;
     
      try {
        version = Version.parse(versionString);
      }
      catch (NumberFormatException e) {
        throw new InvalidFormatException("Unable to parse model version!, e");
      }
     
      // Major and minor version must match, revision might be
      if (Version.currentVersion().getMajor() != version.getMajor() ||
          Version.currentVersion().getMinor() != version.getMinor()) {
        throw new InvalidFormatException("Model version " + version + " is not supported by this ("
            + Version.currentVersion() +") version of OpenNLP!");
      }
     
      // Reject loading a snapshot model with a non-snapshot version
      if (!Version.currentVersion().isSnapshot() && version.isSnapshot()) {
        throw new InvalidFormatException("Model is a snapshot models are not" +
            "supported by release versions!");
      }
    }
    else {
View Full Code Here

Examples of oracle.kv.Version

    public void saveLOBFile(Key key, File lobFile)
    {
        try
        {
            FileInputStream fis = new FileInputStream(lobFile);
            Version version = kvStore.putLOB(key, fis, client.getDurability(), client.getTimeout(),
                    client.getTimeUnit());
        }
        catch (FileNotFoundException e)
        {
            log.warn("Unable to find file " + lobFile + ". This is being omitted, Caused by:" + e + ".");
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.