From 87fb6930eb17042ca8ceb917febbd93f18adb018 Mon Sep 17 00:00:00 2001 From: Christopher Bohn <bohn@unl.edu> Date: Fri, 29 Nov 2024 14:42:44 -0600 Subject: [PATCH] Added starter code for Lab 15 --- rest-practice/.gitignore | 62 +++++++++++++++++++ rest-practice/pom.xml | 36 +++++++++++ .../rest_practice/WeatherReporter.java | 10 +++ .../unl/cse/soft160/rest_practice/.gitkeep | 0 4 files changed, 108 insertions(+) create mode 100644 rest-practice/.gitignore create mode 100644 rest-practice/pom.xml create mode 100644 rest-practice/src/main/java/edu/unl/cse/soft160/rest_practice/WeatherReporter.java create mode 100644 rest-practice/src/test/java/edu/unl/cse/soft160/rest_practice/.gitkeep diff --git a/rest-practice/.gitignore b/rest-practice/.gitignore new file mode 100644 index 0000000..f35f60a --- /dev/null +++ b/rest-practice/.gitignore @@ -0,0 +1,62 @@ +# Mac file finder metadata +.DS_Store +# Windows file metadata +._* +# Thumbnail image caches +Thumbs.db +ethumbs.db +# MS Office temporary file +~* +# Emacs backup file +*~ + +# Common +[Bb]in/ +[Bb]uild/ +[Oo]bj/ +[Oo]ut/ +[Tt]mp/ +[Xx]86/ +[Ii][Aa]32/ +[Xx]64/ +[Xx]86_64/ +[Xx]86-64/ +[Aa]rm +[Aa]32 +[Tt]32 +[Aa]64 +*.tmp +*.bak +*.bk +*.swp + +# Java files +*.class +javadoc/ + +# 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 + +# JetBrains (IntelliJ IDEA, PyCharm, etc) files +.idea/ +cmake-build-*/ +*.iml +*.iws +*.ipr + +# Eclipse files +.settings/ +.project +.classpath +.buildpath +.loadpath +.factorypath +local.properties diff --git a/rest-practice/pom.xml b/rest-practice/pom.xml new file mode 100644 index 0000000..8c5bc3d --- /dev/null +++ b/rest-practice/pom.xml @@ -0,0 +1,36 @@ +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> + <modelVersion>4.0.0</modelVersion> + <groupId>edu.unl.cse.soft160.rest_practice</groupId> + <artifactId>rest_practice</artifactId> + <packaging>jar</packaging> + <version>1.0-SNAPSHOT</version> + <name>rest_practice</name> + <url>http://maven.apache.org</url> + + <properties> + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> + </properties> + + <build> + <plugins> + <plugin> + <artifactId>maven-compiler-plugin</artifactId> + <version>3.8.1</version> + <configuration> + <source>11</source> + <target>11</target> + </configuration> + </plugin> + </plugins> + </build> + + <dependencies> + <dependency> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + <version>4.13</version> + <scope>test</scope> + </dependency> + </dependencies> +</project> diff --git a/rest-practice/src/main/java/edu/unl/cse/soft160/rest_practice/WeatherReporter.java b/rest-practice/src/main/java/edu/unl/cse/soft160/rest_practice/WeatherReporter.java new file mode 100644 index 0000000..9f10368 --- /dev/null +++ b/rest-practice/src/main/java/edu/unl/cse/soft160/rest_practice/WeatherReporter.java @@ -0,0 +1,10 @@ +package edu.unl.cse.soft160.rest_practice; + +/** + * Hello world! + */ +public class WeatherReporter { + public static void main(String[] args) { + System.out.println("Hello World!"); + } +} diff --git a/rest-practice/src/test/java/edu/unl/cse/soft160/rest_practice/.gitkeep b/rest-practice/src/test/java/edu/unl/cse/soft160/rest_practice/.gitkeep new file mode 100644 index 0000000..e69de29 -- GitLab