From 4f5dd401297ce6cb0754f2c5ebf72fe745a7a9a0 Mon Sep 17 00:00:00 2001 From: louzin <294098546@qq.com> Date: Sat, 16 Mar 2024 13:28:19 +0800 Subject: [PATCH] init --- .gitignore | 38 ++++++++++++++++++++++ .idea/.gitignore | 8 +++++ .idea/encodings.xml | 7 ++++ .idea/misc.xml | 14 ++++++++ .idea/vcs.xml | 6 ++++ pom.xml | 9 +++++ .../java/com/louzin/niodemo/bufferdemo/test.java | 4 +++ src/main/resources/META-INF/maven/archetype.xml | 9 +++++ src/main/resources/archetype-resources/pom.xml | 15 +++++++++ .../archetype-resources/src/main/java/App.java | 13 ++++++++ .../archetype-resources/src/test/java/AppTest.java | 38 ++++++++++++++++++++++ 11 files changed, 161 insertions(+) create mode 100644 .gitignore create mode 100644 .idea/.gitignore create mode 100644 .idea/encodings.xml create mode 100644 .idea/misc.xml create mode 100644 .idea/vcs.xml create mode 100644 pom.xml create mode 100644 src/main/java/com/louzin/niodemo/bufferdemo/test.java create mode 100644 src/main/resources/META-INF/maven/archetype.xml create mode 100644 src/main/resources/archetype-resources/pom.xml create mode 100644 src/main/resources/archetype-resources/src/main/java/App.java create mode 100644 src/main/resources/archetype-resources/src/test/java/AppTest.java diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5ff6309 --- /dev/null +++ b/.gitignore @@ -0,0 +1,38 @@ +target/ +!.mvn/wrapper/maven-wrapper.jar +!**/src/main/**/target/ +!**/src/test/**/target/ + +### IntelliJ IDEA ### +.idea/modules.xml +.idea/jarRepositories.xml +.idea/compiler.xml +.idea/libraries/ +*.iws +*.iml +*.ipr + +### Eclipse ### +.apt_generated +.classpath +.factorypath +.project +.settings +.springBeans +.sts4-cache + +### NetBeans ### +/nbproject/private/ +/nbbuild/ +/dist/ +/nbdist/ +/.nb-gradle/ +build/ +!**/src/main/**/build/ +!**/src/test/**/build/ + +### VS Code ### +.vscode/ + +### Mac OS ### +.DS_Store \ No newline at end of file diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..13566b8 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/encodings.xml b/.idea/encodings.xml new file mode 100644 index 0000000..aa00ffa --- /dev/null +++ b/.idea/encodings.xml @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..accd629 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,14 @@ + + + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..9eb33f6 --- /dev/null +++ b/pom.xml @@ -0,0 +1,9 @@ + + 4.0.0 + com.louzin + nioDemo + 1.0-SNAPSHOT + Archetype - nioDemo + http://maven.apache.org + diff --git a/src/main/java/com/louzin/niodemo/bufferdemo/test.java b/src/main/java/com/louzin/niodemo/bufferdemo/test.java new file mode 100644 index 0000000..9a77871 --- /dev/null +++ b/src/main/java/com/louzin/niodemo/bufferdemo/test.java @@ -0,0 +1,4 @@ +package com.louzin.niodemo.bufferdemo; + +public class test { +} diff --git a/src/main/resources/META-INF/maven/archetype.xml b/src/main/resources/META-INF/maven/archetype.xml new file mode 100644 index 0000000..68d36c4 --- /dev/null +++ b/src/main/resources/META-INF/maven/archetype.xml @@ -0,0 +1,9 @@ + + nioDemo + + src/main/java/App.java + + + src/test/java/AppTest.java + + diff --git a/src/main/resources/archetype-resources/pom.xml b/src/main/resources/archetype-resources/pom.xml new file mode 100644 index 0000000..8fadf01 --- /dev/null +++ b/src/main/resources/archetype-resources/pom.xml @@ -0,0 +1,15 @@ + + 4.0.0 + $com.louzin + $nioDemo + $1.0-SNAPSHOT + + + junit + junit + 3.8.1 + test + + + diff --git a/src/main/resources/archetype-resources/src/main/java/App.java b/src/main/resources/archetype-resources/src/main/java/App.java new file mode 100644 index 0000000..6ab4cc7 --- /dev/null +++ b/src/main/resources/archetype-resources/src/main/java/App.java @@ -0,0 +1,13 @@ +package $com.louzin; + +/** + * Hello world! + * + */ +public class App +{ + public static void main( String[] args ) + { + System.out.println( "Hello World!" ); + } +} diff --git a/src/main/resources/archetype-resources/src/test/java/AppTest.java b/src/main/resources/archetype-resources/src/test/java/AppTest.java new file mode 100644 index 0000000..963818b --- /dev/null +++ b/src/main/resources/archetype-resources/src/test/java/AppTest.java @@ -0,0 +1,38 @@ +package $com.louzin; + +import junit.framework.Test; +import junit.framework.TestCase; +import junit.framework.TestSuite; + +/** + * Unit test for simple App. + */ +public class AppTest + extends TestCase +{ + /** + * Create the test case + * + * @param testName name of the test case + */ + public AppTest( String testName ) + { + super( testName ); + } + + /** + * @return the suite of tests being tested + */ + public static Test suite() + { + return new TestSuite( AppTest.class ); + } + + /** + * Rigourous Test :-) + */ + public void testApp() + { + assertTrue( true ); + } +}