ajack       2004/02/09 14:00:55

  Modified:    python/gump engine.py
               python/gump/model project.py
  Log:
  Show the Maven properties file.
  
  Revision  Changes    Path
  1.53      +8 -1      jakarta-gump/python/gump/engine.py
  
  Index: engine.py
  ===================================================================
  RCS file: /home/cvs/jakarta-gump/python/gump/engine.py,v
  retrieving revision 1.52
  retrieving revision 1.53
  diff -u -r1.52 -r1.53
  --- engine.py 5 Feb 2004 05:43:56 -0000       1.52
  +++ engine.py 9 Feb 2004 22:00:55 -0000       1.53
  @@ -497,7 +497,14 @@
           # Maven requires a build.properties to be generated...
           if project.okToPerformWork() and project.hasMaven():
               try:
  -                project.generateMavenProperties()
  +                propertiesFile=project.generateMavenProperties()                    
            
  +                project.addInfo('Maven Properties in: ' + propertiesFile)
  +                
  +                try:
  +                    catFileAsWork(project,propertiesFile)
  +                except:
  +                    log.error('Display Properties [ ' + propertiesFile + '] 
Failed', exc_info=1)   
  +                
               except:
                   log.error('GenerateMavenProperties Failed', exc_info=1)    
                   project.changeState(STATE_FAILED,REASON_PREBUILD_FAILED)
  
  
  
  1.34      +6 -4      jakarta-gump/python/gump/model/project.py
  
  Index: project.py
  ===================================================================
  RCS file: /home/cvs/jakarta-gump/python/gump/model/project.py,v
  retrieving revision 1.33
  retrieving revision 1.34
  diff -u -r1.33 -r1.34
  --- project.py        9 Feb 2004 20:19:52 -0000       1.33
  +++ project.py        9 Feb 2004 22:00:55 -0000       1.34
  @@ -937,6 +937,7 @@
           """)
           
           (classpath,bootclasspath)=self.getClasspathLists()
  +        
           # :TODO: write...
           for annotatedPath in classpath.getPathParts():
               if isinstance(annotatedPath,AnnotatedPath):
  @@ -944,7 +945,8 @@
                   path=annotatedPath.getPath()
                   props.write(('maven.jar.%s=%s\n') % (id,path))
   
  -
  +        return propertiesFile
  +        
       def getScriptCommand(self):
           """ Return the command object for a <script entry """
           script=self.xml.script 
  
  
  

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

Reply via email to