Hi,
Below the steps I have followed in order to get a hibernate-tools.jar from the source code.
Since it had not been straight forward for me, I have decided to write this post.
I use apache-ant-1.6.5 and jdk1.5.0_06 on Windows.
step 1)
copy junit-4.1.jar in %ant_home%/lib
I copy it from <eclipse installation path>\plugins\org.junit4_4.1.0
step 2)
create a root directory for the required files ( for ex. HibernateTools )
create a subdirectory for the source code ( for ex. HibernateExt )
get/checkout the source code from
http://anonhibernate.labs.jboss.com/trunk/HibernateExt
create directory 'hibernate-3.2' in the root directory
step 3)
Alternative 1)
get 'hibernate3.jar' from the last release
for me it was HibernateTools-3.2.0.beta7\plugins\org.hibernate.eclipse_3.2.0.beta7\lib\hibernate
copy 'hibernate3.jar' into 'hibernate-3.2'
create a subdirectory 'lib' into 'hibernate-3.2'
get the libraries from
http://anonhibernate.labs.jboss.com/tru ... rnate3/lib
Alternative 2)
copy antlr-2.7.6.jar into %ant_home%/lib
get/checkout the hibernatecore source code from
http://anonhibernate.labs.jboss.com/trunk/Hibernate3/
into the 'hibernate-3.2' directory
open a command prompt in this directory
run : ant jar
copy 'hibernate-3.2.jar' from hibernate-3.2\build to hibernate-3.2
step 4)
go into HibernateExt\tools in a command prompt
run : ant jar
you can find 'hibernate-tools.jar' into 'HibernateExt\tools\target\hibernate-tools' !
summary of the directory structure :
HibernateTools
- HibernateExt
- hibernate-3.2
--hibernate3.jar
--lib
Hope this helps.
Please correct me if some steps are wrong or not recommended.
I have just a comment about an issue I got :
wouldn't be possible that the build.bat use the JAVA_HOME environment variable in order to run the antlauncher ?
for example I had to change the build.bat with
"%JAVA_HOME%/bin/java" -cp "%HIBERNATECORE%\lib\ant-launcher-1.6.5.jar" org.apache.tools.ant.launch.Launcher -lib %HIBERNATECORE%/lib %1 %2 %3 %4 %5
because I installed JRE before installed JDK and by default the command prompt is running java from old JRE rather than from the JAVA_HOME, so it don't find javac
Regards,
Christophe