Commits

Micha Kops committed 40f88af

Initial import, adding Gradle.

Comments (0)

Files changed (3)

+.project
+.classpath
+.settings
+.gradle
+build
+bin
+apply plugin: 'java'
+apply plugin: 'eclipse'
+
+repositories {
+    mavenCentral()
+}
+
+dependencies {
+    compile 'javax.servlet:javax.servlet-api:3.1.0'
+    compile 'org.eclipse.jetty:jetty-server:9.0.0.RC2'
+    compile 'org.eclipse.jetty:jetty-servlet:9.0.0.RC2'
+}
+
+sourceCompatibility = 1.7
+targetCompatability = 1.7

src/main/java/com/hascode/tutorial/servlet/DatePrintServlet.java

+package com.hascode.tutorial.servlet;
+
+import javax.servlet.annotation.WebServlet;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+@WebServlet(urlPatterns = "/printdate")
+public class DatePrintServlet {
+	@GET
+	public void handleGet(final HttpServletRequest req,
+			final HttpServletResponse res) {
+	}
+}