String[] allFiles = getPath().list();
for (String file : allFiles) {
String toAdd = translateFilePathUsingPrefix(file, prefix);
log("Adding " + toAdd, Project.MSG_VERBOSE);
gitAdd.addFilepattern(toAdd);
}
gitAdd.call();
} catch (Exception e) {
throw new BuildException("Could not add files to index." + src, e);
}