protected CharSequence getLicenseText ( ) { final URL url = getClass ( ) . getResource ( LICENSE_FILE ) ; if ( url != null ) { final File filename = new File ( url . getPath ( ) ) ; try { return Files . toString ( filename , Charset . defaultCharset ( ) ) ; } catch ( IOException exception ) { throw new RuntimeException ( exception ) ; } } return null ; }
Replies the text of the license to write to the generated output .