public static Set < String > getBuildFilesForAjdtFile ( String ajdtBuildDefFile , File basedir ) throws MojoExecutionException { Set < String > result = new LinkedHashSet < String > ( ) ; Properties ajdtBuildProperties = new Properties ( ) ; try { ajdtBuildProperties . load ( new FileInputStream ( new File ( basedir , ajdtBuildDefFile ) ) ) ; } catch ( FileNotFoundException e ) { throw new MojoExecutionException ( "Build properties file specified not found" , e ) ; } catch ( IOException e ) { throw new MojoExecutionException ( "IO Error reading build properties file specified" , e ) ; } result . addAll ( resolveIncludeExcludeString ( ajdtBuildProperties . getProperty ( "src.includes" ) , basedir ) ) ; Set < String > exludes = resolveIncludeExcludeString ( ajdtBuildProperties . getProperty ( "src.excludes" ) , basedir ) ; result . removeAll ( exludes ) ; return result ; }
Based on a AJDT build properties file resolves the combination of all include and exclude statements and returns a set of all the files to be compiled and weaved .