protected boolean checkConfiguration ( IProgressMonitor progress ) { assert progress != null ; progress . subTask ( Messages . SarlBatchCompiler_55 ) ; final File output = getOutputPath ( ) ; if ( getLogger ( ) . isDebugEnabled ( ) ) { getLogger ( ) . debug ( Messages . SarlBatchCompiler_35 , output ) ; } if ( output == null ) { reportInternalError ( Messages . SarlBatchCompiler_36 ) ; return false ; } progress . subTask ( Messages . SarlBatchCompiler_56 ) ; for ( final File sourcePath : getSourcePaths ( ) ) { if ( progress . isCanceled ( ) ) { return false ; } try { if ( getLogger ( ) . isDebugEnabled ( ) ) { getLogger ( ) . debug ( Messages . SarlBatchCompiler_37 , sourcePath ) ; } if ( isContainedIn ( output . getCanonicalFile ( ) , sourcePath . getCanonicalFile ( ) ) ) { reportInternalError ( Messages . SarlBatchCompiler_10 , output , sourcePath ) ; return false ; } } catch ( IOException e ) { reportInternalError ( Messages . SarlBatchCompiler_11 , e ) ; } } return true ; }
Check the compiler configuration ; and logs errors .