Or you can just do it manually:
* first create the configuration
* then call AuditConfiguration.getFor(configuration);
* finally do the schema export
Did you find out why the .addConfiguredFileSet doesn't work?
We have to invoke configure() after involking addConfiguredFileSet(). But we can't do this, because we need to invoke getConfiguration() to get the configuration, and getConfiguration() do this:
cfg = createConfiguration();
cfg.buildMappings(); // needed otherwise not all assocations are made!
at this time, cfg is null, but we have no configuration files.
If we invoke configure() right after this, to use the configuration files, cfg is not null, so, doConfiguration is not called anymore.