Dave Jarvis' Repositories

git clone https://repo.autonoma.ca/repo/delibero.git

Embedded Jetty with logging.

AuthorDave Jarvis <email>
Date2015-01-05 00:49:19 GMT-0800
Commit5b459b4fab46fc90e65854df1249f73d64e118bf
Parent6e8b039
.gitignore
.~lock.questions.ods#
+.gradle
build.gradle
+apply plugin: "java"
+apply plugin: "application"
+
+mainClassName = "to.discuss.Main"
+
+sourceSets {
+ main {
+ java {
+ srcDir "source"
+ }
+
+ resources {
+ srcDir "resources"
+ }
+ }
+}
+
+dependencies {
+ compile "org.eclipse.jetty:jetty-server:9.2.6.v20141205"
+ compile "org.apache.shiro:shiro-core:1.2.3"
+ compile "org.slf4j:slf4j-log4j12:1.7.9"
+}
+
+repositories {
+ maven {
+ url "https://maven.atlassian.com/repository/public/"
+ }
+
+ flatDir {
+ dirs "lib"
+ }
+}
+
resources/log4j.properties
+log4j.rootLogger=DEBUG, CONSOLE
+
+log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
+log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
+log4j.appender.CONSOLE.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n
+
source/to/discuss/Main.java
+package to.discuss;
+
+import org.eclipse.jetty.server.Server;
+
+public class Main {
+ public static void main( String args[] ) throws Exception {
+ Server server = new Server( 8080 );
+ server.start();
+ server.join();
+ }
+}
+
Delta52 lines added, 0 lines removed, 52-line increase