Class PreferredFileNames
java.lang.Object
org.codehaus.mojo.license.download.PreferredFileNames
An url ->
FileNameEntry mapping.- Since:
- 1.18
- Author:
- Peter Palaga
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PreferredFileNamesgetEntryByUrl(String url) getFileNameBySha1(String sha1)
-
Constructor Details
-
PreferredFileNames
-
-
Method Details
-
build
public static PreferredFileNames build(File licensesOutputDirectory, Map<String, String> licenseUrlFileNames) - Parameters:
licensesOutputDirectory-licenseUrlFileNames-- Returns:
- a new
PreferredFileNamesbuilt of AbstractDownloadLicensesMojo.licenseUrlFileNames
-
getFileNameBySha1
- Parameters:
sha1- the checksum to search by- Returns:
- a file name bound the given
sha1checksum ornull
-
getEntryByUrl
- Parameters:
url- the URL to query- Returns:
- the preferred
FileNameEntryfor the givenurlornull
-