@Override public void licenceFile(String textToShow,File licenceFile) throws CancelException {
  try {
    final FileInputStream content=new FileInputStream(licenceFile);
    final StringWriter writer=new StringWriter();
    IOUtils.copy(content,writer,"UTF-8");
    content.close();
    licence(textToShow,writer.toString());
  }
 catch (  IOException e) {
    throw new ScriptFailureException("Cannot acces the licence file",e);
  }
}

@ Override public void licenceFile ( String textToShow , File licenceFile ) throws CancelException { try { final FileInputStream content = new FileInputStream ( licenceFile ) ; final StringWriter writer = new StringWriter ( ) ; IOUtils . copy ( content , writer , "UTF-8" ) ; content . close ( ) ; licence ( textToShow , writer . toString ( ) ) ; } catch ( IOException e ) { throw new ScriptFailureException ( "Cannot acces the licence file" , e ) ; } }
show the content of a licence file
