On Fri, 28 Nov 2003, Martin Kluge wrote:
> Hello,
>
> I am new to ojb and ojbdoclet and try to automate the building of
> the the xml-files with ojbdoclet.
> The project_schema.xml and repository_user.xml files are generated,
> but dont contain the necessary information (are empty in principle).
> Any hint what could have gone wrong?
>
> Regards,
> Martin
>
>
>
> I run an ant-script as follows:
>
> ======>
> <project name="hpca-inventar" default="ojb-repository-files"
> basedir="."> <description>Ant-Skript fuer die
> HPCA-Inventar-Applikation</description>
>
> <!-- properties - definition - section -->
> <property name="author" value="mk"/>
> <property environment="env"/>
> <property name="model-dir" location="de/hpca/model"/>
> <property name="ojb-dir" location="de/hpca/model/ojb"/>
> <property name="ojb-lib-dir" location = "/opt/jutils/ojb/lib"/>
> <!-- property file="/opt/jutils/ojb/build.properties"/ -->
> <!-- property file="/opt/jutils/ojb/profile/mysql.profile"/ -->
>
>
> <!-- path - definition - section -->
> <path id="ojbdoclet-classpath">
> <fileset dir="${ojb-lib-dir}">
> <include name="**/*.jar"/>
> </fileset>
> </path>
>
> <target name="init">
> <description>initializes everything</description>
> <mkdir dir="${ojb-dir}"/>
> </target>
>
> <target name="ojb-repository-files" depends="init">
> <description >use xdoclet to extract ojb-Information from
> classes</description> <taskdef name="ojbdoclet"
> classname="xdoclet.modules.ojb.OjbDocletTask"
> classpathref="ojbdoclet-classpath"/> <ojbdoclet
> destdir="${ojb-dir}"> <fileset dir="${model-dir}">
> <filename name="**/Dienst*.java"/>
This line should be:
<include name="**/Dienst*.java"/>
Apart from this, the source and build file seems to be ok. BTW you can get
some more verbose output from the ojb and torque tasks by adding the
verbose="true" attribute (provided you use a recent version of the module
from CVS).
Tom
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]