From 7e3a23e093d2d2c881f9d25bb58116c56c744a20 Mon Sep 17 00:00:00 2001 From: CyB3RC0nN0R Date: Sat, 28 Dec 2019 11:24:05 +0200 Subject: [PATCH] Converted to Maven project, moved tests into package --- .classpath | 27 +++++++++++++++++ .gitignore | 2 ++ .project | 23 +++++++++++++++ .settings/org.eclipse.jdt.core.prefs | 8 +++++ .settings/org.eclipse.m2e.core.prefs | 4 +++ pom.xml | 29 +++++++++++++++++++ ...ocketAccepter.java => SocketAcceptor.java} | 0 .../jenkov/nioserver}/MessageBufferTest.java | 0 .../jenkov/nioserver}/MessageTest.java | 0 .../jenkov/nioserver}/SelectorTest.java | 0 .../jenkov/nioserver}/http/HttpUtilTest.java | 0 11 files changed, 93 insertions(+) create mode 100644 .classpath create mode 100644 .gitignore create mode 100644 .project create mode 100644 .settings/org.eclipse.jdt.core.prefs create mode 100644 .settings/org.eclipse.m2e.core.prefs create mode 100644 pom.xml rename src/main/java/com/jenkov/nioserver/{SocketAccepter.java => SocketAcceptor.java} (100%) rename src/test/java/{com.jenkov.nioserver => com/jenkov/nioserver}/MessageBufferTest.java (100%) rename src/test/java/{com.jenkov.nioserver => com/jenkov/nioserver}/MessageTest.java (100%) rename src/test/java/{com.jenkov.nioserver => com/jenkov/nioserver}/SelectorTest.java (100%) rename src/test/java/{com.jenkov.nioserver => com/jenkov/nioserver}/http/HttpUtilTest.java (100%) diff --git a/.classpath b/.classpath new file mode 100644 index 0000000..0b0766f --- /dev/null +++ b/.classpath @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..09e3bc9 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/bin/ +/target/ diff --git a/.project b/.project new file mode 100644 index 0000000..16957d7 --- /dev/null +++ b/.project @@ -0,0 +1,23 @@ + + + java-nio-server + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.m2e.core.maven2Builder + + + + + + org.eclipse.m2e.core.maven2Nature + org.eclipse.jdt.core.javanature + + diff --git a/.settings/org.eclipse.jdt.core.prefs b/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000..943e578 --- /dev/null +++ b/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,8 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 +org.eclipse.jdt.core.compiler.compliance=1.8 +org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled +org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning +org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore +org.eclipse.jdt.core.compiler.release=enabled +org.eclipse.jdt.core.compiler.source=1.8 diff --git a/.settings/org.eclipse.m2e.core.prefs b/.settings/org.eclipse.m2e.core.prefs new file mode 100644 index 0000000..f897a7f --- /dev/null +++ b/.settings/org.eclipse.m2e.core.prefs @@ -0,0 +1,4 @@ +activeProfiles= +eclipse.preferences.version=1 +resolveWorkspaceProjects=true +version=1 diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..e3b3192 --- /dev/null +++ b/pom.xml @@ -0,0 +1,29 @@ + + 4.0.0 + informatik-ag-ngl + java-nio-server + 0.0.1-SNAPSHOT + + + + org.junit.jupiter + junit-jupiter-api + 5.6.0-M1 + test + + + + + + + maven-compiler-plugin + 3.8.0 + + 8 + + + + + \ No newline at end of file diff --git a/src/main/java/com/jenkov/nioserver/SocketAccepter.java b/src/main/java/com/jenkov/nioserver/SocketAcceptor.java similarity index 100% rename from src/main/java/com/jenkov/nioserver/SocketAccepter.java rename to src/main/java/com/jenkov/nioserver/SocketAcceptor.java diff --git a/src/test/java/com.jenkov.nioserver/MessageBufferTest.java b/src/test/java/com/jenkov/nioserver/MessageBufferTest.java similarity index 100% rename from src/test/java/com.jenkov.nioserver/MessageBufferTest.java rename to src/test/java/com/jenkov/nioserver/MessageBufferTest.java diff --git a/src/test/java/com.jenkov.nioserver/MessageTest.java b/src/test/java/com/jenkov/nioserver/MessageTest.java similarity index 100% rename from src/test/java/com.jenkov.nioserver/MessageTest.java rename to src/test/java/com/jenkov/nioserver/MessageTest.java diff --git a/src/test/java/com.jenkov.nioserver/SelectorTest.java b/src/test/java/com/jenkov/nioserver/SelectorTest.java similarity index 100% rename from src/test/java/com.jenkov.nioserver/SelectorTest.java rename to src/test/java/com/jenkov/nioserver/SelectorTest.java diff --git a/src/test/java/com.jenkov.nioserver/http/HttpUtilTest.java b/src/test/java/com/jenkov/nioserver/http/HttpUtilTest.java similarity index 100% rename from src/test/java/com.jenkov.nioserver/http/HttpUtilTest.java rename to src/test/java/com/jenkov/nioserver/http/HttpUtilTest.java