@task
def jar(ctx, jython_version='2.7.0', pyyaml_version='3.11', remove_dist=False):
 clean(ctx, remove_dist, create_dirs=True)
 jython_jar = get_jython_jar(jython_version)
 print('Using {0}'.format(jython_jar))
 compile_java_files(ctx, jython_jar)
 unzip_jar(jython_jar)
 copy_robot_files()
 pyaml_archive = get_pyyaml(pyyaml_version)
 extract_and_copy_pyyaml_files(pyyaml_version, pyaml_archive)
 compile_python_files(ctx, jython_jar)
 filename = create_robot_jar(ctx, get_version_from_file())
 announce()
 return os.path.abspath(filename)

@ task def jar ( ctx , jython_version = '2.7.0' , pyyaml_version = '3.11' , remove_dist = False ) : clean ( ctx , remove_dist , create_dirs = True ) jython_jar = get_jython_jar ( jython_version ) print ( 'Using {0}' . format ( jython_jar ) ) compile_java_files ( ctx , jython_jar ) unzip_jar ( jython_jar ) copy_robot_files ( ) pyaml_archive = get_pyyaml ( pyyaml_version ) extract_and_copy_pyyaml_files ( pyyaml_version , pyaml_archive ) compile_python_files ( ctx , jython_jar ) filename = create_robot_jar ( ctx , get_version_from_file ( ) ) announce ( ) return os . path . abspath ( filename )
create jar distribution .