Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add check for valid Dart SDK to preference page #99

Merged
merged 11 commits into from
Jul 16, 2019
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package org.eclipse.dartboard.preference;

import java.io.BufferedReader;
import java.io.File;
import java.io.IOException;
import java.io.InputStreamReader;
import java.nio.file.Files;
Expand Down Expand Up @@ -65,7 +66,7 @@ private boolean isValidDartSDK(String location) {
// InvalidPathException is thrown. In that case we can assume that the location
// entered is not a valid Dart SDK directory either.
try {
path = Paths.get(location).resolve("bin/dart");
path = Paths.get(location).resolve("bin" + File.separator + "dart");
jonas-jonas marked this conversation as resolved.
Show resolved Hide resolved
} catch (InvalidPathException e) {
return false;
}
Expand Down