File dirOwn = new File("./" + c.getPackage().getName().replace('.', '/'));
FileCopy copy = new FileCopy();
dir.mkdirs();
try {
copy.copyFolder(dirOwn, dir, true, false);
} catch (IOException e1) {
GlobalVariables.getPrematureParameters().logError("Could not copy directory '" + dirOwn + "':" + e1.getMessage() + "\n" + Arrays.deepToString(e1.getStackTrace()).replace(',', '\n'));
GlobalVariables.getPrematureParameters().logInfo("Plugin export aborted due to errors.");
return;
}