def generate_java_test(target, source, env):
 target_name = str(target[0])
 main_class = str(source[0])
 test_jar = str(source[1])
 jars = []
 for jar in source[1:]:
  jars.append(os.path.abspath(str(jar)))
 test_class_names = _get_all_test_class_names_in_jar(test_jar)
 return _generate_java_test(target_name, main_class, jars, '', ' '.join(test_class_names), env)

def generate_java_test ( target , source , env ) : target_name = str ( target [ 0 ] ) main_class = str ( source [ 0 ] ) test_jar = str ( source [ 1 ] ) jars = [ ] for jar in source [ 1 : ] : jars . append ( os . path . abspath ( str ( jar ) ) ) test_class_names = _get_all_test_class_names_in_jar ( test_jar ) return _generate_java_test ( target_name , main_class , jars , '' , ' ' . join ( test_class_names ) , env )
build function to generate wrapper shell script for java test .