You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@gump.apache.org by Nick Chalko <ni...@chalko.com> on 2003/03/14 18:31:01 UTC

How do I turn on ant -debug from GUMP

What is the best way to turn on ant -debug  for a particular project in 
Gump?


Adam Jack wrote:

>I do not see this in the archives, any clues?
>
>	Caught exception (java.lang.NullPointerException) while expanding
>lib.fileset.export.jars: null
>	Caught exception (java.lang.NullPointerException) while expanding
>lib.fileset.export.supplied: null
>
>Can I get gump to run centipede with -debug?
>
>regards
>
>Adam
>
>----------------------------------------------------------------
>
>Buildfile: centibuild.xml
>  [taskdef] dropping /homelocal/build/gump-ws/TrySybase/build/classes from
>path as it doesn't exist
>[centipede] Initializing Centipede...
>[centipede] ...Centipede started.
>[centipede] Building project Named:  trysybase
>[centipede] Dependency sequence for project `trysybase' is
>     [echo]
>     [echo]               * ===================================== *
>     [echo]               |   Krysalis Centipede Build System     |
>     [echo]               * ===================================== *
>     [echo]
>
>[echo]     --------------------------------------------------------------
>     [echo]
>     [echo]       Using Apache Ant version 1.6alpha compiled on March 14
>2003
>     [echo]       Build file
>/homelocal/build/gump-ws/TrySybase/centibuild.xml
>     [echo]       Centipede dir /homelocal/build/gump-ws/krysalis-centipede
>     [echo]       Build number 0
>     [echo]       Project Name version
>     [echo]       Java Version 1.4
>     [echo]       Timestamp 200303140843
>     [echo]
>
>[echo]     --------------------------------------------------------------
>     [echo]
>  [taskdef] dropping /homelocal/build/gump-ws/TrySybase/build/classes from
>path as it doesn't exist
>  [typedef] dropping /homelocal/build/gump-ws/TrySybase/build/classes from
>path as it doesn't exist
>  [taskdef] dropping /homelocal/build/gump-ws/TrySybase/build/classes from
>path as it doesn't exist
>  [typedef] dropping /homelocal/build/gump-ws/TrySybase/build/classes from
>path as it doesn't exist
>    [mkdir] Created dir: /homelocal/build/gump-ws/TrySybase/build/work/temp
>    [mkdir] Created dir: /homelocal/build/gump-ws/TrySybase/dist
>     [echo] Unix OS found. Gui features disabled.
>     [echo]
>     [echo]                 =====================================
>     [echo]                    building  trysybase
>     [echo]                 =====================================
>     [echo]
>     [echo]
>    [style] Processing /homelocal/build/gump-ws/TrySybase/module.xml to
>/homelocal/build/gump-ws/TrySybase/build/work/temp/trysybase.getdepend.xml
>    [style] Loading stylesheet
>/homelocal/build/gump-ws/krysalis-centipede/src/core/getdepend.xsl
>     [null] Created dir:
>/homelocal/build/gump-ws/TrySybase/build/trysybase/work/java
>     [null] Created dir:
>/homelocal/build/gump-ws/TrySybase/build/trysybase/work/checkstyle
>     [null] Created dir:
>/homelocal/build/gump-ws/TrySybase/build/trysybase/forrest
>     [null] Created dir:
>/homelocal/build/gump-ws/TrySybase/build/trysybase/work/forrest
>     [null] Created dir:
>/homelocal/build/gump-ws/TrySybase/build/trysybase/gump
>     [null] Created dir:
>/homelocal/build/gump-ws/TrySybase/build/trysybase/work/gump
>     [null] Created dir:
>/homelocal/build/gump-ws/TrySybase/build/trysybase/junit
>Caught exception (java.lang.NullPointerException) while expanding
>lib.fileset.export.jars: null
>Caught exception (java.lang.NullPointerException) while expanding
>lib.fileset.export.supplied: null
>
>gump:
>
>BUILD SUCCESSFUL
>Total time: 40 seconds
>
>--
><http://www.TrySybase.com>
>Experience Sybase Technology ...
>
>
>
>-------------------------------------------------------
>This SF.net email is sponsored by:Crypto Challenge is now open! 
>Get cracking and register here for some mind boggling fun and 
>the chance of winning an Apple iPod:
>http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
>_______________________________________________
>Krysalis-developers mailing list
>Krysalis-developers@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/krysalis-developers
>  
>


-- 
Nick Chalko                                         Show me the code.
                          Centipede
  Ant + autodownloadable build plugins + needed jars autodownload.
              http://krysalis.org/centipede
---------------------------------------------------------------------



RE: How do I turn on ant -debug from GUMP

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

	I'm not sure what you are trying to accomplish.  Adding -debug on the
	build of an individual project should give you the information you need?
	  Or do you want to add -debug on the run of a project on every
	subsequent run (i.e., have this option be added on every regen).

I am simply trying to figure out why is crashes when run over night w/
"build.sh all" but succeeds when run as "build.sh trysybase" (with or
without debug, via cronjob or not).

	The only difference should be the number of environment variables set
	(all sets more), and whether the output is redirected from stdout to a
	html file.

It (centipede?) gives a NPE when processing some variable processing, so
maybe that is it somehow. I've been blaming my environment (I just set up
this box and haven't used my bash environment too much) but it seems to work
in all cases by build.sh all -- so maybe a mixture of both...

regards

Adam


Re: How do I turn on ant -debug from GUMP

Posted by Sam Ruby <ru...@apache.org>.
Adam Jack wrote:
> Sam Ruby wrote:
> 
> 	Instead of "build.sh all", try "build.sh project -debug", where you
> 	substitute the name of the project you are trying to build.  This will
> 	run interactively (no web pages produced).  You can actually specify any
> 	ant options on the command line, including targets and -D defines.
> 
> I get a crash when I run build.sh all in a cronjob. Annoyingly I did this,
> that you suggested, and it worked. I tried it alone as a cronjob, and it
> worked. So -- I have to try to debug the "build.sh all".
> 
> BTW: In case it wasn't obvious to you, I was mistaken in thinking this
> turned on ant debug. I set -Ddebug=true but that didn't do the trick.
> 
> 	<property name="debug" value="true"/>
> 
> So, do I just do the gen and then hack the build.sh to add -debug? Any other
> way I can set it on for the individual project?

I'm not sure what you are trying to accomplish.  Adding -debug on the 
build of an individual project should give you the information you need? 
  Or do you want to add -debug on the run of a project on every 
subsequent run (i.e., have this option be added on every regen).

> I suspect that there is very little difference between a build.sh all and a
> build.sh my-project -- apparently something is. Any guesses? Any guesses
> from this error message?

The only difference should be the number of environment variables set 
(all sets more), and whether the output is redirected from stdout to a 
html file.

- Sam Ruby



RE: How do I turn on ant -debug from GUMP

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

	Instead of "build.sh all", try "build.sh project -debug", where you
	substitute the name of the project you are trying to build.  This will
	run interactively (no web pages produced).  You can actually specify any
	ant options on the command line, including targets and -D defines.

I get a crash when I run build.sh all in a cronjob. Annoyingly I did this,
that you suggested, and it worked. I tried it alone as a cronjob, and it
worked. So -- I have to try to debug the "build.sh all".

BTW: In case it wasn't obvious to you, I was mistaken in thinking this
turned on ant debug. I set -Ddebug=true but that didn't do the trick.

	<property name="debug" value="true"/>

So, do I just do the gen and then hack the build.sh to add -debug? Any other
way I can set it on for the individual project?

I suspect that there is very little difference between a build.sh all and a
build.sh my-project -- apparently something is. Any guesses? Any guesses
from this error message?

Thanks in advance.

regards

Adam

...
...
...

     [null] Created dir:
/homelocal/build/gump-ws/TrySybase/build/trysybase/work/java
     [null] Created dir:
/homelocal/build/gump-ws/TrySybase/build/trysybase/work/checkstyle
     [null] Created dir:
/homelocal/build/gump-ws/TrySybase/build/trysybase/forrest
     [null] Created dir:
/homelocal/build/gump-ws/TrySybase/build/trysybase/work/forrest
     [null] Created dir:
/homelocal/build/gump-ws/TrySybase/build/trysybase/gump
     [null] Created dir:
/homelocal/build/gump-ws/TrySybase/build/trysybase/work/gump
     [null] Created dir:
/homelocal/build/gump-ws/TrySybase/build/trysybase/junit
Caught exception (java.lang.NullPointerException) while expanding
lib.fileset.export.jars: null
Caught exception (java.lang.NullPointerException) while expanding
lib.fileset.export.supplied: null


Re: How do I turn on ant -debug from GUMP

Posted by Sam Ruby <ru...@apache.org>.
Nick Chalko wrote:
> What is the best way to turn on ant -debug  for a particular project in 
> Gump?

Instead of "build.sh all", try "build.sh project -debug", where you 
substitute the name of the project you are trying to build.  This will 
run interactively (no web pages produced).  You can actually specify any 
ant options on the command line, including targets and -D defines.

- Sam Ruby



RE: How do I turn on ant -debug from GUMP

Posted by Adam Jack <aj...@TrySybase.com>.
Not sure it is "best", but I found this seems to do the job:

	<property name="debug" value="true"/>

as in:

<ant basedir="." buildfile="centibuild.xml" target="gump" vm="1.2">
       	<property name="ant.home" project="krysalis-centipede"
reference="home">
	<property name="debug" value="true"/>
</ant>

regards

Adam
-----Original Message-----
From: krysalis-developers-admin@lists.sourceforge.net
[mailto:krysalis-developers-admin@lists.sourceforge.net]On Behalf Of
Nick Chalko
Sent: Friday, March 14, 2003 10:31 AM
To: krysalis-developers@lists.sourceforge.net; Gump code and data
Subject: How do I turn on ant -debug from GUMP


What is the best way to turn on ant -debug  for a particular project in
Gump?


Adam Jack wrote:

>I do not see this in the archives, any clues?
>
>	Caught exception (java.lang.NullPointerException) while expanding
>lib.fileset.export.jars: null
>	Caught exception (java.lang.NullPointerException) while expanding
>lib.fileset.export.supplied: null
>
>Can I get gump to run centipede with -debug?
>
>regards
>
>Adam
>
>----------------------------------------------------------------
>
>Buildfile: centibuild.xml
>  [taskdef] dropping /homelocal/build/gump-ws/TrySybase/build/classes from
>path as it doesn't exist
>[centipede] Initializing Centipede...
>[centipede] ...Centipede started.
>[centipede] Building project Named:  trysybase
>[centipede] Dependency sequence for project `trysybase' is
>     [echo]
>     [echo]               * ===================================== *
>     [echo]               |   Krysalis Centipede Build System     |
>     [echo]               * ===================================== *
>     [echo]
>
>[echo]     --------------------------------------------------------------
>     [echo]
>     [echo]       Using Apache Ant version 1.6alpha compiled on March 14
>2003
>     [echo]       Build file
>/homelocal/build/gump-ws/TrySybase/centibuild.xml
>     [echo]       Centipede dir /homelocal/build/gump-ws/krysalis-centipede
>     [echo]       Build number 0
>     [echo]       Project Name version
>     [echo]       Java Version 1.4
>     [echo]       Timestamp 200303140843
>     [echo]
>
>[echo]     --------------------------------------------------------------
>     [echo]
>  [taskdef] dropping /homelocal/build/gump-ws/TrySybase/build/classes from
>path as it doesn't exist
>  [typedef] dropping /homelocal/build/gump-ws/TrySybase/build/classes from
>path as it doesn't exist
>  [taskdef] dropping /homelocal/build/gump-ws/TrySybase/build/classes from
>path as it doesn't exist
>  [typedef] dropping /homelocal/build/gump-ws/TrySybase/build/classes from
>path as it doesn't exist
>    [mkdir] Created dir: /homelocal/build/gump-ws/TrySybase/build/work/temp
>    [mkdir] Created dir: /homelocal/build/gump-ws/TrySybase/dist
>     [echo] Unix OS found. Gui features disabled.
>     [echo]
>     [echo]                 =====================================
>     [echo]                    building  trysybase
>     [echo]                 =====================================
>     [echo]
>     [echo]
>    [style] Processing /homelocal/build/gump-ws/TrySybase/module.xml to
>/homelocal/build/gump-ws/TrySybase/build/work/temp/trysybase.getdepend.xml
>    [style] Loading stylesheet
>/homelocal/build/gump-ws/krysalis-centipede/src/core/getdepend.xsl
>     [null] Created dir:
>/homelocal/build/gump-ws/TrySybase/build/trysybase/work/java
>     [null] Created dir:
>/homelocal/build/gump-ws/TrySybase/build/trysybase/work/checkstyle
>     [null] Created dir:
>/homelocal/build/gump-ws/TrySybase/build/trysybase/forrest
>     [null] Created dir:
>/homelocal/build/gump-ws/TrySybase/build/trysybase/work/forrest
>     [null] Created dir:
>/homelocal/build/gump-ws/TrySybase/build/trysybase/gump
>     [null] Created dir:
>/homelocal/build/gump-ws/TrySybase/build/trysybase/work/gump
>     [null] Created dir:
>/homelocal/build/gump-ws/TrySybase/build/trysybase/junit
>Caught exception (java.lang.NullPointerException) while expanding
>lib.fileset.export.jars: null
>Caught exception (java.lang.NullPointerException) while expanding
>lib.fileset.export.supplied: null
>
>gump:
>
>BUILD SUCCESSFUL
>Total time: 40 seconds
>
>--
><http://www.TrySybase.com>
>Experience Sybase Technology ...
>
>
>
>-------------------------------------------------------
>This SF.net email is sponsored by:Crypto Challenge is now open!
>Get cracking and register here for some mind boggling fun and
>the chance of winning an Apple iPod:
>http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
>_______________________________________________
>Krysalis-developers mailing list
>Krysalis-developers@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/krysalis-developers
>
>


--
Nick Chalko                                         Show me the code.
                          Centipede
  Ant + autodownloadable build plugins + needed jars autodownload.
              http://krysalis.org/centipede
---------------------------------------------------------------------




-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open!
Get cracking and register here for some mind boggling fun and
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
_______________________________________________
Krysalis-developers mailing list
Krysalis-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/krysalis-developers