private boolean hasResources ( List < Resource > resources ) { for ( Resource resource : resources ) { if ( new File ( resource . getDirectory ( ) ) . exists ( ) ) { return true ; } } return false ; }
Check if any of the resources exist .