Mercurial > hg > truffle
comparison mx/commands.py @ 7299:57edf6b07d36
Removed ANT_JAR_TOOL dependency. Eclipse jar builds are now calling the command 'mx jar ${projectName}'.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Wed, 02 Jan 2013 18:52:33 +0100 |
parents | a748e4d44694 |
children | dd903cdfe708 |
comparison
equal
deleted
inserted
replaced
7298:4d6d84714c17 | 7299:57edf6b07d36 |
---|---|
1073 out = args[0] | 1073 out = args[0] |
1074 elif len(args) > 1: | 1074 elif len(args) > 1: |
1075 mx.abort('jacocoreport takes only one argument : an output directory') | 1075 mx.abort('jacocoreport takes only one argument : an output directory') |
1076 mx.run_java(['-jar', jacocoreport.get_path(True), '-in', 'jacoco.exec', '-g', join(_graal_home, 'graal'), out]) | 1076 mx.run_java(['-jar', jacocoreport.get_path(True), '-in', 'jacoco.exec', '-g', join(_graal_home, 'graal'), out]) |
1077 | 1077 |
1078 def jar(args): | |
1079 parser = ArgumentParser(prog='mx jar'); | |
1080 parser.add_argument('projects', nargs=REMAINDER, metavar='projects...') | |
1081 args = parser.parse_args(args) | |
1082 | |
1083 if not args.projects: | |
1084 mx.abort('Please specify at least one project to jar.') | |
1085 | |
1086 for pname in args.projects: | |
1087 p = mx.project(pname, fatalIfMissing=True) | |
1088 outputDir = p.output_dir() | |
1089 targetJar = join(p.dir, p.name + '.jar') | |
1090 mx.jar(targetJar, [outputDir]) | |
1091 | |
1078 def site(args): | 1092 def site(args): |
1079 """create a website containing javadoc and the project dependency graph""" | 1093 """create a website containing javadoc and the project dependency graph""" |
1080 | 1094 |
1081 return mx.site(['--name', 'Graal', | 1095 return mx.site(['--name', 'Graal', |
1082 '--jd', '@-tag', '--jd', '@test:X', | 1096 '--jd', '@-tag', '--jd', '@test:X', |
1099 'igv' : [igv, ''], | 1113 'igv' : [igv, ''], |
1100 'jdkhome': [jdkhome, ''], | 1114 'jdkhome': [jdkhome, ''], |
1101 'dacapo': [dacapo, '[[n] benchmark] [VM options|@DaCapo options]'], | 1115 'dacapo': [dacapo, '[[n] benchmark] [VM options|@DaCapo options]'], |
1102 'scaladacapo': [scaladacapo, '[[n] benchmark] [VM options|@Scala DaCapo options]'], | 1116 'scaladacapo': [scaladacapo, '[[n] benchmark] [VM options|@Scala DaCapo options]'], |
1103 'specjvm2008': [specjvm2008, '[VM options|@specjvm2008 options]'], | 1117 'specjvm2008': [specjvm2008, '[VM options|@specjvm2008 options]'], |
1118 'jar': [jar, '[-options]'], | |
1104 #'example': [example, '[-v] example names...'], | 1119 #'example': [example, '[-v] example names...'], |
1105 'gate' : [gate, '[-options]'], | 1120 'gate' : [gate, '[-options]'], |
1106 'gv' : [gv, ''], | 1121 'gv' : [gv, ''], |
1107 'bench' : [bench, '[-resultfile file] [all(default)|dacapo|specjvm2008|bootstrap]'], | 1122 'bench' : [bench, '[-resultfile file] [all(default)|dacapo|specjvm2008|bootstrap]'], |
1108 'unittest' : [unittest, '[filters...]'], | 1123 'unittest' : [unittest, '[filters...]'], |