From 2866df727f66c0f597ba4eb6e509a28b1509f341 Mon Sep 17 00:00:00 2001 From: Harrison Deng Date: Thu, 20 Jan 2022 04:40:00 -0600 Subject: [PATCH] Initial commit including generated base files. --- .gitignore | 91 +++++++++++++++++++ .gitmodules | 3 + README.md | 3 + mcswebapi/pom.xml | 17 ++++ .../main/java/xyz/reslate/mcswebapi/App.java | 13 +++ .../java/xyz/reslate/mcswebapi/AppTest.java | 38 ++++++++ 6 files changed, 165 insertions(+) create mode 100644 .gitignore create mode 100644 .gitmodules create mode 100644 README.md create mode 100644 mcswebapi/pom.xml create mode 100644 mcswebapi/src/main/java/xyz/reslate/mcswebapi/App.java create mode 100644 mcswebapi/src/test/java/xyz/reslate/mcswebapi/AppTest.java diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6248f2b --- /dev/null +++ b/.gitignore @@ -0,0 +1,91 @@ +# File created using '.gitignore Generator' for Visual Studio Code: https://bit.ly/vscode-gig + +# Created by https://www.toptal.com/developers/gitignore/api/visualstudiocode,linux,java,maven +# Edit at https://www.toptal.com/developers/gitignore?templates=visualstudiocode,linux,java,maven + +### Java ### +# Compiled class file +*.class + +# Log file +*.log + +# BlueJ files +*.ctxt + +# Mobile Tools for Java (J2ME) +.mtj.tmp/ + +# Package Files # +*.jar +*.war +*.nar +*.ear +*.zip +*.tar.gz +*.rar + +# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml +hs_err_pid* +replay_pid* + +### Linux ### +*~ + +# temporary files which can be created if a process still has a handle open of a deleted file +.fuse_hidden* + +# KDE directory preferences +.directory + +# Linux trash folder which might appear on any partition or disk +.Trash-* + +# .nfs files are created when an open file is removed but is still being accessed +.nfs* + +### 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 +# https://github.com/takari/maven-wrapper#usage-without-binary-jar +.mvn/wrapper/maven-wrapper.jar + +# Eclipse m2e generated files +# Eclipse Core +.project +# JDT-specific (Eclipse Java Development Tools) +.classpath + +### VisualStudioCode ### +.vscode/* +!.vscode/settings.json +!.vscode/tasks.json +!.vscode/launch.json +!.vscode/extensions.json +!.vscode/*.code-snippets + +# Local History for Visual Studio Code +.history/ + +# Built Visual Studio Code Extensions +*.vsix + +### VisualStudioCode Patch ### +# Ignore all local history of files +.history +.ionide + +# Support for Project snippet scope + +# End of https://www.toptal.com/developers/gitignore/api/visualstudiocode,linux,java,maven + +# Custom rules (everything added below won't be overriden by 'Generate .gitignore File' if you use 'Update' option) + +**/development_server \ No newline at end of file diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..516b753 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "SpigotPluginBaseTools"] + path = SpigotPluginBaseTools + url = git@dev.sys.reslate.xyz:ydeng/SpigotPluginBaseTools.git diff --git a/README.md b/README.md new file mode 100644 index 0000000..a9b6bb3 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# MCSWebAPI + +A Minecraft server (Spigot and Bukkit) REST web API. \ No newline at end of file diff --git a/mcswebapi/pom.xml b/mcswebapi/pom.xml new file mode 100644 index 0000000..310da05 --- /dev/null +++ b/mcswebapi/pom.xml @@ -0,0 +1,17 @@ + + 4.0.0 + xyz.reslate.mcswebapi + mcswebapi + jar + 1.0-SNAPSHOT + mcswebapi + http://maven.apache.org + + + junit + junit + 3.8.1 + test + + org.spigotmcspigot-apiLATESTjarprovided +spigot-repohttps://hub.spigotmc.org/nexus/content/repositories/public/ \ No newline at end of file diff --git a/mcswebapi/src/main/java/xyz/reslate/mcswebapi/App.java b/mcswebapi/src/main/java/xyz/reslate/mcswebapi/App.java new file mode 100644 index 0000000..1afd183 --- /dev/null +++ b/mcswebapi/src/main/java/xyz/reslate/mcswebapi/App.java @@ -0,0 +1,13 @@ +package xyz.reslate.mcswebapi; + +/** + * Hello world! + * + */ +public class App +{ + public static void main( String[] args ) + { + System.out.println( "Hello World!" ); + } +} diff --git a/mcswebapi/src/test/java/xyz/reslate/mcswebapi/AppTest.java b/mcswebapi/src/test/java/xyz/reslate/mcswebapi/AppTest.java new file mode 100644 index 0000000..757e54b --- /dev/null +++ b/mcswebapi/src/test/java/xyz/reslate/mcswebapi/AppTest.java @@ -0,0 +1,38 @@ +package xyz.reslate.mcswebapi; + +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 ); + } +}