[ http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1676?page=comments#action_17742 ]
Sergey Kovalyov commented on XDT-1676: -------------------------------------- Looks like I found a better workaround: define a separate task for each webdoclet call: <taskdef name="webdoclet1" classname="xdoclet.modules.web.WebDocletTask" classpathref="xdoclet123.class.path"/> <webdoclet1 destdir="${firstDir}/WEB-INF">...</webdoclet1> <taskdef name="webdoclet2" classname="xdoclet.modules.web.WebDocletTask" classpathref="xdoclet123.class.path"/> <webdoclet2 destdir="${secondDir}/WEB-INF">...</webdoclet2> That seems to be working as it should. > web.xml was not generated in the dir as specified in destDir attribute of the > second <webdoclet> task > ----------------------------------------------------------------------------------------------------- > > Key: XDT-1676 > URL: http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1676 > Project: XDoclet > Type: Bug > Components: Web Module > Versions: 1.2.3 > Environment: Windows XP, SP2, JDK1.5.0_09 and ant 1.6.2 > Reporter: Robert Kong > Assignee: xdoclet-devel (Use for new issues) > > > When two webdoclet tasks are included in the ant, web.xml was not generated > in the dir as specified in destDir attribute of the second <webdoclet> task. > Instead, it was generated in the dir which was specified in the first > webdoclet task. > <target name="webdoclet-bug" description="Reproduce the webdoclet > destDir caching bug"> > <webdoclet destDir="${firstDir}" mergeDir="${metadata.dir}" > excludedtags="@version,@author" force="true" > verbose="${build.verbose}" taskname="webdoclet-bug.first"> > <fileset refid="fileset1.servlet" /> > <deploymentdescriptor > distributable="${session.replication}" /> > </webdoclet> > > <delete file="${secondDir}/web.xml" failonerror="false" /> > > <webdoclet destDir="${secondDir}" mergeDir="${metadata.dir}" > excludedtags="@version,@author" force="true" > verbose="${build.verbose}" taskname="webdoclet-bug.second"> > <fileset refid="fileset2.servlet" /> > <deploymentdescriptor > distributable="${session.replication}" /> > </webdoclet> > <available property="webdoclet.bug.fixed" > file="${secondDir}/web.xml" type="file" /> > <fail unless="webdoclet.bug.fixed"> > web.xml not generated in the ${secondDir}. > </fail> > </target> > The workaround is set destDir attribute on the subtask deploymentdescriptor > itself for the second webdoclet task. But one have to specify "destDir" on > the parent task also since it is required. > -- 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 - For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ xdoclet-devel mailing list xdoclet-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xdoclet-devel