In a same project I have classes whitch must go in projectA-schema.xml and other in a projectB-schema.xml because I need to generate 2 differents sql with torque to generate the databases.
I try to include / exclude some classes when i call the torqueschema task. I try with : <j:forEach begin="0" end="${maven.metier.datasources.nb}" indexVar="dataSourceIndex"> <j:set var="dataSourceName" value="maven.metier.${dataSourceIndex}.name"/> <j:if test="${context.getVariable(dataSourceName) != null}"> <ant:echo>Génération du mapping pour ${context.getVariable(dataSourceName)}</ant:echo> <ojbdoclet destDir="target/pbDestDir"> <j:set var="dataSourceIncludes" value="maven.metier.${dataSourceIndex}.schema.includes"/> <j:set var="dataSourceExcludes" value="maven.metier.${dataSourceIndex}.schema.excludes"/> <fileset dir="${maven.metier.java.xdoc.dir}" includes="${context.getVariable(dataSourceIncludes)}" excludes="${context.getVariable(dataSourceExcludes)}"/> <!--ojbrepository destDir="${maven.metier.repository.generic.dir}" destinationFile="repository_${context.getVariable(dataSourceName)}.xml"/--> <torqueschema destDir="${maven.metier.schema.generic.dir}" databaseName="${pom.artifactId}" destinationFile="${context.getVariable(dataSourceName)}-schema.xml"/> </ojbdoclet> </j:if> </j:forEach> The properties are the next : maven.metier.datasources.nb=2 maven.metier.0.name=ciadatatr maven.metier.0.schema.includes=** maven.metier.0.schema.excludes=**/reftaureau/* maven.metier.0.generate.sql=true maven.metier.1.name=ciadatasig maven.metier.1.schema.name=ciadatasig maven.metier.1.schema.includes=**/reftaureau/* maven.metier.1.schema.excludes= maven.metier.0.generate.sql=false The problem is that some of the projectB-schema have reference to the projectA classes and the inverse. But ojbdoclet seem to need all the classes in the fileset. Generating ciadatatr-schema.xml. Running XDoclet failed. <<Could not find type com.arsoe.trelaze.coopgen.metier.reftaureau.CategorieTarifaireTaureau of member mesCategoriesTarifairesTaureauPossibles i n type com.arsoe.trelaze.coopgen.metier.parametrage.ParametrageCIA.>> XDoclet failed. at xdoclet.DocletTask.start(DocletTask.java:465) at xjavadoc.ant.XJavadocTask.execute(XJavadocTask.java:110) at org.apache.tools.ant.Task.perform(Task.java:341) ... Caused by: xdoclet.XDocletException: Could not find type com.arsoe.trelaze.coopgen.metier.reftaureau.CategorieTarifaireTaureau of member mesCat egoriesTarifairesTaureauPossibles in type com.arsoe.trelaze.coopgen.metier.parametrage.ParametrageCIA. at xdoclet.modules.ojb.OjbTagsHandler.checkForMemberType(OjbTagsHandler.java:2106) at xdoclet.modules.ojb.OjbTagsHandler.processCollection(OjbTagsHandler.java:1095) ... I add **/*/class in the classpath but it change nothing. The excludes sources (**/*.java) are required. Nicolas --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]