Thomas Dudziak wrote:

The exception states that you do not have the xdoclet ojb module in the
classpath which is cp (as referenced in the taskdef).



Do you have a hint, why the files here stay empty?


?xml version="1.0" encoding="ISO-8859-1" standalone="no" ?>
<!DOCTYPE database SYSTEM "http://jakarta.apache.org/turbine/dtd/database.dtd";>
<!-- Generated by the xdoclet-ojb module -->


<database name="TEST">

</database>


<!-- file containing the repository descriptions for user-defined types --> <!-- Generated by the xdoclet-ojb module -->


class:


/*
* @ojb.class table="SITE"
* @ojb.index name="NAME_UNIQUE"
* unique="true"
* fields="name"
*/
public class Site implements Serializable
{
/**
* @ojb.field column="ID" required="true" primary-key="true" jdbc-type="INTEGER"
*/
private int id = 0;


  /**
   * @ojb.field column="NAME"
   *            length="100"
   */
  private String name;
}


ant-task:


<target name="repository-files">
<taskdef name="ojbdoclet" classname="xdoclet.modules.ojb.OjbDocletTask" classpathref="compilation-classpath"/>
<ojbdoclet destdir="./target">
<fileset dir="./src/java"/>
<ojbrepository destinationFile="repository_user.xml"/>
<torqueschema databaseName="TEST" destinationFile="project_schema.xml"/>
</ojbdoclet>
</target>


lib:

ls -l lib/xdoclet-*
-rw-r--r-- 1 cpesch x 150927 Jul 27 14:27 lib/xdoclet-1.2b3-dev.jar
-rw-r--r-- 1 cpesch x 44977 Jul 27 14:27 lib/xdoclet-ojb-module-1.2b3-dev.jar


--
Christian



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to