You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@gump.apache.org by Raphael Philipe Mendes da Silva <rs...@cpqd.com.br> on 2004/05/24 21:05:10 UTC
Sending mails and reports
I'm trying to integrate maven with gump. I am using one script for each project in my workspace to do the builds with maven. The gump called correctly the builds scripts, but when I forces the build to result in error, it simple ignores it and signalize that the build was sucessful, Like this:
C:\temp\workspace>gmp build
INFO:gump:Use text (not forrest).
INFO:gump:Perform task [preprocess]
INFO:gump:Perform task [loadStatistics]
INFO:gump:*New* Statistics Database:c:\sys\gump\work\stats.db
INFO:gump:Perform task [build]
INFO:gump: Project: #[1] of [1] : menu
Project [menu] State: Success
- Error:Unable to complete project.home for: menu
- Error:Found a <jar with no name...
- Info:Enable "verbose" output, due to 0 previous error(s).
Work [1] [6] secs.
Work : Success
Work Name : buildscript_menu_menu
Work Cmd : c:\temp\workspace\menu\build.bat
Work Cwd : c:\temp\workspace\menu
Work Env : CLASSPATH : ;c:\temp\workspace\menu\target\classes Work Exit : 0
---------------------------------------------------------------- GUMP
c:\temp\workspace\tmp\buildscript_menu_menu.txt
c:\temp\workspace\menu>maven build -d c:\temp\workspace\menu
__ __
| \/ |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \ ~ intelligent projects ~
|_| |_\__,_|\_/\___|_||_| v. 1.0-rc3
build:start:
build:
java:prepare-filesystem:
java:compile:
[echo] Compiling to c:\temp\workspace\menu/target/classes
[javac] Compiling 1 source file to C:\temp\workspace\menu\target\classes
C:\temp\workspace\menu\implementacao\src\java\com\cpqd\util\presentation\menu\MenuDefinition.java:4: ';' expected
import java.util.Collections;
^
1 error
BUILD FAILED
File...... C:\Documents and Settings\rsilva\.maven\plugins\maven-java-plugin-1.4\plugin.jelly
Element... ant:javac
Line...... 53
Column.... 48
Compile failed; see the compiler error output for details.
Total time: 5 seconds
Finished at: Mon May 24 14:45:50 BRT 2004
---------------------------------------------------------------- GUMP
INFO:gump:Perform task [prepareDocumentation]
INFO:gump:Perform task [gatherResults]
INFO:gump:Perform task [updateStatistics]
INFO:gump:*New* Statistics Database:c:\sys\gump\work\stats.db
INFO:gump:Perform task [document]
Workspace State : Success
Workspace Secs : 6
Gump Environment
Modules: 1
Module [menu] State: Unset
Projects: 1
Project [menu] State: Success
- Error:Unable to complete project.home for: menu
- Error:Found a <jar with no name...
- Info:Enable "verbose" output, due to 0 previous error(s).
Work [1] [6] secs.
Work : Success
Work Name : buildscript_menu_menu
Work Cmd : c:\temp\workspace\menu\build.bat
Work Cwd : c:\temp\workspace\menu
Work Env : CLASSPATH : ;c:\temp\workspace\menu\target\classes Work Exit : 0
INFO:gump:Gump Build complete. Exit code:0
Note that there are some errors that i can't solve and don't know what mean:
Project [menu] State: Success
- Error:Unable to complete project.home for: menu
- Error:Found a <jar with no name...
- Info:Enable "verbose" output, due to 0 previous error(s)
All this is correct? Can scripts generate errors?
Gump needs a mail server to send e-mails?? if yes, how i configure it?
How i generate reports?
Someone can help-me? I'm new on gump.
Raphael Philipe Mendes da Silva
DSB - Diretoria de Soluções em Billing
CPqD Telecom & IT Solutions
Tel.: +55 19 3705-6957
www.cpqd.com.br
rsilva@cpqd.com.br
---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org
Re: Sending mails and reports
Posted by "Adam R. B. Jack" <aj...@trysybase.com>.
> I'm trying to integrate maven with gump. I am using one script for each
project in my workspace to do the builds with maven.
Cool.
> The gump called correctly the builds scripts, but when I forces the build
to result in error, it simple ignores it and signalize that the build was
sucessful, Like this:
Odd. All I can see (of relevence) is "Work Exit : 0". I know older versions
(rc1, I think) of Maven reported an exit code problem. I hope 1.0-rc3 (which
I see you have) doesn't have it back. We've been using 1.0-rc2.
http://brutus.apache.org:8080/gump/apache-gump-test/gump-test-maven1/gump_work/build_apache-gump-test_gump-test-maven1.html
Hmm, any Mavenites able to help here?
> Note that there are some errors that i can't solve and don't know what
mean:
> - Error:Unable to complete project.home for: menu
I suspect you have a property that depends upon a project that is not known,
or similar. Something like this, but for <maven:
http://gump.apache.org/metadata/ant.html#property
> - Error:Found a <jar with no name...
A <jar entry (in your metadata) needs a name="x" attribute:
http://gump.apache.org/metadata/project.html#jar
> All this is correct? Can scripts generate errors?
Sorry, not following these two sentences. Can you re-ask?
> Gump needs a mail server to send e-mails?? if yes, how i configure it?
> How i generate reports?
Did you have to pick the day I chose to break notification on Microsoft? ;-)
Basically, I made notification dependend upon statistics, which requires
that Python work with DBM (which isn't avilable on Microsoft platforms, it
seems.)
Still, try something like this (if you have an SMTP mail server):
<workspace name="Your Workspace"
mailserver="Your Server Hostname"
mailport="123" if not 25
and inside the <workspace element:
<nag />
or, to override:
<nag to="me@myplace" from="me@myplace" />
Sorry for this, the documentation needs to be updated, I apologize.
> Someone can help-me? I'm new on gump.
Sure, I'll try. Thanks for getting so far!
regards
Adam
---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org