Message:
A new issue has been created in JIRA.
---------------------------------------------------------------------
View the issue:
http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-391
Here is an overview of the issue:
---------------------------------------------------------------------
Key: HB-391
Summary: Udated bat files in the tools - defined HIBERNATE_HOME
Type: Patch
Status: Unassigned
Priority: Major
Project: Hibernate2
Components:
toolset
Assignee:
Reporter: Mukund Pragasam
Created: Fri, 10 Oct 2003 8:31 AM
Updated: Fri, 10 Oct 2003 8:31 AM
Environment: run the tools (like hbm2java) from any other IDE like JBuilder.
Description:
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
I can send this to the group and they can update this in their copy. I can send all the bat files with similar updates.
I am not sure how this works. Will this be Assigned To me? or Do I need to send the modified bat files in a mail...?
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
|