copier.addOrRemoveDirectory(workspaceRoot, baseDir, "/", add);
VersionControlIgnoresManager ignoresManager = versionControlIgnoresManager.get();
if (ignoresManager != null) {
List<String> ignoredEntries = new LinkedList<String>();
ignoredEntries.add(ignoresManager.sanitiseGitIgnoreGlob(true, "/.gradle/", true));
ignoredEntries.add(ignoresManager.sanitiseGitIgnoreGlob(true, "/reports/", true));
ignoredEntries.add(ignoresManager.sanitiseGitIgnoreGlob(true, Workspace.getDefaults().getProperty(Constants.DEFAULT_PROP_TARGET_DIR), true));
ignoresManager.addIgnores(enabledIgnorePlugins, workspaceRoot, ignoredEntries);
}