1 | private String[] getFiles() {↵ | | 1 | private String[] getFiles() {↵
|
|
2 | List files = new LinkedList();↵ | | 2 | List files = new LinkedList();↵
|
3 | for ( Iterator i = fileSets.iterator(); i.hasNext(); ) {↵ | | 3 | for ( Iterator i = fileSets.iterator(); i.hasNext(); ) {↵
|
|
4 | FileSet fs = (FileSet) i.next();↵ | | 4 | FileSet fs = (FileSet) i.next();↵
|
5 | DirectoryScanner ds = fs.getDirectoryScanner( getProject() );↵ | | 5 | DirectoryScanner ds = fs.getDirectoryScanner( getProject() );↵
|
|
6 | String[] dsFiles = ds.getIncludedFiles();↵ | | 6 | String[] dsFiles = ds.getIncludedFiles();↵
|
7 | for (int j = 0; j < dsFiles.length; j++) {↵ | | 7 | for (int j = 0; j < dsFiles.length; j++) {↵
|
8 | File f = new File(dsFiles[j]);↵ | | 8 | File f = new File(dsFiles[j]);↵
|
9 | if ( !f.isFile() ) {↵ | | 9 | if ( !f.isFile() ) {↵
|
10 | f = new File( ds.getBasedir(), dsFiles[j] );↵ | | 10 | f = new File( ds.getBasedir(), dsFiles[j] );↵
|
11 | }↵ | | 11 | }↵
|
|
12 | files.add( f.getAbsolutePath() );↵ | | 12 | files.add( f.getAbsolutePath() );↵
|
13 | }↵ | | 13 | }↵
|
14 | }↵ | | 14 | }↵
|
|
15 | return ArrayHelper.toStringArray(files);↵ | | 15 | return ArrayHelper.toStringArray(files);↵
|
16 | | | 16 |
|