Yes, there is a difference between the new app-schema.xml and the old one.
The old one has:
<database>
<table name="Produkt" javaName="Produkt" idMethod="idbroker">
<column name="Prodnum" javaName="Prodnum" primaryKey="true"
required="true" type="INTEGER" />
<column name="Prodname" javaName="Prodname" required="false"
type="VARCHAR" size="30" />
<column name="Releasenum" javaName="Releasenum" required="true"
type="VARCHAR" size="10" />
</table>
.....
</database>
The new one has:
<database name="@DATABASE_DEFAULT@"
defaultIdMethod="idbroker"
defaultJavaType="primitive"
defaultJavaNamingMethod="underscore"
package="@DATABASE_PACKAGE@">
</database>
But what shall I set in build.properties for @DATABASE_DEFAULT@ and
@DATABASE_PACKAGE@
I insert
torque.database.default = gRelease
torque.database.package = MySql
and set all other properties (driver, user, password, buildUrl)
and the error was the same.
By the way the error is shown in plugin.jelly and not in my schema.xml.
<j:otherwise>
<torque-data-model
contextProperties="${torque.contextProperties}"
controlTemplate="${torque.template.om}"
outputDirectory="${torque.java.dir}"
outputFile="report.${torque.project}.om.generation"
targetDatabase="${torque.database}"
targetPackage="${torque.targetPackage}"
templatePath="${torque.templatePath}"> <------------ The error is
here ???
<fileset dir="${torque.schema.dir}"
includes="${torque.schema.om.includes}"
excludes="${torque.schema.om.excludes}"
/>
</torque-data-model>
</j:otherwise>
Maybe all the variables are empty. If so (I try to insert some echoes) where
can I set them?
Dieter
-----Urspr�ngliche Nachricht-----
Von: Michael Kunze [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 2. M�rz 2005 11:41
An: Turbine Users List
Betreff: Re: AW: Maven torque:om
Johannsmeier, Dieter wrote:
> I try with my own schema.xml (this one was from a turbine 2.2
> installation) And I try the default one. Both gives the same error.
The default schema-appname.xml is almost empty. It just contains some
Placeholders like @SOMETHING Check that these values are correctly set in
your properties file.
You said something about trying Turbine 2.3.1. Now you using the file from
2.2. Maybe they are not compatible.
Michael
PS: http://learn.to/quote ;)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]