[ http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1676?page=comments#action_17741 ]
Sergey Kovalyov commented on XDT-1676: -------------------------------------- It gets even worse than that. The workaround indeed helps to generate the second file, but the problem is that all the parameters are still inherited from the first one. Things like filesets, taglibs, mergedirs. My second web.xml file now contains everything that was in the first one plus more. I'm running xdoclet 1.2.3 from within Netbeans 3.5. It was not a problem with xdoclet 1.1 > 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 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ xdoclet-devel mailing list xdoclet-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xdoclet-devel