Message: A new issue has been created in JIRA.
--------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1233 Here is an overview of the issue: --------------------------------------------------------------------- Key: XDT-1233 Summary: Tag otherProperty doesn't work inside tag hibernatecfg Type: Bug Status: Open Priority: Minor Original Estimate: Unknown Time Spent: Unknown Remaining: Unknown Project: XDoclet Components: Hibernate Module Versions: 1.2.2 1.3 Assignee: xdoclet-devel (Use for new issues) Reporter: Jim Miller Created: Thu, 13 Jan 2005 1:24 PM Updated: Thu, 13 Jan 2005 1:24 PM Environment: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) Ant 1.5.1 and 1.6.2 Description: <otherProperty /> tag doesn't work correctly. It parses, but the name & value attributes are ignored. Example: <hibernatecfg dialect="net.sf.hibernate.dialect.MySQLDialect" driver="com.mysql.jdbc.Driver" userName="iop" password="" jdbcUrl="jdbc:mysql://localhost/repository" showSql="false"> <!-- configuration pool via c3p0--> <otherProperty name="c3p0.max_size" value="100" /> <otherProperty name="c3p0.max_statements" value="0" /> <otherProperty name="c3p0.min_size" value="5" /> <otherProperty name="c3p0.timeout" value="100" /><!-- seconds --> </hibernatecfg> Ant outputs: generate.hibernate: [hibernatedoclet] addOtherProperty(): name=null, null [hibernatedoclet] addOtherProperty(): name=null, null [hibernatedoclet] addOtherProperty(): name=null, null [hibernatedoclet] addOtherProperty(): name=null, null [hibernatedoclet] addOtherProperty(): name=null, null [hibernatedoclet] addOtherProperty(): name=null, null [hibernatedoclet] (XDocletMain.start 47 ) Running <hibernate/> The problem appears to be HibernateCfgSubTask.java, in the naming of the add method. Changing addOtherProperty() to addConfiguredOtherProperty() makes it work. I have a patch I'll try to attach. --------------------------------------------------------------------- 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/xdoclet/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ xdoclet-devel mailing list xdoclet-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xdoclet-devel