Mercurial > hg > truffle
comparison mxtool/mx.py @ 15376:b3cd96f137a6
mx build: make --error-prone, --jdt and --force-javac mutually exclusive
author | Gilles Duboscq <duboscq@ssw.jku.at> |
---|---|
date | Thu, 24 Apr 2014 17:15:24 +0200 |
parents | 9693513ce95c |
children | dea98caac669 |
comparison
equal
deleted
inserted
replaced
15375:1b82cd9e72e9 | 15376:b3cd96f137a6 |
---|---|
1798 parser.add_argument('--Wapi', action='store_true', dest='warnAPI', help='show warnings about using internal APIs') | 1798 parser.add_argument('--Wapi', action='store_true', dest='warnAPI', help='show warnings about using internal APIs') |
1799 parser.add_argument('--projects', action='store', help='comma separated projects to build (omit to build all projects)') | 1799 parser.add_argument('--projects', action='store', help='comma separated projects to build (omit to build all projects)') |
1800 parser.add_argument('--only', action='store', help='comma separated projects to build, without checking their dependencies (omit to build all projects)') | 1800 parser.add_argument('--only', action='store', help='comma separated projects to build, without checking their dependencies (omit to build all projects)') |
1801 parser.add_argument('--no-java', action='store_false', dest='java', help='do not build Java projects') | 1801 parser.add_argument('--no-java', action='store_false', dest='java', help='do not build Java projects') |
1802 parser.add_argument('--no-native', action='store_false', dest='native', help='do not build native projects') | 1802 parser.add_argument('--no-native', action='store_false', dest='native', help='do not build native projects') |
1803 parser.add_argument('--force-javac', action='store_true', dest='javac', help='use javac despite ecj.jar is found or not') | |
1804 parser.add_argument('--jdt', help='path to ecj.jar, the Eclipse batch compiler (default: ' + defaultEcjPath + ')', default=defaultEcjPath, metavar='<path>') | |
1805 parser.add_argument('--jdt-warning-as-error', action='store_true', help='convert all Eclipse batch compiler warnings to errors') | 1803 parser.add_argument('--jdt-warning-as-error', action='store_true', help='convert all Eclipse batch compiler warnings to errors') |
1806 parser.add_argument('--jdt-show-task-tags', action='store_true', help='show task tags as Eclipse batch compiler warnings') | 1804 parser.add_argument('--jdt-show-task-tags', action='store_true', help='show task tags as Eclipse batch compiler warnings') |
1807 parser.add_argument('--error-prone', dest='error_prone', help='path to error-prone.jar', metavar='<path>') | 1805 compilerSelect = parser.add_mutually_exclusive_group() |
1806 compilerSelect.add_argument('--error-prone', dest='error_prone', help='path to error-prone.jar', metavar='<path>') | |
1807 compilerSelect.add_argument('--jdt', help='path to ecj.jar, the Eclipse batch compiler (default: ' + defaultEcjPath + ')', default=defaultEcjPath, metavar='<path>') | |
1808 compilerSelect.add_argument('--force-javac', action='store_true', dest='javac', help='use javac despite ecj.jar is found or not') | |
1809 | |
1808 | 1810 |
1809 if suppliedParser: | 1811 if suppliedParser: |
1810 parser.add_argument('remainder', nargs=REMAINDER, metavar='...') | 1812 parser.add_argument('remainder', nargs=REMAINDER, metavar='...') |
1811 | 1813 |
1812 args = parser.parse_args(args) | 1814 args = parser.parse_args(args) |