You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@gump.apache.org by aj...@apache.org on 2004/07/09 20:20:36 UTC

cvs commit: gump/python/gump/build builder.py

ajack       2004/07/09 11:20:36

  Modified:    python/gump/document/xdocs xdoc.py
               python/gump/build builder.py
  Log:
  1) Attempt to use rmtree (to remove a full dir)
  2) PythonPowered
  
  Revision  Changes    Path
  1.4       +2 -2      gump/python/gump/document/xdocs/xdoc.py
  
  Index: xdoc.py
  ===================================================================
  RCS file: /home/cvs/gump/python/gump/document/xdocs/xdoc.py,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- xdoc.py	8 Jul 2004 20:33:09 -0000	1.3
  +++ xdoc.py	9 Jul 2004 18:20:36 -0000	1.4
  @@ -756,7 +756,7 @@
               self.context.writeLine(' <td><a href="%s/gump_stats/index.html">Stats</a></td><td>|</td>' % self.rootpath)  
               self.context.writeLine(' <td><a href="%s/gump_xref/index.html">XRef</a></td>' % self.rootpath) 
               
  -            self.context.writeLine(' <td colspan="3"><img align="right" src="%s/images/gump-logo.png" alt="Logo"/></td>' % self.rootpath)  
  +            self.context.writeLine(' <td colspan="3"><img align="right" src="%s/images/gump-logo.png" alt="Gump Logo"/></td>' % self.rootpath)  
               self.context.writeLine(' </tr>')  
               self.context.writeLine('</table>')  
           else: 
  @@ -779,7 +779,7 @@
               self.context.writeLine('</document>')            
           else:
               from gump.core.config import default
  -            self.context.writeLine('<p align="right">Last Updated: %s</p>' % default.datetime) 
  +            self.context.writeLine('<p align="right">Last Updated: %s.<img align="right" src="%s/images/PythonPowered.gif" alt="Python Logo"/></p>' % default.datetime) 
               self.context.writeLine('</html>')            
           self.close()                  
               
  
  
  
  1.6       +21 -1     gump/python/gump/build/builder.py
  
  Index: builder.py
  ===================================================================
  RCS file: /home/cvs/gump/python/gump/build/builder.py,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- builder.py	8 Jul 2004 20:33:09 -0000	1.5
  +++ builder.py	9 Jul 2004 18:20:36 -0000	1.6
  @@ -16,6 +16,18 @@
   # limitations under the License.
   
   """
  +	
  +	This is the main project builder for gump. 
  +	
  +	1) Pre build tasks (deleting directories/files, making directories)
  +	are performed here.
  +	
  +	2) Leveraging ant and/or maven and/or script 'assistants' the
  +	project work is done (based of 'stat's, so --debug can be set in
  +	a series of failures)
  +	
  +	3) Post build tasks (verifying jars exist, publishing to repositories,
  +	etc).
   
   """
   
  @@ -183,6 +195,13 @@
   
       def performDelete(self,project,delete,index=0):
           """ Return the delete command for a <delete entry """
  +        
  +        return
  +        
  +        # :TODO: Re-instate this some time, when can delete
  +        # non-empty directories.
  +        
  +        
           basedir=os.path.abspath(project.getModule().getWorkingDirectory() or dir.base)
       
           #
  @@ -191,7 +210,8 @@
           if delete.hasDirectory():
               dir=delete.getDirectory()
               try:
  -                os.rmdir(dir)
  +                import shutil
  +                shutil.rmtree(dir)
                   project.addInfo('Deleted directory ['+dir+']')
               except:
                   project.addError('Failed to delete directory ['+dir+']')
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org