Skip to content

Commit

Permalink
Cleaned up pom.xml and adjusted code for compiling with Java 11. Prep…
Browse files Browse the repository at this point in the history
…ared for release.
  • Loading branch information
yegoD1 committed Dec 10, 2024
1 parent cbd3cef commit 68cb307
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 28 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,19 @@ After you have downloaded the certificate, you must must open a terminal window
**Copy each line and run one at a time.**
```shell
cd Downloads
$JAVA_HOME/bin/keytool -importcert -alias GMUScheduler -cacerts -file ssbstureg-gmu-edu.pem -storepass changeit
$JAVA_HOME/bin/keytool -importcert -alias ClassScheduler -cacerts -file ssbstureg-gmu-edu.pem -storepass changeit
yes
```
If there are no errors, you should get `Certificate was added to keystore`.
## Removing the Certificate
If you are no longer using the tool, you can remove the certificate from the keytool with the following command. Make sure to change the `-storepass` argument to a different password if you changed the keystore password.
```shell
keytool -delete -alias GMUScheduler -cacerts -storepass changeit
keytool -delete -alias ClassScheduler -cacerts -storepass changeit
```
# Building
# How to Use
This tool can alert you when an opening is discovered for your classes. You first must check on the class scheduling website and then copy the class symbol, number, and section. If you would like keep tracking for any class regardless of section, you can leave that field empty.\
**You have to keep the program open in order for classes to be actively checked.**
# Building the Project
This Java project is built using Maven. The build targets Java 17.
# Open Source Dependencies
This program used the following dependencies:
Expand Down
1 change: 0 additions & 1 deletion attributes.txt

This file was deleted.

4 changes: 4 additions & 0 deletions launchJarMac.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
cd "${DIR}"
java -jar schedulechecker-1.0.jar
20 changes: 4 additions & 16 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,15 @@

<groupId>com.yegoD</groupId>
<artifactId>schedulechecker</artifactId>
<version>1.0-SNAPSHOT</version>
<version>1.0</version>
<packaging>jar</packaging>

<name>schedulechecker</name>
<url>https://github.com/yegoD1/schedulechecker</url>

<properties>
<java.version>17</java.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<maven.compiler.release>17</maven.compiler.release>
</properties>

<dependencies>
Expand Down Expand Up @@ -68,17 +66,6 @@
<artifactId>maven-shade-plugin</artifactId>
<version>3.6.0</version>

<configuration>
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>module-info.class</exclude>
</excludes>
</filter>
</filters>
</configuration>

<executions>
<execution>
<phase>package</phase>
Expand All @@ -103,14 +90,15 @@
<artifactId>maven-jar-plugin</artifactId>
<version>3.4.2</version>
<configuration>

<excludes>
<exclude>**/log4j.properties</exclude>
</excludes>

<archive>
<manifest>
<!-- Jar file entry point -->
<addClasspath>true</addClasspath>
<mainClass>com.yegoD.ScheduleChecker</mainClass>
</manifest>
</archive>
Expand Down
16 changes: 8 additions & 8 deletions src/main/java/com/yegoD/ClassChecker.java
Original file line number Diff line number Diff line change
Expand Up @@ -201,19 +201,19 @@ public void removeClass(JPanel classToRemove)
}
}

// Enum representing all the states a class can be in.
private enum ClassStatus
{
UNAVAILABLE,
UNCHECKED,
AVAILABLE
}

/**
* ClassEntry is a JPanel used display one tracked entry.
*/
private class ClassEntry extends JPanel
{
// Enum representing all the states a class can be in.
private enum ClassStatus
{
UNAVAILABLE,
UNCHECKED,
AVAILABLE
}

// Main JPanel where elements will be added to. Will then be added to this JPanel.
private JPanel mainPanel;

Expand Down

0 comments on commit 68cb307

Please sign in to comment.