Changeset 1755

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

Update to use Publish().gacInstall('Cobra.Lang.dll') instead of gacutil.exe ...
Update doc string.

Files:
1 modified

Legend:

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

    r1715 r1755  
    11""" 
    22InstallFromWorkspace.cobra 
    3  
    4 WARNING: Not tested on Mono or on Mac/Linux/Unix yet. 
    53 
    64This program installs Cobra onto your system out of the workspace. It's a great 
     
    6866TODO 
    6967 
    70         [ ] Test on Mac / Mono 2.0 
    71  
    7268        [ ] Create an install log 
    7369 
     
    7874use System.Diagnostics 
    7975use System.Text.RegularExpressions 
     76 
     77# for GAC installation 
     78use System.EnterpriseServices 
     79use System.EnterpriseServices.Internal 
    8080 
    8181 
     
    104104                .verifyInWorkspace 
    105105                .locateSnapshotCompiler 
    106                 .locateGacUtil 
     106                # .locateGacUtil 
    107107                .buildCobraCompiler 
    108108                .getBaseVersion 
     
    382382        def installCobraLibraryToGAC 
    383383                .startStage('Install Cobra standard library to the GAC') 
    384  
    385                 # TODO: is there a better way to install to the GAC than running the external gacutil program? 
    386                 # TODO: if not, what's the most robust way to locate it in the file system? 
    387  
    388                 .runCommand(_gacutil, '-i Cobra.Lang.dll -f') 
    389  
    390                 output = .runCommand(_gacutil, '-l Cobra.Lang') 
    391  
    392                 if 'Cobra.Lang, Version=' not in output 
    393                         .error('Cannot see Cobra.Lang in the gacutil output to list it above.') 
    394                 # TODO: verify the version number: Cobra.Lang, Version=0.0.1.0 
    395  
     384                if false 
     385                        # use gacutil.exe 
     386                        .runCommand(_gacutil, '-i Cobra.Lang.dll -f') 
     387         
     388                        output = .runCommand(_gacutil, '-l Cobra.Lang') 
     389         
     390                        if 'Cobra.Lang, Version=' not in output 
     391                                .error('Cannot see Cobra.Lang in the gacutil output to list it above.') 
     392                        # 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.' 
    396397                print 
    397398