Tabnine Logo
VersionInfo
Code IndexAdd Tabnine to your IDE (free)

How to use
VersionInfo
in
it.unibz.inf.ontop.utils

Best Java code snippets using it.unibz.inf.ontop.utils.VersionInfo (Showing top 6 results out of 315)

origin: ontop/ontop

  @Override
  public void run() {
    //String version = getClass().getPackage().getImplementationVersion();

    VersionInfo versionInfo = VersionInfo.getVersionInfo();

    System.out.println(String.format("ontop version %s", versionInfo.toString()));
  }
}
origin: ontop/ontop

public synchronized static VersionInfo getVersionInfo() {
  if (instance == null) {
    instance = new VersionInfo();
  }
  return instance;
}
origin: ontop/ontop

@GetMapping(value = "/")
public ModelAndView home(HttpServletRequest request) {
  Map<String, String> model = new HashMap<>();
  model.put("version", VersionInfo.getVersionInfo().getVersion());
  model.put("endpointUrl", request.getRequestURL().toString() + "sparql");
  model.put("yasguiUrl", request.getRequestURL().toString() + "yasgui");
  return new ModelAndView("index", model);
}
origin: ontop/ontop

/**
 * extract version from {@link it.unibz.inf.ontop.utils.VersionInfo}, which is from the file {@code version.properties}
 */
private static Version extractVersion() {
  VersionInfo versionInfo = VersionInfo.getVersionInfo();
  String versionString = versionInfo.getVersion();
  String[] splits = versionString.split("\\.");
  int major = 0;
  int minor = 0;
  int patch = 0;
  int build = 0;
  try {
    major = Integer.parseInt(splits[0]);
    minor = Integer.parseInt(splits[1]);
    patch = Integer.parseInt(splits[2]);
    build = Integer.parseInt(splits[3]);
  } catch (Exception ignored) {
  }
  return new Version(major, minor, patch, build);
}
origin: it.unibz.inf.ontop/ontop-quest-owlapi

/**
 * extract version from {@link it.unibz.inf.ontop.utils.VersionInfo}, which is from the file {@code version.properties}
 */
private void extractVersion() {
  VersionInfo versionInfo = VersionInfo.getVersionInfo();
  String versionString = versionInfo.getVersion();
  String[] splits = versionString.split("\\.");
  int major = 0;
  int minor = 0;
  int patch = 0;
  int build = 0;
  try {
    major = Integer.parseInt(splits[0]);
    minor = Integer.parseInt(splits[1]);
    patch = Integer.parseInt(splits[2]);
    build = Integer.parseInt(splits[3]);
  } catch (Exception ignored) {
  }
  version = new Version(major, minor, patch, build);
}
origin: it.unibz.inf.ontop/ontop-obdalib-core

public synchronized static VersionInfo getVersionInfo() {
  if (instance == null) {
    instance = new VersionInfo();
  }
  return instance;
}
it.unibz.inf.ontop.utilsVersionInfo

Most used methods

  • getVersionInfo
  • getVersion
    Gets a string that contains the version of this build. This is generated from the manifest of the ja
  • <init>
  • toString

Popular in Java

  • Start an intent from android
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • scheduleAtFixedRate (Timer)
  • requestLocationUpdates (LocationManager)
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now