You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
758 B
27 lines
758 B
![]()
16 years ago
|
|
||
|
|
||
![]()
2 years ago
|
package net.yacy.htroot.api;
|
||
|
|
||
![]()
15 years ago
|
import net.yacy.cora.protocol.RequestHeader;
|
||
![]()
14 years ago
|
import net.yacy.peers.operation.yacyBuildProperties;
|
||
![]()
13 years ago
|
import net.yacy.server.serverObjects;
|
||
|
import net.yacy.server.serverSwitch;
|
||
![]()
16 years ago
|
|
||
|
public class version {
|
||
|
|
||
![]()
13 years ago
|
public static serverObjects respond(@SuppressWarnings("unused") final RequestHeader header, @SuppressWarnings("unused") final serverObjects post, @SuppressWarnings("unused") final serverSwitch env) {
|
||
![]()
16 years ago
|
// return variable that accumulates replacements
|
||
|
final serverObjects prop = new serverObjects();
|
||
![]()
13 years ago
|
|
||
![]()
16 years ago
|
prop.put("versionstring", yacyBuildProperties.getLongVersion());
|
||
|
prop.put("svnRev", yacyBuildProperties.getSVNRevision());
|
||
![]()
3 years ago
|
|
||
![]()
16 years ago
|
// return rewrite properties
|
||
|
return prop;
|
||
|
}
|
||
![]()
13 years ago
|
|
||
![]()
16 years ago
|
}
|
||
|
|
||
|
|
||
|
|