This is a discussion on Ant build file 4 OJB:ojbdoclet fileset dir refer to an jar file (or jar in classpath) - JDBC JAVA ; Hi, i've created this Ant build file for OJB Project: Code: <project name="OJB" default="init-db" basedir=".."> <target name="repository-files"> <property file="./lib/build.properties"/> <taskdef name="ojbdoclet" classname="xdoclet.modules.ojb.OjbDocletTask" classpathref="build-classpath"> </taskdef> <ojbdoclet destdir="./ojb"> <fileset dir="./src"/> <ojbrepository destinationFile="repository_user.xml"/> <torqueschema databaseName="${torque.database.name}" destinationFile="project-schema.xml"/> </ojbdoclet> </target> <target name="init-db" depends="repository-files"> <!-- Torque's ...
Hi, i've created this Ant build file for OJB Project:
and it works fine!! it generate all necessary code and it generate correctly all annotated classes's db tables on <fileset dir="./src"/>.Code:<project name="OJB" default="init-db" basedir=".."> <target name="repository-files"> <property file="./lib/build.properties"/> <taskdef name="ojbdoclet" classname="xdoclet.modules.ojb.OjbDocletTask" classpathref="build-classpath"> </taskdef> <ojbdoclet destdir="./ojb"> <fileset dir="./src"/> <ojbrepository destinationFile="repository_user.xml"/> <torqueschema databaseName="${torque.database.name}" destinationFile="project-schema.xml"/> </ojbdoclet> </target> <target name="init-db" depends="repository-files"> <!-- Torque's build file --> <property name="torque.buildFile" value="lib/build-torque.xml"/> ............ ............ ............
But, if i generate a .jar including a class annotated with OJB comments and i include it in my project classpath, how i can set the "fileset dir" to permit at ANT to read the annotated class on .jar file??
Thanks,
Mirko