@Override
public void execute() throws BuildException {
validateParameters();
FileConfiguration configuration = new FileConfiguration(projectFile);
ClassLoader threadContextClassLoader = Thread.currentThread().getContextClassLoader();
try {
// need to set context class loader so that cayenne can find jdbc driver and
// PasswordEncoder
Thread.currentThread().setContextClassLoader(getClass().getClassLoader());
configuration.initialize();
}
catch (Exception ex) {
throw new BuildException("Error loading Cayenne configuration from "
+ projectFile, ex);
} finally {