From everything I looked at, it seemed that the only way to capture this information at build time is to write your own java program that calls the Flex compiler classes. There are actually a few different ways to do it, but the method I went with was based on the report example starting on page 10 of the following pdf:
http://blogs.adobe.com/flexdoc/files/flexdoc/oem/oem_guide.pdf
All I was interested in knowing was the file dependencies for the build, so that I could link these to source versions in version control. For that I reason, I left out the Definitions, Dependencies, and Prerequisites sections of the referenced example. The basic idea is to construct a flex2.tools.oem.Application object, run the "build" method on it, and then use the getReport method to get all the gory details of the compilation. Here is a simplified version of what my solution code looked like:
File file = new File ("C:/MyFlexApp/main.mxml");
File outputFile = new File("C:/MyFlexApp/bin/Foo.swf");
Application application = new Application(file);
application.setOutput(outputFile);
Configuration config = application.getDefaultConfiguration();
File[] libFile = new File[] {new File("C:/MyFlexApp/bin/baz.swc")};
config.addLibraryPath(libFile);
application.setConfiguration(config);
application.build(true);
report = application.getReport();
Message[] m = report.getMessages();
if (m != null)
{
for (int i=0; i<m.length; i++)
{
System.out.println(m[i].getLevel().toUpperCase() +
" MESSAGE " + i + ": " + m[i]);
}
}
// Lists the image files that are embedded.
System.out.println("\n\nEMBEDDED ASSETS: ");
String[] assetnames = report.getAssetNames(Report.COMPILER);
if (assetnames != null)
{
for (int i=0; i<assetnames.length; i++)
{
System.out.println(assetnames[i]);
}
}
// Lists the libraries that are used.
System.out.println("\nLIBRARIES: ");
String[] compilerLibs = report.getLibraryNames(Report.COMPILER);
if (compilerLibs != null)
{
for (int i=0; i<compilerLibs.length; i++)
{
System.out.println(compilerLibs[i]);
}
}
System.out.println("\nSOURCE NAMES: ");
String[] src = report.getSourceNames(Report.COMPILER);
if (src != null)
{
for (int i=0; i<src.length; i++) {
// Lists source files.
System.out.println(src[i]);
}
}
Thanks to Shaun for all the help that led me to this solution.