Can XDOCLET work with non-java files as input to it

Discussions

XML & Web services: Can XDOCLET work with non-java files as input to it

  1. 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

    Threaded Messages (1)

  2. No[ Go to top ]

    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.

    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.
    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.

    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é