Skip to content

Commit 6aed00a

Browse files
committed
Command Parsing
View changelog entry Sergix#81 for details.
1 parent 5b40a86 commit 6aed00a

27 files changed

+870
-472
lines changed

.vscode/launch.json

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "Java",
6+
"type": "java",
7+
"request": "launch",
8+
"stopOnEntry": true,
9+
"jdkPath": "${env:JAVA_HOME}",
10+
"cwd": "${fileDirname}",
11+
"startupClass": "JTerm",
12+
"classpath": [
13+
".",
14+
"${fileDirname}"
15+
]
16+
},
17+
{
18+
"name": "Java Console App",
19+
"type": "java",
20+
"request": "launch",
21+
"stopOnEntry": true,
22+
"jdkPath": "${env:JAVA_HOME}",
23+
"cwd": "${fileDirname}",
24+
"startupClass": "JTerm",
25+
"classpath": [
26+
"src/main/java/jterm",
27+
"${fileDirname}"
28+
],
29+
"externalConsole": true
30+
}
31+
]
32+
}

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[![JTerm](https://sergix.github.io/img/jterm.png)](https://sergix.github.io/projects/jterm/index.html)
22

33
![Build Status](https://travis-ci.org/Sergix/JTerm.svg?branch=master)
4+
[![Code Triagers Badge](https://www.codetriage.com/sergix/jterm/badges/users.svg)](https://www.codetriage.com/sergix/jterm)
45

56
## What is it?
67
A terminal written for cross-platform usage.

changelog.txt

+14
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
(#81)[9/9/2017-21:14 0.4.1 Sergix]
2+
Created a new command parsing algorithm.
3+
- Commands are now the exact name of the class
4+
- Each class now has a Process() function that runs the function associated with the command
5+
- Commands are now formatted as "[class] [command]" (i.e. "dir ls", list directory contents)
6+
The "init" batch now defines an environment variable, JTERM_VERSION, that contains the version to build the JAR as.
7+
Added a CodeTriage badge to the README!
8+
Fixed Issue #23.
9+
- The POM now builds the MANIFEST with the main class included to be able to run with -jar.
10+
Created multiple classes.
11+
- Exit.java (exit)
12+
- Help.java (help)
13+
Pushed updates to Git.
14+
115
(#80)[9/8/2017-21:39 0.4.1 Sergix]
216
Changed the username of the last two entries and in the JTerm.java doc comments. ;P
317
Pushed updates to Git.

init.bat

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
@echo off
2-
32
cls
3+
4+
set JTERM_VERSION=0.4.2
5+
46
prompt dev~JTerm/

pom.xml

+6-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<groupId>sergix</groupId>
77
<artifactId>jterm</artifactId>
8-
<version>0.4.1</version>
8+
<version>0.4.2</version>
99
<packaging>jar</packaging>
1010
<description>JTerm is a cross-platform terminal designed for simple use and to run batch files. JTerm is hosted on GitHub by Sergix and NCSGeek.</description>
1111

@@ -41,11 +41,15 @@
4141
<descriptorRefs>
4242
<descriptorRef>jar-with-dependencies</descriptorRef>
4343
</descriptorRefs>
44+
<archive>
45+
<manifest>
46+
<mainClass>main.java.jterm.JTerm</mainClass>
47+
</manifest>
48+
</archive>
4449
</configuration>
4550
</execution>
4651
</executions>
4752
</plugin>
48-
4953
</plugins>
5054
</build>
5155

run.bat

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
@echo off
22

33
cd target
4-
if EXIST "jterm-0.4.1-jar-with-dependencies.jar" (
5-
ren jterm-0.4.1.jar jterm-0.4.1-no-deps.jar
6-
ren jterm-0.4.1-jar-with-dependencies.jar jterm-v0.4.1.jar
4+
if EXIST "jterm-%JTERM_VERSION%-jar-with-dependencies.jar" (
5+
ren jterm-%JTERM_VERSION%.jar jterm-%JTERM_VERSION%-no-deps.jar
6+
ren jterm-%JTERM_VERSION%-jar-with-dependencies.jar jterm-v%JTERM_VERSION%.jar
77
)
88
cd ..
99

10-
java -cp target/jterm-v0.4.1.jar main.java.jterm.JTerm
10+
java -cp target/jterm-v%JTERM_VERSION%.jar main.java.jterm.JTerm

0 commit comments

Comments
 (0)