Class StringToList

java.lang.Object
org.codehaus.mojo.license.utils.StringToList
Direct Known Subclasses:
AbstractAddThirdPartyMojo.ExcludedLicenses, AbstractAddThirdPartyMojo.IncludedLicenses

public class StringToList extends Object
Object to convert in mojo a parameter from a some simple String to a List. See (http://jira.codehaus.org/browse/MLICENSE-53).
Since:
1.4
Author:
tchemit dev@tchemit.fr
  • Field Details

    • LIST_OF_LICENSES_REG_EX

      public static final String LIST_OF_LICENSES_REG_EX
      Regular expression to split license list.
      See Also:
  • Constructor Details

    • StringToList

      public StringToList()
    • StringToList

      public StringToList(String data) throws org.apache.maven.plugin.MojoExecutionException
      Parameters:
      data - a list of licenses or a URL
      Throws:
      org.apache.maven.plugin.MojoExecutionException
  • Method Details

    • getData

      public List<String> getData()
    • addEntryToList

      protected void addEntryToList(String data)