You are viewing a plain text version of this content. The canonical link for it is here.
Posted to torque-dev@db.apache.org by tf...@apache.org on 2005/08/07 12:14:44 UTC
svn commit: r230657 -
/db/torque/trunk/src/generator/src/templates/om/Control.vm
Author: tfischer
Date: Sun Aug 7 03:11:44 2005
New Revision: 230657
URL: http://svn.apache.org/viewcvs?rev=230657&view=rev
Log:
Fixed problem with missing definition of packagename when generator
property torque.subpackage.base is not set
Modified:
db/torque/trunk/src/generator/src/templates/om/Control.vm
Modified: db/torque/trunk/src/generator/src/templates/om/Control.vm
URL: http://svn.apache.org/viewcvs/db/torque/trunk/src/generator/src/templates/om/Control.vm?rev=230657&r1=230656&r2=230657&view=diff
==============================================================================
--- db/torque/trunk/src/generator/src/templates/om/Control.vm (original)
+++ db/torque/trunk/src/generator/src/templates/om/Control.vm Sun Aug 7 03:11:44 2005
@@ -48,6 +48,8 @@
#set ($packageBaseManager = "${package}.${subpackageBase}")
#else
#set ($packageBasePeer = "${package}")
+ #set ($packageBaseObject = "${package}")
+ #set ($packageBaseManager = "${package}")
#end
#if ($subpackageBaseBean)
---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org
Re: svn commit: r230657 -
Posted by "Henning P. Schmiedehausen" <hp...@intermeta.de>.
Thomas Fischer <tf...@apache.org> writes:
>On Tue, 16 Aug 2005, Henning P. Schmiedehausen wrote:
>> Thomas Fischer <fi...@seitenbau.net> writes:
>>
>>> Maybe it is even possible to add the runtime test to the maven plugin ? If
>>
>> Definitely -1 on that one. The maven-plugin is for developing torque code
>> not running integration tests. IMHO.
>>
>You're right. Lots of things which do not belong there would have to go
>into the maven plugin.
>So it seems to me that db-torque/trunk/maven.xml is the place weher this
>should go to. Please correct me if I'm wrong
Yes. maven.xml is fine.
Regards
Henning
--
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
Re: svn commit: r230657 -
Posted by Thomas Fischer <tf...@apache.org>.
On Tue, 16 Aug 2005, Henning P. Schmiedehausen wrote:
> Thomas Fischer <fi...@seitenbau.net> writes:
>
>> Maybe it is even possible to add the runtime test to the maven plugin ? If
>
> Definitely -1 on that one. The maven-plugin is for developing torque code
> not running integration tests. IMHO.
>
You're right. Lots of things which do not belong there would have to go
into the maven plugin.
So it seems to me that db-torque/trunk/maven.xml is the place weher this
should go to. Please correct me if I'm wrong
Thomas
---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org
Re: svn commit: r230657 -
Posted by "Henning P. Schmiedehausen" <hp...@intermeta.de>.
Thomas Fischer <fi...@seitenbau.net> writes:
>Maybe it is even possible to add the runtime test to the maven plugin ? If
Definitely -1 on that one. The maven-plugin is for developing torque code
not running integration tests. IMHO.
Regards
Henning
--
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
Re: svn commit: r230657 -
Posted by Thomas Fischer <fi...@seitenbau.net>.
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" <hp...@intermeta.de> schrieb am 15.08.2005
16:55:03:
> Thomas Fischer <tf...@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
Re: svn commit: r230657 -
Posted by "Henning P. Schmiedehausen" <hp...@intermeta.de>.
Thomas Fischer <tf...@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
Re: svn commit: r230657 -
Posted by Thomas Fischer <tf...@apache.org>.
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
Re: svn commit: r230657 -
Posted by "Henning P. Schmiedehausen" <hp...@intermeta.de>.
tfischer@apache.org writes:
>Author: tfischer
>Date: Sun Aug 7 03:11:44 2005
>New Revision: 230657
[...]
good news: This patch fixes the runtime test.
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.
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". ;-)
Regards
Henning
--
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