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

Side by Side Diff: visual_studio/NativeClientVSAddIn/InstallerResources/install.py

Issue 11098022: Fix reporting or errors addin building and testing (Closed) Base URL: http://nativeclient-sdk.googlecode.com/svn/trunk/src
Patch Set: Created 8 years, 2 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
« no previous file with comments | « no previous file | visual_studio/NativeClientVSAddIn/buildbot_run.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """Copies necessary add-in files into place to install the add-in. 6 """Copies necessary add-in files into place to install the add-in.
7 7
8 This script will copy the necessary files for the Visual Studio add-in 8 This script will copy the necessary files for the Visual Studio add-in
9 to where Visual Studio can find them. It assumes the current directory 9 to where Visual Studio can find them. It assumes the current directory
10 contains the necessary files to copy. 10 contains the necessary files to copy.
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 if options.install_ppapi: 208 if options.install_ppapi:
209 create_ppapi_platform.CreatePPAPI(options.msbuild_path) 209 create_ppapi_platform.CreatePPAPI(options.msbuild_path)
210 print "PPAPI platform installed." 210 print "PPAPI platform installed."
211 except: 211 except:
212 print "\nException occured! Rolling back install...\n" 212 print "\nException occured! Rolling back install...\n"
213 Uninstall(nacl_directory, pepper_directory, addin_directory) 213 Uninstall(nacl_directory, pepper_directory, addin_directory)
214 raise 214 raise
215 else: 215 else:
216 print "\nInstallation complete!\n" 216 print "\nInstallation complete!\n"
217 217
218 return 0
219
218 if __name__ == '__main__': 220 if __name__ == '__main__':
221 rtn = 1
219 try: 222 try:
220 main() 223 rtn = main()
221 except InstallError as e: 224 except InstallError as e:
222 print 225 print
223 print e 226 print e
224 except shutil.Error as e: 227 except shutil.Error as e:
225 print "Error while copying file. Please ensure file is not in use." 228 print "Error while copying file. Please ensure file is not in use."
226 print e 229 print e
227 except WindowsError as e: 230 except WindowsError as e:
228 if e.winerror == 5: 231 if e.winerror == 5:
229 print "Access denied error. Please ensure Visual Studio and MSBuild" 232 print "Access denied error. Please ensure Visual Studio and MSBuild"
230 print "processes are closed." 233 print "processes are closed."
231 else: 234 else:
232 raise 235 raise
236 sys.exit(rtn)
OLDNEW
« no previous file with comments | « no previous file | visual_studio/NativeClientVSAddIn/buildbot_run.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698