ajack       2003/09/25 13:31:43

  Modified:    python/gump integrate.py check.py
  Log:
  1) Set integrate.py exit code
  2) Check/warn CLASSPATH|JAVA_HOME
  
  Revision  Changes    Path
  1.3       +4 -1      jakarta-gump/python/gump/integrate.py
  
  Index: integrate.py
  ===================================================================
  RCS file: /home/cvs/jakarta-gump/python/gump/integrate.py,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- integrate.py      25 Sep 2003 19:33:49 -0000      1.2
  +++ integrate.py      25 Sep 2003 20:31:43 -0000      1.3
  @@ -92,7 +92,10 @@
           rss(workspace,context)
   
       # Return an exit code based off success
  -    result = stateOk(context.status) ? 0 : 1
  +    if stateOk(context.status):
  +        result = 0 
  +    else: 
  +        result = 1
   
   # static void main()
   if __name__=='__main__':
  
  
  
  1.20      +13 -5     jakarta-gump/python/gump/check.py
  
  Index: check.py
  ===================================================================
  RCS file: /home/cvs/jakarta-gump/python/gump/check.py,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- check.py  23 Sep 2003 23:16:20 -0000      1.19
  +++ check.py  25 Sep 2003 20:31:43 -0000      1.20
  @@ -111,10 +111,18 @@
       
       
       #        Envs:
  -    #        JAVA_HOME for bootstrap any?
  +    #        JAVA_HOME for bootstrap ant?
  +    #        CLASSPATH
       #        FORREST_HOME?
       
  -    checkEnvVariable(workspace, context, 'JAVA_HOME',exitOnError)
  +    if not checkEnvVariable(workspace, context, 'JAVA_HOME',0):    
  +        context.noJavaHome=1    
  +        context.addWarning('JAVA_HOME environmental variable not found. Might not 
be needed.')
  +                
  +    if not checkEnvVariable(workspace, context, 'CLASSPATH',0):    
  +        context.noClasspath=1    
  +        context.addWarning('CLASSPATH environmental variable not found. Might not 
be needed.')
  +                
       if not checkEnvVariable(workspace, context, 'FORREST_HOME',0): 
           context.noForrest=1
           context.addWarning('FORREST_HOME environmental variable not found, no xdoc 
output')
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to