private boolean findJavaSourceFiles ( String [ ] args ) { String prev = "" ; for ( String s : args ) { if ( s . endsWith ( ".java" ) && ! prev . equals ( "-xf" ) && ! prev . equals ( "-if" ) ) { return true ; } prev = s ; } return false ; }
Are java source files passed on the command line?