public static List < String > readBuildConfigFile ( String fileName , File outputDir ) throws IOException { List < String > arguments = new ArrayList < String > ( ) ; File argFile = new File ( outputDir , fileName ) ; if ( FileUtils . fileExists ( argFile . getAbsolutePath ( ) ) ) { FileReader reader = new FileReader ( argFile ) ; BufferedReader bufRead = new BufferedReader ( reader ) ; String line = null ; do { line = bufRead . readLine ( ) ; if ( null != line ) { arguments . add ( line ) ; } } while ( null != line ) ; } return arguments ; }
Reads a build config file and returns the List of all compiler arguments .