Package org.codehaus.mojo.license
Class LicenseMojoUtils
java.lang.Object
org.codehaus.mojo.license.LicenseMojoUtils
Utility methods common to various mojos.
- Since:
 - 1.17
 
- 
Method Summary
Modifier and TypeMethodDescriptionstatic booleanstatic StringprepareThirdPartyOverrideUrl(String resolvedUrl, File deprecatedFile, String url, File basedir) Chooses the overrideto use out ofinvalid reference
URLresolvedUrl,deprecatedFile,url, or the default given byDEFAULT_OVERRIDE_THIRD_PARTY. 
- 
Method Details
- 
isValid
- Parameters:
 url- theto checkinvalid reference
URL- Returns:
 url != null && url != NO_URL
 - 
prepareThirdPartyOverrideUrl
public static String prepareThirdPartyOverrideUrl(String resolvedUrl, File deprecatedFile, String url, File basedir) Chooses the overrideto use out ofinvalid reference
URLresolvedUrl,deprecatedFile,url, or the default given byDEFAULT_OVERRIDE_THIRD_PARTY.- Parameters:
 resolvedUrl- returns this one if it is notnulland not equal toNO_URLdeprecatedFile- the deprecated mojo parameterurl- the newer variant of the mojo parameterbasedir-basedirto resolve "src/license/override-THIRD-PARTY.properties" against- Returns:
 - a valid URL or 
NO_URL, nevernull 
 
 -