db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Fischer <fisc...@seitenbau.net>
Subject Re: svn commit: r230657 -
Date Mon, 15 Aug 2005 15:30:19 GMT




Ok, so I would offer to mend this. But, when I am at it, I would chuck out
the build-test.xml and define what should happen in the runtime test in
maven.
Maybe it is even possible to add the runtime test to the maven plugin ? If
this can be done, it would be much easier to ask people to run the
runtimetest on different databases. No more need to fetch the source code
and compile it...

What do you think ?

      Thomas

"Henning P. Schmiedehausen" <hps@intermeta.de> schrieb am 15.08.2005
16:55:03:

> Thomas Fischer <tfischer@apache.org> writes:
>
> The _reason_ why it fails is clear to me. I still consider it a bug,
> though. :-)
>
> It works when you don't skip the test plugin because the test plugin
> pulls the junit.jar in.
>
>    Regards
>       Henning
>
>
>
> >Hi Henning,
>
> >On Sun, 7 Aug 2005, Henning P. Schmiedehausen wrote:
>
> >> bad news: It still fails (though in a new and exciting way) if you run
> >>          the tests like this:
> >>
> >> % maven -Dmaven.test.skip=true -Dtorque.
> testProfile=profile/henning.profile  runtime:test
> >> [...]
> >> BUILD FAILED
> >> File...... /home/henning/scratch/torque-svn/db-torque/maven.xml
> >> Element... ant
> >> Line...... 130
> >> Column.... 29
> >> Could not create task or type of type: junit.
> >>
> >> Ant could not find the task or a class this task relies upon.
> >>
> >> This is common and has a number of causes; the usual
> >> solutions are to read the manual pages then download and
> >> install needed JAR files, or fix the build file:
> >> [...]
> >>
> >> The runtime test seems to rely on maven to create the junit tasks for
> >> ant. So when you skip the tests, the junit task is not defined and the
> >> runtime test fails. It should run independently from the maven driven
> >> unit tests.
>
> >This is a problem with the classpath maven sets in the maven shell
script
> >and the ant classloaders. Read
> >http://ant.apache.org/faq.html#delegating-classloader
> >and look at the -classpath definition in the java command in the maven
> >shell script.
>
> >To resolve the issue, you can either edit the maven shell script to
> >include junit.jar in the classpath, or you can copy junit-3.8.1.jar into

> >the $MAVEN_HOME/lib/endorsed directory.
>
> >Don't ask me why it works if you do not set -Dmaven.test.skip=true
>
> >>
> >> Of course this could also be a problem with the ant installation from
> >> jpackage. I know that Stefan Bodewig almost gets a fit every time I
> >> mention "ant and jpackage" or "ant and Redhat". ;-)
> >>
>
> >This is not the problem. I have installed ant from scratch and can
> >reproduce the problem.
>
> >     Thomas
>
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
> >For additional commands, e-mail: torque-dev-help@db.apache.org
>
> --
> Dipl.-Inf. (Univ.) Henning P. Schmiedehausen          INTERMETA GmbH
> hps@intermeta.de        +49 9131 50 654 0   http://www.intermeta.de/
>
> RedHat Certified Engineer -- Jakarta Turbine Development  -- hero for
hire
>    Linux, Java, perl, Solaris -- Consulting, Training, Development
>
>             4 - 8 - 15 - 16 - 23 - 42
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
> For additional commands, e-mail: torque-dev-help@db.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Mime
View raw message