* add Class containing buildvariables git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@6171 6c8d7289-2bf4-0310-a012-ef5d649a1542pull/1/head
parent
8544cfd5a6
commit
0f3246e90a
@ -0,0 +1,24 @@
|
||||
package de.anomic.yacy;
|
||||
/**
|
||||
* Properties set when compiling this release/version
|
||||
*/
|
||||
public class yacyBuildProperties {
|
||||
private yacyBuildProperties() {
|
||||
}
|
||||
|
||||
public static String getSVNVersion() {
|
||||
return "@REPL_REVISION_NR@";
|
||||
}
|
||||
|
||||
public static String getVersion() {
|
||||
return "@VERSION@";
|
||||
}
|
||||
|
||||
/**
|
||||
* determines, if this release was compiled and installed
|
||||
* by a package manager
|
||||
*/
|
||||
public static boolean isPkgManager() {
|
||||
return "@REPL_PKGMANAGER@".equals("true");
|
||||
}
|
||||
}
|
Loading…
Reference in new issue