Builds a new LicenseInfo instance from a license template file.
License template files a formatted as follows :
-
the first line contains the
'label: ' keyword followed
by single word label for the license,
-
the second line contains the
'description: ' keyword
followed by a short description of the license,
-
the third line contains only the
'contents: ' keyword,
-
all subsequent lines are considered to be the text of the license
itself.
Inside the license text, constructs of the form
${propname} denote properties. They are replaced with their
actuel values when license headers are generated in source files.
- Parameters:
filename - the name of the license template file.
|