private void addIncludes ( DBHandling handling , FileSet fileSet ) throws BuildException { DirectoryScanner scanner = fileSet . getDirectoryScanner ( getProject ( ) ) ; String [ ] files = scanner . getIncludedFiles ( ) ; StringBuffer includes = new StringBuffer ( ) ; for ( int idx = 0 ; idx < files . length ; idx ++ ) { if ( idx > 0 ) { includes . append ( "," ) ; } includes . append ( files [ idx ] ) ; } try { handling . addDBDefinitionFiles ( fileSet . getDir ( getProject ( ) ) . getAbsolutePath ( ) , includes . toString ( ) ) ; } catch ( IOException ex ) { throw new BuildException ( ex ) ; } }
Adds the includes of the fileset to the handling .