Hello,
I am new to XDOCLET but with whatever little I have read I see that for XDOCLET to work properly the XDOCLET tags need to be in javadoc style. But does the file containing these Javadoc style comments have to be a .java file. Can it not be any file which contains XDOCLET tags.
Thanks,
Sameer
-
Can XDOCLET work with non-java files as input to it (1 messages)
- Posted by: Sameer Wadkar
- Posted on: March 31 2004 18:56 EST
Threaded Messages (1)
- No by Rene Zanner on April 01 2004 08:38 EST
-
No[ Go to top ]
- Posted by: Rene Zanner
- Posted on: April 01 2004 08:38 EST
- in response to Sameer Wadkar
Quoting the http://xdoclet.sourceforge.net overview,XDoclet is a code generation engine. It enables Attribute-Oriented Programming for java. In short, this means that you can add more significance to your code by adding meta data (attributes) to your java sources. This is done in special JavaDoc tags.
Since XDoclet really evaluates the information in the Java source code to make it available in the XDoclet templates, you cannot use a different language or syntax.
XDoclet will parse your source files and generate many artifacts such as XML descriptors and/or source code from it. These files are generated from templates that use the information provided in the source code and its JavaDoc tags.
If you want to do some template processing/filtering of text files, you can use Ant's <copy> task which is able to take filters to replace tokens/variables in template files based on Ant properties.
Ciao,
René