Exemplo n.º 1
0
  /**
   * Version, consisting of both the generic implementation version, and the "actual" implementation
   * version.
   */
  private String getImplementationVersion() throws Exception {
    String genericVersion = Ibis.class.getPackage().getImplementationVersion();

    // --Roelof on android the implementation version from the manifest gets
    // overwritten with a default implementation version of "0.0". This is
    // not the value we're searching for.
    if (genericVersion == null || genericVersion.equals("0.0")) {
      // try to get version from IPL_MANIFEST properties
      genericVersion = IbisFactory.getManifestProperty("implementation.version");
    }

    logger.debug("Version of Generic Ibis = " + genericVersion);

    if (genericVersion == null || starter.getImplementationVersion() == null) {
      throw new Exception("cannot get version for ibis");
    }

    return genericVersion + starter.getImplementationVersion();
  }
Exemplo n.º 2
0
 /**
  * Returns the current Ibis version.
  *
  * @return the ibis version.
  */
 public String getVersion() {
   return starter.getNickName() + "-" + starter.getIplVersion();
 }