Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(112)

Side by Side Diff: editor/build/build.py

Issue 11973012: Rev the version of apache ant in third_party to 1.8.4. This will fix an issue with (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # 2 #
3 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 3 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
4 # for details. All rights reserved. Use of this source code is governed by a 4 # for details. All rights reserved. Use of this source code is governed by a
5 # BSD-style license that can be found in the LICENSE file. 5 # BSD-style license that can be found in the LICENSE file.
6 6
7 import glob 7 import glob
8 import optparse 8 import optparse
9 import os 9 import os
10 import re 10 import re
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 print 'Script pathname not known, giving up.' 206 print 'Script pathname not known, giving up.'
207 return 1 207 return 1
208 208
209 scriptdir = os.path.abspath(os.path.dirname(sys.argv[0])) 209 scriptdir = os.path.abspath(os.path.dirname(sys.argv[0]))
210 editorpath = os.path.abspath(os.path.join(scriptdir, '..')) 210 editorpath = os.path.abspath(os.path.join(scriptdir, '..'))
211 thirdpartypath = os.path.abspath(os.path.join(scriptdir, '..', '..', 211 thirdpartypath = os.path.abspath(os.path.join(scriptdir, '..', '..',
212 'third_party')) 212 'third_party'))
213 toolspath = os.path.abspath(os.path.join(scriptdir, '..', '..', 213 toolspath = os.path.abspath(os.path.join(scriptdir, '..', '..',
214 'tools')) 214 'tools'))
215 dartpath = os.path.abspath(os.path.join(scriptdir, '..', '..')) 215 dartpath = os.path.abspath(os.path.join(scriptdir, '..', '..'))
216 antpath = os.path.join(thirdpartypath, 'apache_ant', 'v1_7_1') 216 antpath = os.path.join(thirdpartypath, 'apache_ant', '1.8.4')
217 bzip2libpath = os.path.join(thirdpartypath, 'bzip2') 217 bzip2libpath = os.path.join(thirdpartypath, 'bzip2')
218 buildpath = os.path.join(editorpath, 'tools', 'features', 218 buildpath = os.path.join(editorpath, 'tools', 'features',
219 'com.google.dart.tools.deploy.feature_releng') 219 'com.google.dart.tools.deploy.feature_releng')
220 utils = GetUtils(toolspath) 220 utils = GetUtils(toolspath)
221 buildos = utils.GuessOS() 221 buildos = utils.GuessOS()
222 222
223 BUILD_OS = utils.GuessOS() 223 BUILD_OS = utils.GuessOS()
224 DART_PATH = dartpath 224 DART_PATH = dartpath
225 TOOLS_PATH = toolspath 225 TOOLS_PATH = toolspath
226 226
(...skipping 831 matching lines...) Expand 10 before | Expand all | Expand 10 after
1058 """delete the given file - do not re-throw any exceptions that occur""" 1058 """delete the given file - do not re-throw any exceptions that occur"""
1059 if os.path.exists(f): 1059 if os.path.exists(f):
1060 try: 1060 try:
1061 os.remove(f) 1061 os.remove(f)
1062 except OSError: 1062 except OSError:
1063 print 'error deleting %s' % f 1063 print 'error deleting %s' % f
1064 1064
1065 1065
1066 if __name__ == '__main__': 1066 if __name__ == '__main__':
1067 sys.exit(main()) 1067 sys.exit(main())
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698