public class PreferredFileNames extends Object
FileNameEntry mapping.| Constructor and Description |
|---|
PreferredFileNames(File licensesOutputDirectory,
Map<String,Map.Entry<String,List<Pattern>>> fileNameToUrlPatterns,
Map<String,String> sha1ToFileName,
org.apache.maven.plugin.logging.Log log) |
| Modifier and Type | Method and Description |
|---|---|
static PreferredFileNames |
build(File licensesOutputDirectory,
Map<String,String> licenseUrlFileNames,
org.apache.maven.plugin.logging.Log log) |
FileNameEntry |
getEntryByUrl(String url) |
String |
getFileNameBySha1(String sha1) |
public static PreferredFileNames build(File licensesOutputDirectory, Map<String,String> licenseUrlFileNames, org.apache.maven.plugin.logging.Log log)
licensesOutputDirectory - licenseUrlFileNames - log - PreferredFileNames built of AbstractDownloadLicensesMojo.licenseUrlFileNamespublic String getFileNameBySha1(String sha1)
sha1 - the checksum to search bysha1 checksum or nullpublic FileNameEntry getEntryByUrl(String url)
url - the URL to queryFileNameEntry for the given url or nullCopyright © 2010–2019 MojoHaus. All rights reserved.