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
 Assigned to: 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

Reply via email to