ajack 2004/04/22 13:46:57
Modified: python/gump/core commandLine.py
python/gump/document/forrest documenter.py
Log:
1) Inform on unused commandline arguments.
2) Only copy contents for xdocs.
Revision Changes Path
1.3 +1 -1 gump/python/gump/core/commandLine.py
Index: commandLine.py
===================================================================
RCS file: /home/cvs/gump/python/gump/core/commandLine.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- commandLine.py 22 Apr 2004 20:20:48 -0000 1.2
+++ commandLine.py 22 Apr 2004 20:46:57 -0000 1.3
@@ -147,7 +147,7 @@
sys.exit(1)
for arg in self.args:
- log.debug("Command Line Argument : " + arg)
+ log.warn("Unused command line argument : " + arg)
def getArguments(self):
return self.args
1.14 +13 -3 gump/python/gump/document/forrest/documenter.py
Index: documenter.py
===================================================================
RCS file: /home/cvs/gump/python/gump/document/forrest/documenter.py,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- documenter.py 22 Apr 2004 20:20:49 -0000 1.13
+++ documenter.py 22 Apr 2004 20:46:57 -0000 1.14
@@ -246,6 +246,10 @@
forrestWorkDir=self.getForrestWorkDirectory(workspace)
logDirectory=workspace.getLogDirectory()
+
+ workContents=os.path.abspath(os.path.join(forrestWorkDir,'contents'))
+ logContents=os.path.abspath(os.path.join(logDirectory,'contents'))
+
log.info('Syncronize work->log, and clean-up...')
success=1
@@ -253,11 +257,13 @@
#
# Sync over public pages...
#
- syncDirectories(forrestWorkDir,logDirectory)
+ syncDirectories(workContents,logContents)
+
#
# Clean up
#
wipeDirectoryTree(forrestWorkDir)
+
except:
log.error('--- Failed to work->log sync and/or clean-up', exc_info=1)
success=0
@@ -578,8 +584,12 @@
project.getModule().getStats().getLastUpdated()))
notes=''
- if project.isVerbose(): notes += 'Verbose'
- if project.isDebug(): notes += 'Debug'
+ if project.isVerbose():
+ if notes: notes += ' '
+ notes += 'Verbose'
+ if project.isDebug():
+ if notes: notes += ' '
+ notes += 'Debug'
projectRow.createData(notes)
if not pcount: projectsTable.createLine('None')
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]