*
* @param installedDirectory The destination directory to copy to.
* @param removePattern The file pattern to match to locate files to copy.
*/
protected void removeGeneratedFiles(final String installedDirectory, final String removePattern) {
Delete deleteTask = (Delete) antProject.createTask("delete");
FileSet fileSet = AntUtils.createFileset(installedDirectory, removePattern, new ArrayList());
log("Removing generated files (pattern: " + removePattern + ")...");
deleteTask.addFileset(fileSet);
deleteTask.execute();
}