}
builder.build(DrillConfig.create(), args[0]);
}
private void build(DrillConfig config, String targetSrcDir) {
FunctionConverter converter = new FunctionConverter();
Set<Class<? extends DrillFunc>> providerClasses = PathScanner.scanForImplementations(DrillFunc.class, config.getStringList(ExecConstants.FUNCTION_PACKAGES));
int count = 0;
for (Class<? extends DrillFunc> clazz : providerClasses) {
try {
DrillFuncHolder holder = converter.getHolder(clazz);
if (holder != null && holder instanceof DrillSimpleFuncHolder) {
InterpreterGenerator generator = new InterpreterGenerator((DrillSimpleFuncHolder)holder, clazz.getSimpleName() + InterpreterGenerator.INTERPRETER_CLASSNAME_POSTFIX, targetSrcDir);
generator.build();
count ++;