Examples of Version


Examples of com.facebook.presto.hive.shaded.org.codehaus.jackson.Version

     * returned.
     */
    public static Version versionFor(Class<?> cls)
    {
        InputStream in;
        Version version = null;
       
        try {
            in = cls.getResourceAsStream(VERSION_FILE);
            if (in != null) {
                try {
View Full Code Here

Examples of com.facebook.presto.jdbc.internal.jackson.core.Version

    /**********************************************************
     */
   
    protected VersionUtil()
    {
        Version v = null;
        try {
            /* Class we pass only matters for resource-loading: can't use this Class
             * (as it's just being loaded at this point), nor anything that depends on it.
             */
            v = VersionUtil.versionFor(getClass());
View Full Code Here

Examples of com.fasterxml.jackson.core.Version

  /**
   * Creates a new {@link GeoModule} registering mixins for common geo-spatial types.
   */
  public GeoModule() {

    super("Spring Data Geo Mixins", new Version(1, 0, 0, null, "org.springframework.data", "spring-data-commons-geo"));

    setMixInAnnotation(Distance.class, DistanceMixin.class);
    setMixInAnnotation(Point.class, PointMixin.class);
    setMixInAnnotation(Box.class, BoxMixin.class);
    setMixInAnnotation(Circle.class, CircleMixin.class);
View Full Code Here

Examples of com.github.theholywaffle.teamspeak3.api.wrapper.Version

  }

  public Version getVersion() {
    CVersion version = new CVersion();
    if (query.doCommand(version)) {
      return new Version(version.getFirstResponse().getMap());
    }
    return null;
  }
View Full Code Here

Examples of com.github.zafarkhaja.semver.Version

     *
     * @Return  a string to represent the version to update; null if there is
     *          no version to update
     */
    public static String fetchVersionToUpdate() throws GitAPIException {
        Version current = Version.valueOf(Config.semverize(Config.getCurrentVersion()));
        Version latest = current;
        boolean isUpdateRequired = false;

        Collection<Ref> refs;

        refs = Git.lsRemoteRepository()
                .setRemote(UPDATE_REPOSITORY_URL)
                .setHeads(false)
                .setTags(true)
                .call();

        for(Ref ref : refs) {
            String tag = ref.getName().replaceFirst("^refs/tags/", "");
            if (tag.charAt(0) == 'v') {
                String versionString = Config.semverize(tag);

                try {
                    Version ver = Version.valueOf(versionString);
                    if (ver.greaterThan(latest)) {
                        isUpdateRequired = true;
                        latest = ver;
                    }
                } catch (UnexpectedElementTypeException e) {
                    play.Logger.warn("Failed to parse a version: " +
View Full Code Here

Examples of com.google.appengine.tools.info.Version

          try {
            admin = factory.createAppAdmin(connectOptions, application, logWriter);
            if (!firstModule) {
              admin.getUpdateOptions().setUpdateGlobalConfigurations(false);
            }
            Version localVersion = SdkInfo.getLocalVersion();
            String sdkVersion = String.format("Java/%s(%s)",
                localVersion.getRelease(), localVersion.getTimestamp());
            admin.getUpdateOptions().setSdkVersion(sdkVersion);
            admin.getUpdateOptions().setUpdateUsageReporting(updateUsageReporting);
            System.out.printf("%n%nBeginning interaction for module %s...%n", moduleName);
            executeMe.execute();
          } finally {
View Full Code Here

Examples of com.google.gdata.util.Version

   */
  protected static Version initServiceVersion(
      Class<? extends Service> serviceClass, Version defaultVersion) {

    VersionRegistry versionRegistry = VersionRegistry.ensureRegistry();
    Version v = null;
    try {
      // Check to see if default has already been defined
      v = versionRegistry.getVersion(serviceClass);
    } catch (IllegalStateException ise) {
      // If not, use system property override or provided default version
View Full Code Here

Examples of com.hp.hpl.jena.sparql.util.Version

     * @param connection Connection
     * @throws SQLException
     */
    public TDBDatasetMetadata(DatasetConnection connection) throws SQLException {
        super(connection);
        tdb = new Version();
        tdb.addClass(TDB.class);
        jdbc = new Version();
        jdbc.addClass(JenaJDBC.class);
    }
View Full Code Here

Examples of com.ibm.sbt.services.client.base.Version

  @Test
  public final void testDeleteCommunity() throws Exception {
    String communityUuid = community.getCommunityUuid();
    communityService.deleteCommunity(communityUuid);
    if (communityService.getApiVersion().lessThan(new Version(5, 0))){
      thrown.expect(ClientServicesException.class);
      thrown.expectMessage("404:Not Found");
      thrown.expectMessage("Request to url");
      community = communityService.getCommunity(communityUuid);
    }
View Full Code Here

Examples of com.impossibl.postgres.system.Version

    try {

      for (int c = 0; c < sqlData.length; c += 2) {

        Version curSqlVersion = (Version) sqlData[c];
        String curSql = (String) sqlData[c + 1];

        if (currentVersion.isMinimum(curSqlVersion))
          return curSql;
      }
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.