The following comment has been added to this issue: Author: Vassil Dichev Created: Fri, 18 Feb 2005 3:18 AM Body: Add this task where? I'm using JBoss IDE, so every time I click on the XDoclet Configurations in the Project Properties, the xdoclet-build.xml file is regenerated, so your suggested task will be deleted. If I need to add a new ant build.xml file just for the replace task, the workaround does not seem so simple.
Furthermore, this workaround does not look robust to me at all. I have to rely on the fact that the string is exactly as it is typed and that there are no other strings like it in the same directory that I need. What if I have an automatic pretty print formatter which changes slightly the syntax by adding a couple of spaces? What if the xdoclet template is changed or someone changes the value for UseOuterJoin to true? What if I want to describe in my documentation/changelog/whatever about this exact bug and want to include the exact string you want to replace? I think there's a much simpler workaround to just remove the following line in the xdoclet/modules/hibernate/resources/jboss-service.xdt: <attribute name="UseOuterJoin"><XDtConfig:configParameterValue paramName="useOuterJoin"/></attribute> This is in the xdoclet-hibernate-module-1.2.x.jar Even the following presumable fix in xdoclet-1.2.2 still doesn't cut it for reasons stated above (I've already written enough and don't want to repeat myself): <XDtConfig:ifHasConfigParam paramName="useouterjoin"> <attribute name="UseOuterJoin"><XDtConfig:configParameterValue paramName="useOuterJoin"/></attribute> </XDtConfig:ifHasConfigParam> To summarize: ifHasConfigParam doesn't work for boolean. The bug is still there in xdoclet-1.2.2. I've attached a small patch (last year) which provides a simple fix just for hibernate's jboss-service.xml generation. It is still not included in CVS however. There is a more serious problem with default values of boolean primitive fields, which I don't think is likely to be fixed in xdoclet 1.x. Maybe 2.x doesn't have this problem or at least it will be easier to fix. --------------------------------------------------------------------- View this comment: http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1059?page=comments#action_15983 --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1059 Here is an overview of the issue: --------------------------------------------------------------------- Key: XDT-1059 Summary: jbossservice UseOuterJoin not supported anymore in hibernate 2.1.6 Type: Bug Status: Open Priority: Major Original Estimate: Unknown Time Spent: Unknown Remaining: Unknown Project: XDoclet Components: Hibernate Module Versions: 1.2.1 1.2.2 Assignee: xdoclet-devel (Use for new issues) Reporter: Thomas Herbst Created: Tue, 7 Sep 2004 3:15 PM Updated: Fri, 18 Feb 2005 3:18 AM Description: With hibernate 2.1.6 the UseOuterJoin is removed from the net.sf.hibernate.jmx.HibernateService MBean so the attribute can not be set default to false, because jboss cannot deploy the service anymore. 21:31:02,500 INFO [NamingService] Started jnpPort=1099, rmiPort=1098, backlog=5 0, bindAddress=/0.0.0.0, Client SocketFactory=null, Server SocketFactory=org.jbo [EMAIL PROTECTED] 21:31:03,721 INFO [ServiceConfigurator] Problem configuring service jboss.jca:s ervice=HibernateServices org.jboss.deployment.DeploymentException: No Attribute found with name: UseOuter Join at org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.ja va:321) at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigura tor.java:160) at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java :114) at org.jboss.system.ServiceController.install(ServiceController.java:198 ) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. --------------------------------------------------------------------- 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