Class LicenseMojoUtils

java.lang.Object
org.codehaus.mojo.license.LicenseMojoUtils

public final class LicenseMojoUtils extends Object
Utility methods common to various mojos.
Since:
1.17
  • Method Details

    • isValid

      public static boolean isValid(String url)
      Parameters:
      url - the
      invalid reference
      URL
      to check
      Returns:
      url != null && url != NO_URL
    • prepareThirdPartyOverrideUrl

      public static String prepareThirdPartyOverrideUrl(String resolvedUrl, File deprecatedFile, String url, File basedir)
      Chooses the override
      invalid reference
      URL
      to use out of resolvedUrl, deprecatedFile, url, or the default given by DEFAULT_OVERRIDE_THIRD_PARTY.
      Parameters:
      resolvedUrl - returns this one if it is not null and not equal to NO_URL
      deprecatedFile - the deprecated mojo parameter
      url - the newer variant of the mojo parameter
      basedir - basedir to resolve "src/license/override-THIRD-PARTY.properties" against
      Returns:
      a valid URL or NO_URL, never null