File source = ti.checkFile("-source");
File target = ti.maybeCreateDirectory("-target");
ti.headers = ti.preparseHeaders("-include");
DirectoryTree tree = new DirectoryTree(ti, null);
tree.walkTree(source, target, 0);
failed = ti.failed;
} catch (Exception exception) {
exception.printStackTrace();
failed = true;
}