Class UtilsKt
-
- All Implemented Interfaces:
public final class UtilsKt
-
-
Field Summary
Fields Modifier and Type Field Description private final static FileortConfigDirectoryprivate final static FileortToolsDirectoryprivate final static FileortDataDirectoryprivate static BooleanprintStackTrace
-
Method Summary
Modifier and Type Method Description final FilegetOrtConfigDirectory()The directory to store ORT (read-only) configuration in. final FilegetOrtToolsDirectory()The directory to store ORT (read-write) tools in. final FilegetOrtDataDirectory()The directory to store ORT (read-write) data in, like caches and archives. BooleangetPrintStackTrace()Global variable that gets toggled by a command line parameter parsed in the main entry points of the modules. voidsetPrintStackTrace(Boolean printStackTrace)Global variable that gets toggled by a command line parameter parsed in the main entry points of the modules. final static List<String>filterVersionNames(String version, List<String> names, String project)Filter a list of names to include only those that likely belong to the given version of an optional project. final static PasswordAuthenticationrequestPasswordAuthentication(String host, Integer port, String scheme)Request a PasswordAuthentication object for the given host, port, and scheme. final static PasswordAuthenticationrequestPasswordAuthentication(URI uri)Request a PasswordAuthentication object for the given uri. final static StringnormalizeVcsUrl(String vcsUrl)Normalize a string representing a VCS URL to a common string form. -
-
Method Detail
-
getOrtConfigDirectory
final File getOrtConfigDirectory()
The directory to store ORT (read-only) configuration in.
-
getOrtToolsDirectory
final File getOrtToolsDirectory()
The directory to store ORT (read-write) tools in.
-
getOrtDataDirectory
final File getOrtDataDirectory()
The directory to store ORT (read-write) data in, like caches and archives.
-
getPrintStackTrace
Boolean getPrintStackTrace()
Global variable that gets toggled by a command line parameter parsed in the main entry points of the modules.
-
setPrintStackTrace
void setPrintStackTrace(Boolean printStackTrace)
Global variable that gets toggled by a command line parameter parsed in the main entry points of the modules.
-
filterVersionNames
final static List<String> filterVersionNames(String version, List<String> names, String project)
Filter a list of names to include only those that likely belong to the given version of an optional project.
-
requestPasswordAuthentication
final static PasswordAuthentication requestPasswordAuthentication(String host, Integer port, String scheme)
Request a PasswordAuthentication object for the given host, port, and scheme. Install the OrtAuthenticator and the OrtProxySelector beforehand to ensure they are active.
-
requestPasswordAuthentication
final static PasswordAuthentication requestPasswordAuthentication(URI uri)
Request a PasswordAuthentication object for the given uri. Install the OrtAuthenticator and the OrtProxySelector beforehand to ensure they are active.
-
normalizeVcsUrl
final static String normalizeVcsUrl(String vcsUrl)
Normalize a string representing a VCS URL to a common string form.
-
-
-
-