i modified the build like this :
Code:
<path id="toolslib">
<path location="${ear.lib.hibernate}/hibernate3.jar"></path>
<path location="${ear.lib.hibernate.tools}/hibernate-tools.jar"></path>
<path location="${ear.lib.hibernate.tools}/jtidy-r8-21122004.jar"></path>
<path location="${ear.lib.hibernate.tools}/bsh-2.0b1.jar"></path>
<path location="${ear.lib.hibernate.tools}/freemarker.jar"></path>
<path location="${varie.svil.lib}/ojdbc14-9.2.0.5.zip"></path>
[b]<path location="${varie.svil.lib}/revengStrategy.jar"></path>[/b]
<path location="${ear.lib}/commons-logging-1.0.4.jar"></path>
<path location="${ear.lib}/commons-collections-2.1.1.jar"></path>
<path location="${ear.lib}/dom4j-1.6.1.jar"></path>
<path location="${ear.lib}/ehcache-1.1.jar"></path>
<path location="${ear.lib}/cglib-2.1.3.jar"></path>
<path location="${ear.lib}/asm.jar"></path>
<path location="${ear.lib}/asm-attrs.jar"></path>
<path location="${ear.lib}/asm-attrs.jar"></path>
</path>
the output is this :
Buildfile: D:\eclipse fondi workspace\BancaCorrispondenteOnline_tests\varie\build BCOdataModel bindings and javaCode.xml
generateMappingFilesAndJavaFiles:
[hibernatetool] Executing Hibernate Tool with a JDBC Configuration (for reverse engineering)
[hibernatetool] 1. task: hbm2hbmxml (Generates a set of hbm.xml files)
[hibernatetool] Sep 14, 2006 10:23:45 AM org.hibernate.cfg.Environment <clinit>
[hibernatetool] INFO: Hibernate 3.2 cr4
[hibernatetool] Sep 14, 2006 10:23:45 AM org.hibernate.cfg.Environment <clinit>
[hibernatetool] INFO: hibernate.properties not found
[hibernatetool] Sep 14, 2006 10:23:45 AM org.hibernate.cfg.Environment buildBytecodeProvider
[hibernatetool] INFO: Bytecode provider name : cglib
[hibernatetool] Sep 14, 2006 10:23:45 AM org.hibernate.cfg.Environment <clinit>
[hibernatetool] INFO: using JDK 1.4 java.sql.Timestamp handling
[hibernatetool] Sep 14, 2006 10:23:45 AM org.hibernate.cfg.Configuration configure
[hibernatetool] INFO: configuring from file: hibernate.cfg.xml
[hibernatetool] Sep 14, 2006 10:23:45 AM org.hibernate.cfg.Configuration doConfigure
[hibernatetool] INFO: Configured SessionFactory: null
[hibernatetool] Sep 14, 2006 10:23:46 AM org.hibernate.cfg.reveng.OverrideRepository addFile
[hibernatetool] INFO: Override file: D:\eclipse fondi workspace\BancaCorrispondenteOnline_tests\varie\svil\svil_lib\BCOHibernate.reveng.xml
BUILD FAILED
java.lang.NoClassDefFoundError: reveng/strategy/BCOReverseEngineeringStrategy (wrong name: varie/svil/svil_hibernate/reveng/strategy/BCOReverseEngineeringStrategy)
Total time: 1 second
the dir varie/svil/svil_hibernate is the dir where the source and class are ; how did ant pick up this dir ??? and not the dir of the jar ???
thanks,
Viorel