From 18c739a10b45f3ea3365a561181f92df40dd9cbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E5=B0=8F=E4=BA=91?= Date: Thu, 4 Dec 2025 14:27:36 +0800 Subject: [PATCH] Initial commit: thingsboard-gateway-ws-demo --- .gitignore | 61 +++++++++++++++++++ pom.xml | 12 ++++ .../resources/META-INF/maven/archetype.xml | 9 +++ .../resources/archetype-resources/pom.xml | 15 +++++ .../src/main/java/App.java | 13 ++++ .../src/test/java/AppTest.java | 38 ++++++++++++ 6 files changed, 148 insertions(+) create mode 100644 .gitignore create mode 100644 pom.xml 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..dc60829 --- /dev/null +++ b/.gitignore @@ -0,0 +1,61 @@ +# Maven +target/ +pom.xml.tag +pom.xml.releaseBackup +pom.xml.versionsBackup +pom.xml.next +release.properties +dependency-reduced-pom.xml +buildNumber.properties +.mvn/timing.properties +.mvn/wrapper/maven-wrapper.jar + +# Java +*.class +*.jar +*.war +*.ear +*.log +*.ctxt +.mtj.tmp/ +hs_err_pid* +replay_pid* + +# IntelliJ IDEA +.idea/ +*.iml +*.iws +*.ipr +out/ + +# Eclipse +.classpath +.project +.settings/ +bin/ + +# VS Code +.vscode/ + +# macOS +.DS_Store +.AppleDouble +.LSOverride + +# Windows +Thumbs.db +ehthumbs.db +Desktop.ini + +# Linux +*~ + +# Logs +logs/ +*.log + +# Temporary files +*.tmp +*.bak +*.swp +*~.nib diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..0fe87b6 --- /dev/null +++ b/pom.xml @@ -0,0 +1,12 @@ + + 4.0.0 + + com.tuoheng + hyf + 1.0-SNAPSHOT + + thingsboard-gateway-ws + Archetype - thingsboard-gateway-ws + http://maven.apache.org + 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..77f597e --- /dev/null +++ b/src/main/resources/META-INF/maven/archetype.xml @@ -0,0 +1,9 @@ + + thingsboard-gateway-ws + + 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..d4cbc20 --- /dev/null +++ b/src/main/resources/archetype-resources/pom.xml @@ -0,0 +1,15 @@ + + 4.0.0 + $com.tuoheng + $thingsboard-gateway-ws + $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..29261c8 --- /dev/null +++ b/src/main/resources/archetype-resources/src/main/java/App.java @@ -0,0 +1,13 @@ +package $com.tuoheng; + +/** + * 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..f4a0bfc --- /dev/null +++ b/src/main/resources/archetype-resources/src/test/java/AppTest.java @@ -0,0 +1,38 @@ +package $com.tuoheng; + +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 ); + } +}