def METHOD_NAME(build_dir):
    target_dir=os.path.join(build_dir,'target')
    allinone_jar=__find_genomicsdb_jar(target_dir,'genomicsdb-*allinone-spark.jar')
    examples_jar=__find_genomicsdb_jar(target_dir,'genomicsdb-*examples.jar')
    if 'CLASSPATH' in os.environ:
        classpath=os.environ['CLASSPATH']
    else:
        classpath=''
    if (len(classpath) > 0):
        environ["CLASSPATH"] = allinone_jar+os.pathsep+examples_jar
    else:
        environ["CLASSPATH"] = allinone_jar+os.pathsep+examples_jar+os.pathsep+classpath