Skip to content

Commit 6663e80

Browse files
authored
add graddle support
1 parent dd46e6e commit 6663e80

3 files changed

Lines changed: 48 additions & 0 deletions

File tree

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# User Guide
2+
3+
## Features
4+
5+
### Feature 1
6+
Description of feature.
7+
8+
## Usage
9+
10+
### `Keyword` - Describe action
11+
12+
Describe action and its outcome.
13+
14+
Example of usage:
15+
16+
`keyword (optional arguments)`
17+
18+
Expected outcome:
19+
20+
`outcome`
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Hello from
2+
____ _
3+
| _ \ _ _| | _____
4+
| | | | | | | |/ / _ \
5+
| |_| | |_| | < __/
6+
|____/ \__,_|_|\_\___|
7+
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
@ECHO OFF
2+
3+
REM create bin directory if it doesn't exist
4+
if not exist ..\bin mkdir ..\bin
5+
6+
REM delete output from previous run
7+
del ACTUAL.TXT
8+
9+
REM compile the code into the bin folder
10+
javac -cp ..\src -Xlint:none -d ..\bin ..\src\main\java\Duke.java
11+
IF ERRORLEVEL 1 (
12+
echo ********** BUILD FAILURE **********
13+
exit /b 1
14+
)
15+
REM no error here, errorlevel == 0
16+
17+
REM run the program, feed commands from input.txt file and redirect the output to the ACTUAL.TXT
18+
java -classpath ..\bin Duke < input.txt > ACTUAL.TXT
19+
20+
REM compare the output to the expected output
21+
FC ACTUAL.TXT EXPECTED.TXT

0 commit comments

Comments
 (0)