From: <leg...@at...> - 2003-11-28 03:25:16
|
Message: The following issue has been re-assigned. Assignee: Christian Bauer (mailto:chr...@hi...) Assigner: Gavin King (mailto:ga...@hi...) Date: Thu, 27 Nov 2003 9:23 PM Comment: Christian, would you see if this needs fixing? TIA --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-345 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-345 Summary: <schemaexport> task "output" attribute doesn't respect relative build.xml directory path Type: Bug Status: Open Priority: Minor Project: Hibernate2 Components: toolset Versions: 2.1 beta 4 Assignee: Christian Bauer Reporter: Keith Donald Created: Thu, 18 Sep 2003 10:57 AM Updated: Thu, 27 Nov 2003 9:23 PM Environment: Windows XP + Eclipse was the environment in which this problem was noticed. Description: The following is an example use of the schema export task in ANT illustrating the problem: <schemaexport properties="${conf.home}/hibernate.properties" quiet="no" text="no" drop="no" delimiter=";" output="dist/conf/schema-export.sql"> <fileset dir="${build.home}/classes"> <include name="**/*.hbm.xml"/> </fileset> </schemaexport> The directory "dist/conf/schema-export" is a relative path from the directory in which the ant build.xml file is located. I get a "Schema test failed: path not found dist/conf/schema-export.sql" - it appears output is an absolute path and not a relative one. This seems to only cause problems in Eclipse, but manually specifiying the working directory in which the build.xml file should execute doesn't solve the problem either. It's also strange how ${conf.home} above in the properties attribute is also a relative path and it works great--the problem seems localized to the output attribute Workaround: putting a ${basedir}/ in front of "dist/conf/schema-export.sql" above solves the problem. --------------------------------------------------------------------- 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 |