public File getFilteredVersion ( File input ) { File out ; if ( ! input . getName ( ) . endsWith ( ".css" ) ) { out = getOutputFile ( input , "css" ) ; } else { out = getOutputFile ( input ) ; } if ( ! out . isFile ( ) ) { return null ; } return out ; }
Overrides the parent method to manage the case where the given file is not a . css . In that case it should strips the extension and find a . css file .