comparison mxtool/mx.py @ 5239:b9db4fee6eb2

skip a native build if all files in src and make are older than the timestamp of the previous build
author Doug Simon <doug.simon@oracle.com>
date Fri, 13 Apr 2012 15:26:08 +0200
parents ddccd4abdb09
children 1a9a048386d6
comparison
equal deleted inserted replaced
5238:cce31bc56c00 5239:b9db4fee6eb2
1039 javaCompliance = java().javaCompliance 1039 javaCompliance = java().javaCompliance
1040 1040
1041 defaultEcjPath = join(_mainSuite.dir, 'mx', 'ecj.jar') 1041 defaultEcjPath = join(_mainSuite.dir, 'mx', 'ecj.jar')
1042 1042
1043 parser = parser if parser is not None else ArgumentParser(prog='mx build') 1043 parser = parser if parser is not None else ArgumentParser(prog='mx build')
1044 parser.add_argument('-f', action='store_true', dest='force', help='force compilation even if class files are up to date') 1044 parser.add_argument('-f', action='store_true', dest='force', help='force build (disables timestamp checking)')
1045 parser.add_argument('-c', action='store_true', dest='clean', help='removes existing build output') 1045 parser.add_argument('-c', action='store_true', dest='clean', help='removes existing build output')
1046 parser.add_argument('--source', dest='compliance', help='Java compliance level', default=str(javaCompliance)) 1046 parser.add_argument('--source', dest='compliance', help='Java compliance level', default=str(javaCompliance))
1047 parser.add_argument('--Wapi', action='store_true', dest='warnAPI', help='show warnings about using internal APIs') 1047 parser.add_argument('--Wapi', action='store_true', dest='warnAPI', help='show warnings about using internal APIs')
1048 parser.add_argument('--projects', action='store', help='comma separated projects to build (omit to build all projects)') 1048 parser.add_argument('--projects', action='store', help='comma separated projects to build (omit to build all projects)')
1049 parser.add_argument('--no-java', action='store_false', dest='java', help='do not build Java projects') 1049 parser.add_argument('--no-java', action='store_false', dest='java', help='do not build Java projects')