Beginner |
 |
Joined: Tue Oct 07, 2003 12:11 pm Posts: 32 Location: US
|
In the tools/bin we have
class2hbm.bat
ddl2hbm.bat
hbm2java.bat
setenv.bat
all the above bat files need to know HIBERNATE_HOME
they were using relative path to get it. When I run these tools from Jbuilder, they were not working because of the relative path.
I extracted hibernate-extensions-2.0.zip in the hibernate home directory.
So I had the directory structure like
avalon
bin
build.bat
build.xml
changelog.txt
demo.bat
demo.sh
doc
hibernate2.jar
hibernate_logo.gif
lgpl.txt
lib
readme.txt
src
tools
I have modified the files to get HIBERNATE_HOME from the environment variables.
For example
if "%HIBERNATE_HOME%"=="" goto noHIBERNATEHome
call %HIBERNATE_HOME%\tools\bin\setenv.bat
java -cp %CP% net.sf.hibernate.tool.class2hbm.MapGenerator %*
if not "%HIBERNATE_HOME%"=="" goto end
:noHIBERNATEHome
echo HIBERNATE_HOME is not set. Please set HIBERNATE_HOME.
:end
set HIBERNATE_HOME
how do I send this to the group and request them to update this in their copy. I can send all the bat files with similar updates.
---
|
|