# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-import fnmatch
import optparse
import os
import sys
# the output.
if os.path.exists(options.output_path):
os.remove(options.output_path)
- proguard_cmd = [options.proguard_path,
+ proguard_cmd = ['java', '-jar',
+ options.proguard_path,
'-injars', injars,
'-outjars', outjars,
'-libraryjars', libraryjars,
build_utils.CheckOutput(proguard_cmd, print_stdout=True)
-def main(argv):
+def main():
parser = optparse.OptionParser()
parser.add_option('--proguard-path',
help='Path to the proguard executable.')
parser.add_option('--classpath', help="Classpath for proguard.")
parser.add_option('--stamp', help='Path to touch on success.')
- # TODO(newt): remove this once http://crbug.com/177552 is fixed in ninja.
- parser.add_option('--ignore', help='Ignored.')
-
options, _ = parser.parse_args()
DoProguard(options)
if __name__ == '__main__':
- sys.exit(main(sys.argv))
+ sys.exit(main())