I have a custom template that I am using to generate a class file. The ant
task is:

  <target name="xdoclet" depends="prebuild">
    <xdoclet destdir="${build.ejb}">
      <template templateFile="delegate-template.xdt"
                destinationFile="${pkgPath}/${ejb}Delegate.java">
      </template>

      <fileset dir="${build.ejb}">
        <include name="**/*.java/"/>
      </fileset>
    </xdoclet>
  </target>

When I modify the source file, triggering the xdoclet task to run, the
results are appended to the existing destination file. I need this file to
be overwritten/replaced instead.

I've searched the XDoclet documentation for an append="false" or
overwrite="true" property for both the doclet task and template subtask to
no avail. Does anyone know how to fix this problem?

Kevin Hinners






-------------------------------------------------------
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://productguide.itmanagersjournal.com/
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to