The following comment has been added to this issue: Author: Jana Parvanova Created: Tue, 15 Feb 2005 4:09 AM Body: I see the same output: addOtherProperty(): name=null, null
but the property is added ok. --------------------------------------------------------------------- View this comment: http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1233?page=comments#action_15975 --------------------------------------------------------------------- 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: Tue, 15 Feb 2005 4:09 AM 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 ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ xdoclet-devel mailing list xdoclet-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xdoclet-devel