Class FileCache
java.lang.Object
org.sonarsource.scanner.lib.internal.cache.FileCache
This class is responsible for managing Sonar batch file cache. You can put file into cache and
later try to retrieve them. The checksum is used to differentiate files (name is not secure as files may come
from different Sonar servers and have same name but be actually different, and same for SNAPSHOTs).
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic FileCacheLook for a file in the cache by its filename and checksum.getDir()getOrDownload(String filename, String hash, String hashAlgorithm, FileCache.Downloader downloader)
-
Method Details
-
create
-
getDir
-
get
Look for a file in the cache by its filename and checksum. If the file is not present then return null. -
getOrDownload
public CachedFile getOrDownload(String filename, String hash, String hashAlgorithm, FileCache.Downloader downloader)
-