diff options
author | Reinier Zwitserloot <r.zwitserloot@projectlombok.org> | 2021-09-16 19:17:45 +0200 |
---|---|---|
committer | Reinier Zwitserloot <r.zwitserloot@projectlombok.org> | 2021-09-16 19:17:45 +0200 |
commit | d4c4a7a7db0032b7b8d4247405c25c405e9c7dd9 (patch) | |
tree | 3711940a3b7687a5ebee79b9a40e72054c0b2892 /src/installer/lombok | |
parent | be0f950a6555389ab61f891f5105111bc8f4c538 (diff) | |
download | lombok-d4c4a7a7db0032b7b8d4247405c25c405e9c7dd9.tar.gz lombok-d4c4a7a7db0032b7b8d4247405c25c405e9c7dd9.tar.bz2 lombok-d4c4a7a7db0032b7b8d4247405c25c405e9c7dd9.zip |
[issue #2964] fixing the previous commit
Diffstat (limited to 'src/installer/lombok')
-rw-r--r-- | src/installer/lombok/installer/eclipse/StandardProductDescriptor.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/installer/lombok/installer/eclipse/StandardProductDescriptor.java b/src/installer/lombok/installer/eclipse/StandardProductDescriptor.java index a9f55baf..365bf7fb 100644 --- a/src/installer/lombok/installer/eclipse/StandardProductDescriptor.java +++ b/src/installer/lombok/installer/eclipse/StandardProductDescriptor.java @@ -35,6 +35,7 @@ import lombok.installer.OsUtils; public class StandardProductDescriptor implements EclipseProductDescriptor { private static final String USER_HOME = System.getProperty("user.home", "."); + private static final String[] BASE_WINDOWS_ROOTS = {"\\", "\\Program Files", "\\Program Files (x86)", "\\ProgramData\\Chocolatey\\lib"}; private static final String[] WINDOWS_ROOTS = windowsRoots(); private static final String[] MAC_ROOTS = {"/Applications", USER_HOME}; private static final String[] UNIX_ROOTS = {USER_HOME}; @@ -157,7 +158,6 @@ public class StandardProductDescriptor implements EclipseProductDescriptor { return base + pathSeparator + alternative.replaceAll("[\\/]", "\\" + pathSeparator); } - private static final String[] BASE_WINDOWS_ROOTS = {"\\", "\\Program Files", "\\Program Files (x86)", "\\ProgramData\\Chocolatey\\lib"}; private static String[] windowsRoots() { String localAppData = windowsLocalAppData(); String[] out = new String[BASE_WINDOWS_ROOTS.length + (localAppData == null ? 1 : 2)]; |