Skip to content

Commit

Permalink
! r cache windows programs
Browse files Browse the repository at this point in the history
Co-Authored-By: Llewellyn Falco <llewellyn.falco@gmail.com>
  • Loading branch information
LarsEckart and isidore committed Oct 23, 2023
1 parent 0b011ad commit 0665f73
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ void testFindItOnLinux()
"/home/lars/.local/share/JetBrains/Toolbox/apps/intellij-idea-community-edition/bin/idea.sh");
verifyPaths(IntelliJToolboxResolver::getDiffInfoLinux, "/home/lars", validPaths);
}
// "C:\Users\larse\AppData\Local\Programs\IntelliJ IDEA Ultimate\bin\idea64.exe"
@Test
void testFindItOnWindows()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

public class DiffInfo
{
private static final String[] WINDOWS_PROGRAM_FILES = loadProgramFilesPaths();
public String diffProgram;
public String parameters;
public List<String> fileExtensions;
Expand Down Expand Up @@ -59,7 +60,10 @@ public boolean isEmpty()
{
return "".equals(diffProgram);
}
public static String[] getProgramFilesPaths()
public static String[] getProgramFilesPaths(){
return WINDOWS_PROGRAM_FILES;
}
public static String[] loadProgramFilesPaths()
{
List<String> paths = new ArrayList<>();
addIfNotNull("ProgramFiles(x86)", paths);
Expand Down

0 comments on commit 0665f73

Please sign in to comment.