Skip to content

Commit

Permalink
Fix jar issues
Browse files Browse the repository at this point in the history
  • Loading branch information
marqueurs404 committed Sep 17, 2019
1 parent fe050e0 commit 619251d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
4 changes: 4 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ dependencies {
implementation group: 'org.openjfx', name: 'javafx-web', version: javaFxVersion, classifier: 'mac'
implementation group: 'org.openjfx', name: 'javafx-web', version: javaFxVersion, classifier: 'linux'

runtimeOnly 'org.openjfx:javafx-graphics:$javafx.version:win'
runtimeOnly 'org.openjfx:javafx-graphics:$javafx.version:linux'
runtimeOnly 'org.openjfx:javafx-graphics:$javafx.version:mac'

testImplementation 'org.junit.jupiter:junit-jupiter:5.5.0'
}

Expand Down
Binary file added docs/Ui.PNG
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/main/java/core/Duke.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class Duke {
private Storage storage;
private TaskList tasks;
private Ui ui;
public static final String filePath = System.getProperty("user.dir") + "/data/duke.txt";
public static final String filePath = System.getProperty("user.dir") + "/duke.txt";

/**
* Duke Constructor, defaults to CLI mode.
Expand Down
3 changes: 0 additions & 3 deletions src/main/java/core/Storage.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
Expand All @@ -37,8 +36,6 @@ public Storage(String filePath) {
*/
public void save(TaskList taskList) throws DukeIoException {
try {
File file = new File(path.toString());
file.getParentFile();
if (!Files.exists(path)) {
Files.createFile(path);
}
Expand Down

0 comments on commit 619251d

Please sign in to comment.