3318. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 6/9/2017 3:50:04 PM Eastern Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

3318.1 Files compared

# Location File Last Modified
1 Fri Jun 9 19:50:04 2017 UTC
2 eHealth_Exch (eHealth Exchange Enhancements) Build 3 docs & code_May_2017.zip\VAP_CIF_CODE0502.zip\VAP_CIF_CODE0502\VAP_CIF_CODE0502\nvap-env\src\main\python deployapp.py Fri Apr 21 20:03:26 2017 UTC

3318.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 0 0
Changed 0 0
Inserted 1 90
Removed 0 0

3318.3 Comparison options

Whitespace
Character case Differences in character case are significant
Line endings Differences in line endings (CR and LF characters) are ignored
CR/LF characters Not shown in the comparison detail

3318.4 Active regular expressions

No regular expressions were active.

3318.5 Comparison detail

        1   import sys
        2   import os
        3   from util  import par ams
        4   from util  import dom ainconfig
        5   from util. propertyhe lp import  PropertyHe lper
        6  
        7   print "[WL ST] ------ ---------- ---------- ---------- ---------- ---------- ---------- ------"
        8   print "[WL ST] "
        9   print "[WL ST] Deploy ing Applic ation to W eblogic"
        10   print "[WL ST] "
        11  
        12   try:
        13       print  "[WLST] -- ---------- ---------- ---------- ---------- ---------- ---------- ---------- "
        14       print  "[WLST] "
        15       print  "[WLST] Lo ading Scri pt Paramet ers"
        16       print  "[WLST] "
        17       
        18       script Params = p arams.getS criptParam eters(sys. argv)
        19       propHe lp = Prope rtyHelper( scriptPara ms['props. file'])
        20       attrs  = propHelp .getAdminS erverAttri butes()
        21       domain Directory  = propHelp .getDomain sDirectory (propHelp. getAdminSe rverAttrib utes()['ma chine']) +  "/" + dom ainName
        22  
        23       print  "[WLST] -- ---------- ---------- ---------- ---------- ---------- ---------- ---------- "
        24       print  "[WLST] "
        25       print  "[WLST] Co nnecting t o Admin Se rver"
        26       print  "[WLST] "
        27       
        28       # Read  Admin Ser ver Attrib utes
        29       adminA ttributes  = propHelp .getAdminS erverAttri butes()
        30       
        31       # Conn ect to Adm in Server
        32       try :
        33           co nnect(admi nAttribute s['usernam e'], admin Attributes ['password '], adminA ttributes[ 'url'])
        34       except  :
        35           pr int "[WLST ] -------- ---------- ---------- ---------- ---------- ---------- ---------- ----"
        36           pr int "[WLST ] "
        37           pr int "[WLST ] Error co nnecting t o " + doma inName + "  Domain Ad min Server  at URL "  + adminAtt ributes['u rl']
        38           pr int "[WLST ] "
        39           pr int "[WLST ] -------- ---------- ---------- ---------- ---------- ---------- ---------- ----"
        40           du mpVariable s()
        41           du mpStack()
        42           sy s.exit(-1)
        43       
        44       # If c onnected,  deploy app lication.
        45       if( co nnected ==  "true") :
        46           ap pName          = scri ptParams[' appName']
        47   #        a ppPackage       = scr iptParams[ 'appPackag e']
        48   #        a ppVersion       = scr iptParams[ 'appVersio n']
        49   #        a ppType          = scr iptParams[ 'appType']
        50   #        a ppTargets       = scr iptParams[ 'appTarget s']
        51   #        a ppPath = o s.getenv(' M2_REPO')  + "/" + ap pPackage +  "/"  + ap pName + "/ "  + appVe rsion  + " /"  + appN ame  + "-"   + appVer sion  + ". "  + appTy pe
        52  
        53           ap pInfo = pr opHelp.get Applicatio nInfo(appN ame)
        54           if (appInfo.g et('versio n') != Non e) : 
        55                appName  = appName  + '#' + ap pInfo['ver sion']
        56           if (appInfo.g et('versio nSpec') !=  None) :
        57                appName  = appName  + '@' + ap pInfo['ver sionSpec']
        58           
        59           pr int "[WLST ] -------- ---------- ---------- ---------- ---------- ---------- ---------- ----"
        60           pr int "[WLST ] "
        61           pr int "[WLST ] Deployin g the " +  appName +  " Enterpri se Applica tion."
        62           pr int "[WLST ]    - App lication L ocation: "  + appInfo ['path']
        63           pr int "[WLST ]    - App lication T arget Serv ers: " + a ppInfo['ta rgets']
        64           pr int "[WLST ] "
        65           
        66           #  Deploy the  new versi on of the  applicatio n
        67           de ploy(appNa me, appInf o['path'],  appInfo[' targets'],  securityM odel=appIn fo.get('se curityMode l', 'DDOnl y'), libra ryModule=a ppInfo.get ('libraryM odule', 'f alse'), bl ock=appInf o.get('blo ck', 'true '), upload ='true')
        68  
        69           #  Start the  applicatio n
        70           if (appInfo.g et('librar yModule',  'false') ! = 'true')  :
        71                startApp lication(a ppName)
        72           
        73           di sconnect()
        74       
        75   except :
        76       print  "[WLST] -- ---------- ---------- ---------- ---------- ---------- ---------- ---------- "
        77       print  "[WLST] "
        78       print  "[WLST] Un expected E rror Occur red: ",  s ys.exc_inf o()[1]
        79       print  "[WLST] ",  sys.exc_i nfo()
        80       print  "[WLST] "
        81       print  "[WLST] -- ---------- ---------- ---------- ---------- ---------- ---------- ---------- "
        82       dumpSt ack()
        83       dumpVa riables()
        84       sys.ex it(-1)
        85  
        86   print "[WL ST] ------ ---------- ---------- ---------- ---------- ---------- ---------- ------"
        87   print "[WL ST] "
        88   print "[WL ST] Finish ed Applica tion Deplo yment"
        89   print "[WL ST] "
        90   print "[WL ST] ------ ---------- ---------- ---------- ---------- ---------- ---------- ------"