def compile_java_files(ctx, jython_jar, build_dir='build'):
    root = Path('src/java/org/robotframework')
    files = [str(path) for path in root.iterdir() if (path.suffix == '.java')]
    print(f'Compiling {len(files)} Java files.')
    ctx.run(f"javac -d {build_dir} -target 1.7 -source 1.7 -cp {jython_jar} {' '.join(files)}")
def compile_java_files(ctx, jython_jar, build_dir='build'):
    root = Path('src/java/org/robotframework')
    files = [str(path) for path in root.iterdir() if (path.suffix == '.java')]
    print(f'Compiling {len(files)} Java files.')
    ctx.run(f"javac -d {build_dir} -target 1.7 -source 1.7 -cp {jython_jar} {' '.join(files)}")