Trying to generate a simple output text from an ant script using XDoclet
------------------------------------------------------------------------
Key: XDT-1568
URL: http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1568
Project: XDoclet
Type: Bug
Versions: 1.2.3
Environment: Windows
Reporter: Sunil-Kumar Tuppale
Assigned to: xdoclet-devel (Use for new issues)
I recently started playing with XDoclet. The purpose for which i plan to use
XDoclet is to be able to generate an XML file. As a starting point, i have
tags in my source code files which reads like
/**
*
* @author rtupps
* @version 1.0
* @doc.param name="EntireXUtils" description="A Name"
*
*/
I have a target in the ant build.xml file that looks like
<target name="templatedoclet" depends="prepare" description="X doclet Task
creating XML">
<taskdef name="doclet" classname="xdoclet.DocletTask"
classpathref="compile.classpath"/>
<taskdef name="template" classname="xdoclet.TemplateSubTask"
classpathref="compile.classpath"/>
<doclet destDir="${dist.home}/xml" excludedtags="@version,@author"
verbose="true">
<fileset dir="${src.home}/scrs/common/entirex">
<include name="*.java"/>
</fileset>
<template templateFile="common.xdt" destinationFile="output.txt"/>
</doclet>
</target>
My common.xdt looks like this
<XDtClass:forAllClasses>
<XDtClass:ifHasClassTag tagName="doc.param" paramName="name">
<XDtClass:classTagValue tagName="doc.param" paramName="name" /> =
<XDtClass:className/>
</XDtClass:ifHasClassTag>
</XDtClass:forAllClasses>
when i run the ant script and the target is run, it generates an output.txt
file as it should, but there is nothing in the file except for a cryptic
character 0
I need help with this issue
Thanks in advance
--
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
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
xdoclet-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel