Java Code Examples for com.jcabi.manifests.Manifests#exists()
The following examples show how to use
com.jcabi.manifests.Manifests#exists() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Lizzie.java From mylizzie with GNU General Public License v3.0 | 5 votes |
public static String getLizzieVersion() { if (Manifests.exists("Lizzie-Version")) { return Manifests.read("Lizzie-Version"); } else { return null; } }
Example 2
Source File: VersionService.java From syndesis with Apache License 2.0 | 5 votes |
static void putManifestValueTo(final Map<String, String> detail, final String key, final String... attributes) { for (final String attribute : attributes) { if (Manifests.exists(attribute)) { detail.put(key, Manifests.read(attribute)); break; } } }
Example 3
Source File: RyaSinkConnector.java From rya with Apache License 2.0 | 4 votes |
@Override public String version() { return Manifests.exists("Build-Version") ? Manifests.read("Build-Version") : "UNKNOWN"; }
Example 4
Source File: RyaSinkTask.java From rya with Apache License 2.0 | 4 votes |
@Override public String version() { return Manifests.exists("Build-Version") ? Manifests.read("Build-Version"): "UNKNOWN"; }