-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Udated bat files in the tools - defined HIBERNATE_HOME
PostPosted: Wed Oct 08, 2003 11:17 pm 
Beginner
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.

---


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 09, 2003 12:18 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Post a patch to JIRA. It's the easiest way for Hibernate team.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.