Skip to content

Instantly share code, notes, and snippets.

View mvysny's full-sized avatar

Martin Vysny mvysny

View GitHub Profile
<!doctype html>
<html>
<head>
<!-- Polyfills only needed for Firefox and Edge. -->
<script src="https://unpkg.com/@webcomponents/webcomponentsjs@latest/webcomponents-loader.js"></script>
<script src="https://code.jquery.com/jquery-2.1.2.js"></script>
<script src="https://code.jquery.com/jquery-2.1.1.js"></script>
</head>
<body>
<!-- Works only on browsers that support Javascript modules like
/home/mavi/local/apache-tomcat-9.0.6/bin/catalina.sh run
Connected to the target VM, address: '127.0.0.1:45955', transport: 'socket'
[2018-05-20 09:02:15,979] Artifact beveragebuddy:war exploded: Waiting for server connection to start artifact deployment...
20-May-2018 09:02:16.826 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version: Apache Tomcat/9.0.6
20-May-2018 09:02:16.828 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Mar 5 2018 09:34:35 UTC
20-May-2018 09:02:16.828 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server number: 9.0.6.0
20-May-2018 09:02:16.828 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Linux
20-May-2018 09:02:16.828 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 4.15.0-20-generic
20-May-2018 09:02:16.828 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: amd64
version: '2'
services:
teamcity-server:
image: jetbrains/teamcity-server:2017.2.1
environment:
- TEAMCITY_SERVER_MEM_OPTS=-Xmx2g -XX:MaxPermSize=270m -XX:ReservedCodeCacheSize=350m
ports:
- "127.0.0.1:8111:8111"
volumes:
- ./server/datadir:/data/teamcity_server/datadir
/**
* Extends HierarchicalContainer which provides proper support for sorting and filtering, and add bean capabilities to it.
*/
public class HierarchicalBeanContainer<IDTYPE, BEANTYPE> extends HierarchicalContainer {
private final BeanContainer<IDTYPE, BEANTYPE> properties;
public HierarchicalBeanContainer(Class<BEANTYPE> itemClass) {
properties = new BeanContainer<>(itemClass);
properties.getContainerPropertyIds().forEach(prop -> addContainerProperty(prop, properties.getType(prop), null));