Author: None
Date: Sun Aug 1 17:30:58 2004
New Revision: 35552
Added:
gump/trunk/bin/build.py
gump/trunk/bin/check.py
gump/trunk/bin/env.py
gump/trunk/bin/integrate.py
gump/trunk/bin/preview.py
gump/trunk/bin/redo.py
gump/trunk/bin/update.py
gump/trunk/cron/
gump/trunk/cron/gumpy.bat
- copied unchanged from rev 35545, gump/trunk/gumpy.bat
gump/trunk/cron/gumpy.py
- copied unchanged from rev 35545, gump/trunk/gumpy.py
gump/trunk/cron/gumpy.sh
- copied unchanged from rev 35545, gump/trunk/gumpy.sh
gump/trunk/test/
gump/trunk/test/gumpytest.bat
- copied unchanged from rev 35545, gump/trunk/gumpytest.bat
gump/trunk/test/gumpytest.sh
- copied unchanged from rev 35545, gump/trunk/gumpytest.sh
Removed:
gump/trunk/desktop.ini
gump/trunk/findproject.sh
gump/trunk/forrest-targets.ent
gump/trunk/forrest.properties
gump/trunk/gen.bat
gump/trunk/gen.sh
gump/trunk/global-workspace.xml
gump/trunk/gump.sh
gump/trunk/gump.xml
gump/trunk/gumpy.bat
gump/trunk/gumpy.py
gump/trunk/gumpy.sh
gump/trunk/gumpytest.bat
gump/trunk/gumpytest.sh
gump/trunk/minimal-workspace.xml
gump/trunk/nag.pl
gump/trunk/python/gump/build.py
gump/trunk/python/gump/check.py
gump/trunk/python/gump/env.py
gump/trunk/python/gump/integrate.py
gump/trunk/python/gump/preview.py
gump/trunk/python/gump/redo.py
gump/trunk/python/gump/update.py
gump/trunk/test-workspace.xml
Log:
More removal of TRADIONAL+METADATA
More re-org.
Added: gump/trunk/bin/build.py
==============================================================================
--- (empty file)
+++ gump/trunk/bin/build.py Sun Aug 1 17:30:58 2004
@@ -0,0 +1,73 @@
+#!/usr/bin/python
+
+# Copyright 2003-2004 The Apache Software Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
+"""
+ This is one commandline entrypoint into gump.
+
+ The workspace is metadata loaded then various
+ projects are built. No source control updates
+ are performed.
+
+"""
+
+import os.path
+import sys
+
+from gump import log
+from gump.core.gumpinit import gumpinit
+import gump.run.gumprun
+import gump.run.options
+from gump.core.commandLine import handleArgv
+from gump.runner.runner import getRunner
+from gump.loader.loader import WorkspaceLoader
+
+
+###############################################################################
+# Functions
+###############################################################################
+
+# static void main()
+if __name__=='__main__':
+ gumpinit()
+
+ # Process command line
+ (args,options) = handleArgv(sys.argv)
+ ws=args[0]
+ ps=args[1]
+
+ # get parsed workspace definition
+ workspace=WorkspaceLoader(options.isCache()).load(ws)
+
+ # Ensure we use text, not xdocs...
+ options.setText(True)
+
+ #
+ options.setObjectives(gump.run.options.OBJECTIVE_BUILD)
+
+ # The Run Details...
+ run=gump.run.gumprun.GumpRun(workspace,ps,options)
+
+ #
+ # Perform this integration run...
+ #
+ result = getRunner(run).perform()
+
+ #
+ log.info('Gump Build complete. Exit code:' + str(result))
+
+ # bye!
+ sys.exit(result)
\ No newline at end of file
Added: gump/trunk/bin/check.py
==============================================================================
--- (empty file)
+++ gump/trunk/bin/check.py Sun Aug 1 17:30:58 2004
@@ -0,0 +1,73 @@
+#!/usr/bin/python
+
+# Copyright 2003-2004 The Apache Software Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+"""
+ Checks that the Gump definitions are ok.
+
+ The workspace is loaded into memory, rudimentary
+ checks occur, and the output tree is documented
+ (e.g. via forrest).
+
+"""
+
+import os.path
+import sys
+
+from gump import log
+from gump.core.gumpinit import gumpinit
+from gump.runner.runner import getRunner
+import gump.run.options
+import gump.run.gumprun
+from gump.core.commandLine import handleArgv
+from gump.loader.loader import WorkspaceLoader
+
+def crun():
+ gumpinit()
+
+ # Process command line
+ (args,options) = handleArgv(sys.argv)
+ ws=args[0]
+ ps=args[1]
+
+ # get parsed workspace definition
+ workspace=WorkspaceLoader(options.isQuick()).load(ws)
+
+ #
+ options.setObjectives(gump.run.options.OBJECTIVE_CHECK)
+
+ # The Run Details...
+ run=gump.run.gumprun.GumpRun(workspace,ps,options)
+
+ #
+ # Perform this check run...
+ #
+ result = getRunner(run).perform()
+
+ #
+ log.info('Gump Check complete. Exit code:' + str(result))
+
+ # bye!
+ sys.exit(result)
+
+
+# static void main()
+if __name__=='__main__':
+
+ #print 'Profiling....'
+ #import profile
+ #profile.run('crun()', 'iprof')
+ crun()
+
\ No newline at end of file
Added: gump/trunk/bin/env.py
==============================================================================
--- (empty file)
+++ gump/trunk/bin/env.py Sun Aug 1 17:30:58 2004
@@ -0,0 +1,50 @@
+#!/usr/bin/python
+
+# Copyright 2003-2004 The Apache Software Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+"""
+ Checks that the Gump Environment is ok.
+"""
+
+import os.path
+import sys
+
+from gump import log
+from gump.core.gumpinit import gumpinit
+from gump.run.gumpenv import GumpEnvironment
+from gump.core.commandLine import handleArgv
+
+# static void main()
+if __name__=='__main__':
+ gumpinit()
+
+ # Process command line
+ (args,options) = handleArgv(sys.argv)
+ ws=args[0]
+ ps=args[1]
+
+
+ #
+ # Perform this check run...
+ #
+ result = 1
+
+ GumpEnvironment().checkEnvironment(True)
+
+ #
+ log.info('Gump Environment Check complete. Exit code:' + str(result))
+
+ # bye!
+ sys.exit(result)
\ No newline at end of file
Added: gump/trunk/bin/integrate.py
==============================================================================
--- (empty file)
+++ gump/trunk/bin/integrate.py Sun Aug 1 17:30:58 2004
@@ -0,0 +1,103 @@
+#!/usr/bin/env python
+
+# Copyright 2003-2004 The Apache Software Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+#
+# $Header: /home/stefano/cvs/gump/python/gump/integrate.py,v 1.31 2004/07/19 16:07:53
ajack Exp $
+#
+
+"""
+ This is the main commandline entrypoint into gump.
+
+ It updates modules/projects, builds, and publishes results
+
+"""
+
+import os.path
+import os
+import sys
+
+from gump import log
+from gump.core.gumpinit import gumpinit
+from gump.runner.runner import getRunner
+import gump.run.options
+import gump.run.gumprun
+from gump.core.commandLine import handleArgv
+from gump.utils import logResourceUtilization
+from gump.loader.loader import WorkspaceLoader
+
+
+###############################################################################
+# Initialize
+###############################################################################
+
+###############################################################################
+# Functions
+###############################################################################
+
+def ignoreHangup(signum):
+ pass
+
+def irun():
+
+ gumpinit()
+
+ # Process command line
+ (args,options) = handleArgv(sys.argv)
+ ws=args[0]
+ ps=args[1]
+
+ logResourceUtilization('Before load workspace')
+
+ # get parsed workspace definition
+ workspace=WorkspaceLoader(False).load(ws)
+
+ logResourceUtilization('Before create run')
+
+ # Has to be absolute latest descriptors, not quick/cached...
+ options.setQuick(False)
+ options.setCache(False)
+
+ #
+ options.setObjectives(gump.run.options.OBJECTIVE_INTEGRATE)
+
+ # The Run Details...
+ run=gump.run.gumprun.GumpRun(workspace,ps,options)
+
+ # Perform this integration run...
+ result = getRunner(run).perform()
+
+ logResourceUtilization('Before exit')
+
+ #
+ log.info('Gump Integration complete. Exit code [0=SUCCESS] : ' + str(result))
+
+ # bye!
+ sys.exit(result)
+
+# static void main()
+if __name__=='__main__':
+
+ # Set the signal handler to ignore hangups
+ try:
+ # Not supported by all OSs
+ signal.signal(signal.SIG_HUP, ignoreHangup)
+ except:
+ pass
+
+ #print 'Profiling....'
+ #import profile
+ #profile.run('irun()', 'iprof')
+ irun()
Added: gump/trunk/bin/preview.py
==============================================================================
--- (empty file)
+++ gump/trunk/bin/preview.py Sun Aug 1 17:30:58 2004
@@ -0,0 +1,131 @@
+#!/usr/bin/env python
+
+# Copyright 2003-2004 The Apache Software Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+#
+# $Header: /home/stefano/cvs/gump/python/gump/preview.py,v 1.9 2004/07/28 15:50:29
ajack Exp $
+#
+
+"""
+ This is one commandline entrypoint into Gump.
+
+ It loads the workspace, then updates the specified modules.
+
+"""
+
+import os.path
+import os
+import sys
+import logging
+
+from gump import log
+from gump.core.gumpinit import gumpinit
+from gump.run.gumprun import GumpRun
+from gump.run.gumpset import GumpSet
+from gump.run.options import GumpRunOptions
+from gump.core.commandLine import handleArgv
+from gump.loader.loader import WorkspaceLoader
+
+from gump.utils.note import Annotatable
+
+from gump.runner.runner import getRunner
+
+###############################################################################
+# Initialize
+###############################################################################
+
+SEPARATOR='-------------------------------------------------------------'
+
+###############################################################################
+# Functions
+###############################################################################
+
+def prun():
+ gumpinit()
+
+ # Process command line
+ (args,options) = handleArgv(sys.argv)
+ ws=args[0]
+ ps=args[1]
+
+ result=0
+
+ # get parsed workspace definition
+ workspace=WorkspaceLoader(options.isCache()).load(ws)
+
+ # The Run Details...
+ run=GumpRun(workspace,ps,options)
+ run.dump()
+
+ debug=run.getOptions().isDebug()
+ verbose=run.getOptions().isVerbose()
+
+ # :TODO: Show the environment
+
+ if verbose:
+ # Show the workings
+ runner=getRunner(run)
+
+ #
+ updater=runner.getUpdater()
+ builder=runner.getBuilder()
+ languageHelper=runner.getJavaHelper()
+
+ for module in run.getGumpSet().getModules():
+ print SEPARATOR
+ print `module`
+ if debug:
+ print module.getXml()
+ module.dump()
+ if module.isUpdatable():
+ updater.preview(module)
+
+ for project in run.getGumpSet().getProjects():
+ print SEPARATOR
+ print `project`
+ if debug:
+ print project.getXml()
+ project.dump()
+ if project.hasBuilder():
+ builder.preview(project, languageHelper)
+
+ # Show any nasties...
+ if workspace.containsNasties():
+ print SEPARATOR
+ print `workspace`
+ Annotatable.dump(workspace)
+ for module in run.getGumpSet().getModules():
+ if module.containsNasties():
+ print SEPARATOR
+ print `module`
+ Annotatable.dump(module)
+ for project in run.getGumpSet().getProjects():
+ if project.containsNasties():
+ print SEPARATOR
+ print `project`
+ Annotatable.dump(project)
+
+ # bye!
+ sys.exit(result)
+
+
+# static void main()
+if __name__=='__main__':
+
+ #print 'Profiling....'
+ #import profile
+ #profile.run('prun()', 'iprof')
+ prun()
+
\ No newline at end of file
Added: gump/trunk/bin/redo.py
==============================================================================
--- (empty file)
+++ gump/trunk/bin/redo.py Sun Aug 1 17:30:58 2004
@@ -0,0 +1,76 @@
+#!/usr/bin/python
+
+
+# Copyright 2003-2004 The Apache Software Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+"""
+ This is one commandline entrypoint into Gump.
+
+ It loads the workspace, then updates the specified modules.
+
+"""
+
+import os.path
+import sys
+import logging
+
+from gump import log
+from gump.core.gumpinit import gumpinit
+from gump.runner.runner import getRunner
+from gump.run.gumprun import *
+from gump.core.commandLine import handleArgv
+from gump.loader.loader import WorkspaceLoader
+
+
+###############################################################################
+# Initialize
+###############################################################################
+
+
+###############################################################################
+# Functions
+###############################################################################
+
+# static void main()
+if __name__=='__main__':
+ gumpinit()
+
+ # Process command line
+ (args,options) = handleArgv(sys.argv)
+ ws=args[0]
+ ps=args[1]
+
+ # get parsed workspace definition
+ workspace=WorkspaceLoader(options.isCache()).load(ws)
+
+ # Ensure we use text, not xdocs...
+ options.setText(True)
+
+ #
+ options.setObjectives(OBJECTIVE_REDO)
+
+ # The Run Details...
+ run=GumpRun(workspace,ps,options)
+
+ #
+ # Perform this integration run...
+ #
+ result = getRunner(run).run()
+
+ #
+ log.info('Gump Debug complete. Exit code:' + str(result))
+
+ # bye!
+ sys.exit(result)
\ No newline at end of file
Added: gump/trunk/bin/update.py
==============================================================================
--- (empty file)
+++ gump/trunk/bin/update.py Sun Aug 1 17:30:58 2004
@@ -0,0 +1,82 @@
+#!/usr/bin/env python
+
+# Copyright 2003-2004 The Apache Software Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+#
+# $Header: /home/stefano/cvs/gump/python/gump/update.py,v 1.31 2004/07/19 16:07:53
ajack Exp $
+#
+
+"""
+ This is one commandline entrypoint into Gump.
+
+ It loads the workspace, then updates the specified modules.
+
+"""
+
+import os.path
+import os
+import sys
+import logging
+
+from gump import log
+from gump.core.gumpinit import gumpinit
+from gump.runner.runner import getRunner
+import gump.run.options
+from gump.run.gumprun import *
+from gump.core.commandLine import handleArgv
+from gump.loader.loader import WorkspaceLoader
+
+
+###############################################################################
+# Initialize
+###############################################################################
+
+
+###############################################################################
+# Functions
+###############################################################################
+
+# static void main()
+if __name__=='__main__':
+
+ gumpinit()
+
+ # Process command line
+ (args,options) = handleArgv(sys.argv)
+ ws=args[0]
+ ps=args[1]
+
+ # get parsed workspace definition
+ workspace=WorkspaceLoader(options.isCache()).load(ws)
+
+ # Ensure we use text, not xdocs...
+ options.setText(True)
+
+ #
+ options.setObjectives(gump.run.options.OBJECTIVE_UPDATE)
+
+ # The Run Details...
+ run=GumpRun(workspace,ps,options)
+
+ #
+ # Perform this integration run...
+ #
+ result = getRunner(run).perform()
+
+ #
+ log.info('Gump Update complete. Exit code:' + str(result))
+
+ # bye!
+ sys.exit(result)
\ No newline at end of file
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]