You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@gump.apache.org by bo...@apache.org on 2004/02/03 08:57:45 UTC

cvs commit: jakarta-gump/project mockobjects.xml

bodewig     2004/02/02 23:57:45

  Modified:    profile  gump.xml
               project  mockobjects.xml
  Log:
  Add an installed package for mockobjects as the dev community of
  mockobjects isn't interested in Gump building its CVS HEAD - and
  strangely doesn't care that CVS HEAD doesn't even compile.
  
  Still try to build CVS HEAD but don't nag the mockobjects dev team so
  that interested parties can judge the stability of the project.
  
  Revision  Changes    Path
  1.300     +1 -0      jakarta-gump/profile/gump.xml
  
  Index: gump.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-gump/profile/gump.xml,v
  retrieving revision 1.299
  retrieving revision 1.300
  diff -u -r1.299 -r1.300
  --- gump.xml	2 Feb 2004 11:21:18 -0000	1.299
  +++ gump.xml	3 Feb 2004 07:57:45 -0000	1.300
  @@ -275,6 +275,7 @@
     <!--project name="jts"              package="jts1_0"/-->
     <project name="ldap"             package="ldap-1_2_4"/>
     <project name="nekohtml"         package="nekohtml-0.8.2"/>
  +  <project name="mockobjects"      package="mockobjects-0.09"/>
     <project name="msv"              package="msv-20020414"/>
     <project name="multipartrequest" package="MultipartRequest-1.30b4"/>
     <project name="relaxng"          package="relaxngDatatype-1.0"/>
  
  
  
  1.15      +20 -13    jakarta-gump/project/mockobjects.xml
  
  Index: mockobjects.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-gump/project/mockobjects.xml,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- mockobjects.xml	26 Aug 2003 13:25:06 -0000	1.14
  +++ mockobjects.xml	3 Feb 2004 07:57:45 -0000	1.15
  @@ -8,7 +8,7 @@
     <cvs repository="sourceforge" host-prefix="cvs.mockobjects" 
          dir="mockobjects" module="mockobjects-java"/>
   
  -  <project name="mockobjects">
  +  <project name="mockobjects-cvs-head">
       <package>com.mockobjects</package>
       <mkdir dir="out/core/classes"/>
       <mkdir dir="out/jdk/classes"/>
  @@ -28,12 +28,9 @@
       <jar name="mockobjects-core-@@DATE@@.jar" id="core"/>
       <jar name="mockobjects-jdk1.4-@@DATE@@.jar" id="jdk"/>
       <jar name="mockobjects-alt-jdk1.4-@@DATE@@.jar" id="alt-jdk"/>
  -
  -    <nag from="Jeff Martin&lt;jeff@custommonkey.org&gt;"
  -      to="mockobjects-java-dev@lists.sourceforge.net"/>
     </project>
   
  -  <project name="mockobjects-j2ee-13">
  +  <project name="mockobjects-j2ee-13-cvs-head">
       <package>com.mockobjects</package>
       <!-- clean up earlier build -->
       <delete dir="out/j2ee/classes"/>
  @@ -46,7 +43,7 @@
       <depend project="ant" inherit="runtime"/>
       <depend project="xml-xerces"/>
       <depend project="junit" runtime="true"/>
  -    <depend project="mockobjects" runtime="true"/>
  +    <depend project="mockobjects-cvs-head" runtime="true"/>
   
       <!-- mocked parts of J2EE -->
       <depend project="jaf"/>
  @@ -60,12 +57,9 @@
       <home nested="out"/>
       <jar name="mockobjects-jdk1.4-j2ee1.3-@@DATE@@.jar" id="j2ee"/>
       <jar name="mockobjects-alt-jdk1.4-j2ee1.3-@@DATE@@.jar" id="alt-j2ee"/>
  -
  -    <nag from="Jeff Martin&lt;jeff@custommonkey.org&gt;"
  -      to="mockobjects-java-dev@lists.sourceforge.net"/>
     </project>
   
  -  <project name="mockobjects-j2ee-14">
  +  <project name="mockobjects-j2ee-14-cvs-head">
       <package>com.mockobjects</package>
       <!-- clean up earlier build -->
       <delete dir="out/j2ee/classes"/>
  @@ -78,7 +72,7 @@
       <depend project="ant" inherit="runtime"/>
       <depend project="xml-xerces"/>
       <depend project="junit" runtime="true"/>
  -    <depend project="mockobjects" runtime="true"/>
  +    <depend project="mockobjects-cvs-head" runtime="true"/>
   
       <!-- mocked parts of J2EE -->
       <depend project="jaf"/>
  @@ -93,9 +87,22 @@
       <home nested="out"/>
       <jar name="mockobjects-jdk1.4-j2ee1.4-@@DATE@@.jar" id="j2ee"/>
       <jar name="mockobjects-alt-jdk1.4-j2ee1.4-@@DATE@@.jar" id="alt-j2ee"/>
  +  </project>
   
  -    <nag from="Jeff Martin&lt;jeff@custommonkey.org&gt;"
  -      to="mockobjects-java-dev@lists.sourceforge.net"/>
  +  <project name="mockobjects">
  +    <jar name="mockobjects-core-0.09.jar" id="core"/>
  +    <jar name="mockobjects-jdk1.4-0.09.jar" id="jdk"/>
  +    <jar name="mockobjects-alt-jdk1.4-0.09.jar" id="alt-jdk"/>
  +  </project>
  +
  +  <project name="mockobjects-j2ee-13">
  +    <jar name="mockobjects-jdk1.4-j2ee1.3-0.09.jar" id="j2ee"/>
  +    <jar name="mockobjects-alt-jdk1.4-j2ee1.3-0.09.jar" id="alt-j2ee"/>
  +  </project>
  +
  +  <project name="mockobjects-j2ee-14">
  +    <jar name="mockobjects-jdk1.4-j2ee1.4-0.09.jar" id="j2ee"/>
  +    <jar name="mockobjects-alt-jdk1.4-j2ee1.4-0.09.jar" id="alt-j2ee"/>
     </project>
   
   </module>
  
  
  

Re: cvs commit: jakarta-gump/project mockobjects.xml

Posted by Antoine Lévy-Lambert <an...@antbuild.com>.
Stefan Bodewig wrote:

>This commit makes mockobjects.xml describe buildable projects and
>installed packages in a single file.  It seems to work for traditional
>Gump but as this is not something we've tried before, it may break in
>Gumpy.  If so, I'll be happy to split it.
>
>I ought to get Gumpy running on my machine sooner rather than later,
>but right now I seem to be stuck with some missing Python prereqs and
>don't have the time to investigate further.
>
>Stefan
>
>
>  
>
Hi Stefan,

your change worked. :-)

Cheers,

Antoine

Re: cvs commit: jakarta-gump/project mockobjects.xml

Posted by Stefan Bodewig <bo...@apache.org>.
On Mon, 9 Feb 2004, Adam R. B. Jack <aj...@trysybase.com> wrote:

>> ERROR:gump:Command failed. [javac -help ]. ExitCode: 2
>> 
>> this is exactly what "javac -help" returns for JDK 1.3 (java full
>> version "1.3.1_07-b02") on Linux.  JDK 1.4.2's javac returns 0.
>>
> I think I made this a warning, not an error now.

fresh CVS update

ERROR:gump:Command failed. [javac -help ]. ExitCode: 2
ERROR:gump:Failed to detect [javac]

and later

 Unable to detect/test mandatory [javac] in path (see next).
  /home/bodewig/ASF/jakarta/jakarta-gump
  /home/bodewig/ASF/jakarta/jakarta-gump/python/gump
  /home/bodewig/ASF/jakarta/jakarta-gump/python
  /usr/lib/python2.2
  /usr/lib/python2.2/plat-linux2
  /usr/lib/python2.2/lib-dynload
  /usr/lib/python2.2/site-packages

which probably echoes PYTHONPATH but not PATH.

Stefan

Re: cvs commit: jakarta-gump/project mockobjects.xml

Posted by "Adam R. B. Jack" <aj...@trysybase.com>.
> ERROR:gump:Command failed. [javac -help ]. ExitCode: 2
> 
> this is exactly what "javac -help" returns for JDK 1.3 (java full
> version "1.3.1_07-b02") on Linux.  JDK 1.4.2's javac returns 0.
>

I think I made this a warning, not an error now.

regards

Adam

Re: cvs commit: jakarta-gump/project mockobjects.xml

Posted by Stefan Bodewig <bo...@apache.org>.
On Wed, 4 Feb 2004, Adam Jack <aj...@trysybase.com> wrote:
>>
>> If I pick ant, python starts to hog my CPU and finally (about two
>> minutes later) says
>>
> Hog? You mean use enthusiastically, no? ;-)

As enthusiastically as gen.sh during the merge part, just longer 8-)

Xerces-J may be a bit faster than the Python XML parser.

> Looking at the code, this means the workspace has a module with an
> SVN entry, but without a 'repository' attribute?

Yes, it has.  Fixed and I get a whole lot further.

Gumpy now complains about me not providing enough information about my
environment (like FORREST_HOME not being set).  Maybe it should check
for them before it parses the workspace, that way I'd know that I need
to provide more data a lot earlier.

I'll look into setting it up sometime next week.

BTW, along the lines is 

ERROR:gump:Command failed. [javac -help ]. ExitCode: 2

this is exactly what "javac -help" returns for JDK 1.3 (java full
version "1.3.1_07-b02") on Linux.  JDK 1.4.2's javac returns 0.

Stefan

Re: cvs commit: jakarta-gump/project mockobjects.xml

Posted by Adam Jack <aj...@TrySybase.com>.
>
> If I pick ant, python starts to hog my CPU and finally (about two
> minutes later) says
>
Hog? You mean use enthusiastically, no? ;-)

>     self.addError('No such repository in w/s ['+ repoName +'] on [' \
> TypeError: cannot concatenate 'str' and 'NoneType' objects

Every unexercised line of Python is a potential bomb, my beef w/ this
language. :(

Looking at the code, this means the workspace has a module with an SVN
entry, but without a 'repository' attribute? I should've patched this to not
crash, but not sure why this is failing.

Give it a shot for me sometime, please.

regards,

Adam


Re: cvs commit: jakarta-gump/project mockobjects.xml

Posted by Stefan Bodewig <bo...@apache.org>.
On Wed, 4 Feb 2004, Adam Jack <aj...@trysybase.com> wrote:
> Stefan wrote:
> 
> 
>> This commit makes mockobjects.xml describe buildable projects and
>> installed packages in a single file.  It seems to work for
>> traditional Gump but as this is not something we've tried before,
>> it may break in Gumpy.  If so, I'll be happy to split it.
> 
> Or, if it is a useful feature, just explain it to me.
> 
> I swear you are coding Gumpy, just in english and I translate. ;-)

Once upon a time I'll find time to switch to Python.  Let's hope your
Python skills are better than my English skills ;-)

Inside the profile I've defined

  <project name="mockobjects"      package="mockobjects-0.09"/>

And inside the mockobjects.xml file this has turned the mockobjects
project into an installed package.  This project definition doesn't
have an <ant> element either.  I now realize that I should have done
the same for the j2ee projects in mockobjects.xml, will do so.

The existing projects have been renamed by appending -cvs-head but
left in the same module definition.

Now, traditional Gump considers "mockobjects" an installed package and
locates it properly - it seems that Gumpy does the same.  Unlike Gumpy
"traditional" doesn't assume the same for all projects in the
mockobjects module, it still tries to build the -cvs-head projects.

Hope this is clearer.

>> I ought to get Gumpy running on my machine sooner rather than
>> later,
> 
> I'd appreciate that. I forget which OS you use on your PC, but I
> beleive it isn't a M$ one. Could you refresh my memory?

The machine running my Gump installation is a Intel Linux system based
RedHat 7.3 - I'll likely have to switch to a different Linux distro
sooner or later.

I have Python 1.5.2 as /usr/bin/python and Python 2.2 as
/usr/bin/python2.

> It ought work with just setting the PYTHONPATH to ../gump/python and
> running (in python) python gump/integrate.py -w ../gump/xml.

[bodewig@bodewig python]$ pwd
/home/bodewig/ASF/jakarta/jakarta-gump/python
[bodewig@bodewig python]$ PYTHONPATH=. python2 gump/integrate.py -w ../bodewig.xml

asks me to specify a project (or all).

If I pick ant, python starts to hog my CPU and finally (about two
minutes later) says 

Traceback (most recent call last):
  File "gump/integrate.py", line 45, in ?
    workspace=WorkspaceLoader().load(ws)
  File "/home/bodewig/ASF/jakarta/jakarta-gump/python/gump/model/loader.py", line 121, in load
    XMLServer.map)
  File "/home/bodewig/ASF/jakarta/jakarta-gump/python/gump/model/workspace.py", line 348, in complete
    module.complete(self)
  File "/home/bodewig/ASF/jakarta/jakarta-gump/python/gump/model/module.py", line 337, in complete
    self.addError('No such repository in w/s ['+ repoName +'] on [' \
TypeError: cannot concatenate 'str' and 'NoneType' objects


Stefan

Re: cvs commit: jakarta-gump/project mockobjects.xml

Posted by Adam Jack <aj...@TrySybase.com>.
Stefan wrote:


> This commit makes mockobjects.xml describe buildable projects and
> installed packages in a single file.  It seems to work for traditional
> Gump but as this is not something we've tried before, it may break in
> Gumpy.  If so, I'll be happy to split it.

Or, if it is a useful feature, just explain it to me.

I swear you are coding Gumpy, just in english and I translate. ;-)

> I ought to get Gumpy running on my machine sooner rather than later,

I'd appreciate that. I forget which OS you use on your PC, but I beleive it
isn't a M$ one. Could you refresh my memory?

> but right now I seem to be stuck with some missing Python prereqs and
> don't have the time to investigate further.

I have moved (locally) to Python 2.3 (activestate) but I don't recall there
being any unbundled Python package dependencies (other than the GUI
framework.) The logging package is attached (although bundled in 2.3 so I
might remove it soon). It ought work with just setting the PYTHONPATH to
../gump/python and running (in python) python gump/integrate.py -w
../gump/xml.

Please post the problems you seeing here...

regards,

Adam


Re: cvs commit: jakarta-gump/project mockobjects.xml

Posted by Stefan Bodewig <bo...@apache.org>.
This commit makes mockobjects.xml describe buildable projects and
installed packages in a single file.  It seems to work for traditional
Gump but as this is not something we've tried before, it may break in
Gumpy.  If so, I'll be happy to split it.

I ought to get Gumpy running on my machine sooner rather than later,
but right now I seem to be stuck with some missing Python prereqs and
don't have the time to investigate further.

Stefan