protected String getContent ( String fileName , MessageMgr mm ) { StringFileLoader sfl = new StringFileLoader ( fileName ) ; if ( sfl . getLoadErrors ( ) . hasErrors ( ) ) { mm . report ( sfl . getLoadErrors ( ) ) ; return null ; } String content = sfl . load ( ) ; if ( sfl . getLoadErrors ( ) . hasErrors ( ) ) { mm . report ( sfl . getLoadErrors ( ) ) ; return null ; } if ( content == null ) { mm . report ( MessageMgr . createErrorMessage ( "run: unexpected problem with run script, content was null" ) ) ; return null ; } return content ; }
Returns the content of a string read from a file .