Skip to content

Commit 3d0ebe1

Browse files
committed
Jar archived
Changed directory search to hard code address, jar file cannot find directory Signed-off-by: tys <[email protected]>
1 parent 10e487b commit 3d0ebe1

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/main/java/duke/Duke.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -339,8 +339,9 @@ public static void printDeleteStatement(String data){
339339
}
340340

341341
public static void main(String[] args) {
342-
String currentWorkingDir = System.getProperty("user.dir");
343-
listPath = currentWorkingDir + listPath;
342+
//String currentWorkingDir = System.getProperty("user.dir");
343+
//listPath = currentWorkingDir + listPath;
344+
listPath = "C:/Users/Tan Yu Shing/Desktop/Sem 3 folder/CS2113T/Individual Project/ip/src/main/java/taskList.txt";
344345
getList(listPath);
345346

346347
String logo = " ____ _ \n"

src/main/java/taskList.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
T | 1 | read book
22
D | 1 | return book /by June 6th
33
D | 1 | project meeting /by Aug 6th 2-4pm
4-
T | 1 | join sports club
5-
T | 0 | paper plane
6-
D | 0 | football match /by today 7pm
4+
T | 1 | paper plane
5+
T | 0 | abc
6+
D | 1 | hw jap /by tuesday morning

0 commit comments

Comments
 (0)