You can try using the import task, which lets you split a build file into multiple files. You can also look into property files
FileLists also support a listfile
property which is a text file with one file per line.
FileSets support the includesfile
and excludesfile
property which is a text file with a list of patterns.