Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add Class containing buildvariables git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@6171 6c8d7289-2bf4-0310-a012-ef5d649a1542
- Loading branch information
f1ori
committed
Jul 3, 2009
1 parent
8544cfd
commit 0f3246e
Showing
4 changed files
with
37 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"); | ||
} | ||
} |