Skip to content

Commit 05a879b

Browse files
author
jantje
committed
#705 reduced to max 40 path length on windows
1 parent 6f47241 commit 05a879b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

io.sloeber.core/src/io/sloeber/core/Activator.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -219,14 +219,14 @@ private boolean DownloadFolderConditionsOK() {
219219
boolean cantWrite = !installPath.toFile().canWrite();
220220
boolean windowsPathToLong = false;
221221
if (Platform.getOS().equals(Platform.OS_WIN32)) {
222-
windowsPathToLong = installPath.toString().length() > 100;
222+
windowsPathToLong = installPath.toString().length() > 40;
223223
}
224224
if (cantWrite || windowsPathToLong) {
225225
String errorMessage = cantWrite ? "The plugin Needs write access to " + installPath.toString()
226-
: Const.EMPTY_STRING;
227-
errorMessage += ((windowsPathToLong && cantWrite) ? '\n' : Const.EMPTY_STRING);
226+
: new String();
227+
errorMessage += ((windowsPathToLong && cantWrite) ? '\n' : new String());
228228
errorMessage += (windowsPathToLong ? "The path " + installPath.toString() + " is to long"
229-
: Const.EMPTY_STRING);
229+
: new String());
230230

231231
Common.log(new Status(IStatus.ERROR, PLUGIN_ID, errorMessage));
232232
return false;

0 commit comments

Comments
 (0)