import java.util.Properties;
import javax.annotation.CheckForNull;
import javax.servlet.ServletContext;
-import org.sonar.api.platform.Server;
import org.sonar.api.utils.log.Logger;
import org.sonar.api.utils.log.Loggers;
import org.sonar.api.utils.log.Profiler;
return INSTANCE;
}
- /**
- * shortcut for ruby code
- */
- public static Server getServer() {
- return (Server) getInstance().getComponent(Server.class);
- }
-
/**
* Used by ruby code
*/
Internal.i18n.ageFromNow(date)
end
- def sonar_version
- Java::OrgSonarServerPlatform::Platform.getServer().getVersion()
- end
-
def property_value_by_key(key)
property = Property.by_key(key)
property.value if property