A new day and I found the simple answer to this. Adding the
havingClassTag="mycustom.class" does exactly what I need. So the new
template tag looks like...

        <template
            havingClassTag="mycustom.class"
            templateFile="mycustom.xdt"
            destinationfile="{0}.txt"
        />

-----Original Message-----
From: Kuntz, Tim [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 15, 2004 1:13 PM
To: '[EMAIL PROTECTED]'
Subject: [Xdoclet-user] Custom Template/Task


I would like to iterate through a fileset of Java classes and generate a
file based on mycustom.xdt template BUT only for those classes that contain
a custom tag; for instance, @mycustom.class.  I am generating files
correctly but want to ignore the untagged classes.  Can anyone tell me if
this is possible without writing my own plugin?  

This is the relevant portion of my Ant file.

<taskdef
    name="templatedoclet"
    classname="xdoclet.DocletTask"
    classpathref="xdoclet.classpath"
/>

<templatedoclet
    destdir="${gen.src.dir}"
    excludedtags="@version,@author"
>
        <fileset dir="${src.dir}">
                <include name="**/*.java" />
        </fileset>
        <template
            templateFile="mycustom.xdt"
            destinationfile="{0}.txt"
        />
</templatedoclet>

thanks
tim



-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to