Verified Owner
Top Fields Constructors Methods
org.jabref.logic.push

public Class PushToApplicationDetector

extends Object
Class Inheritance
Imports
java.io.IOException, java.nio.file.Files, .Path, java.util.ArrayList, .List, .Map, .Optional, java.util.stream.Collectors, .Stream, org.jabref.logic.os.OS, org.jspecify.annotations.Nullable, org.slf4j.Logger, .LoggerFactory

Field Summary

Modifier and TypeField and Description
private static final Logger

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static <T extends PushToApplication> Map<T, String>
private static @Nullable String
private static @Nullable String
private static @Nullable String
private static @Nullable String
private static List<Path>
private static String[]
private static boolean
public static boolean
private static boolean
isValidExecutable(Path path, String[] names)

private static @Nullable String
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

LOGGERback to summary
private static final Logger LOGGER

Constructor Detail

PushToApplicationDetectorback to summary
public PushToApplicationDetector()

Method Detail

detectApplicationPathsback to summary
public static <T extends PushToApplication> Map<T, String> detectApplicationPaths(List<T> apps)
findApplicationPathback to summary
private static @Nullable String findApplicationPath(PushToApplication app)
findExecutableInCommonPathsback to summary
private static @Nullable String findExecutableInCommonPaths(String[] names)
findExecutableInDirectoryback to summary
private static @Nullable String findExecutableInDirectory(Path dir, String[] names)
findExecutableInPathback to summary
private static @Nullable String findExecutableInPath(String exe)
getCommonPathsback to summary
private static List<Path> getCommonPaths()
getPossibleExecutableNamesback to summary
private static String[] getPossibleExecutableNames(String name)
isExecutableNameMatchback to summary
private static boolean isExecutableNameMatch(String file, String name)
isValidAbsolutePathback to summary
public static boolean isValidAbsolutePath(String path)
isValidExecutableback to summary
private static boolean isValidExecutable(Path path, String[] names)
trySystemCommandback to summary
private static @Nullable String trySystemCommand(String cmd, String arg)