Changeset 1756

Show
Ignore:
Timestamp:
11/09/08 15:56:44 (2 months ago)
Author:
Chuck.Esterbrook
Message:

Attempt to use gacutil.exe if Publish().gacInstall throws NotImplementedException?.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • cobra/trunk/Source/InstallFromWorkspace.cobra

    r1755 r1756  
    285285                assert 'Usage' in output 
    286286 
    287         def locateGacUtil 
    288                 .startStage('Locate gacutil.exe') 
     287        def locateGacUtil(startStage as bool) 
     288                if startStage, .startStage('Locate gacutil.exe') 
    289289                slash = .slash 
    290290                gacutil = 'gacutil' 
     
    382382        def installCobraLibraryToGAC 
    383383                .startStage('Install Cobra standard library to the GAC') 
    384                 if false 
    385                         # use gacutil.exe 
     384                print 'Invoking Publish.GacInstall...' 
     385                try 
     386                        Publish().gacInstall('Cobra.Lang.dll') 
     387                        print 'Done.' 
     388                catch NotImplementedException 
     389                        print 'Not implemented exception.' 
     390                        print 'Will attempt to use gacutil.exe.' 
     391                        .locateGacUtil(false) 
    386392                        .runCommand(_gacutil, '-i Cobra.Lang.dll -f') 
    387          
    388393                        output = .runCommand(_gacutil, '-l Cobra.Lang') 
    389          
    390394                        if 'Cobra.Lang, Version=' not in output 
    391395                                .error('Cannot see Cobra.Lang in the gacutil output to list it above.') 
    392396                        # TODO: verify the version number: Cobra.Lang, Version=0.0.1.0 
    393                 else 
    394                         print 'Invoking Publish.GacInstall...' 
    395                         Publish().gacInstall('Cobra.Lang.dll') 
    396                         print 'Done.' 
    397397                print 
    398398