Although we do not provide currently a specific Ant plugin, actually, it is not necessary. You may equally call the FlexDoc/XML Generator from Ant simply as a Java application.
Here is an example of how it can be done.
Let's suppose, you want to generate a framed HTML documentation using
XSDDoc | Templates | FramedDoc.tpl
template by the XML schema located at the URL 'http://www.w3.org/2001/XMLSchema.xsd'
.
Here is a simple Windows command file that launches such a generation:
set |
FDH=C:\flexdoc-xml |
set |
MP=%FDH%\lib\flexdoc-xml.jar;%FDH%\lib\xercesImpl.jar |
java |
-Xmx1024m
--module-path %MP%
--module flexdoc.xml/xyz.flexdoc.xml.Generator
-template %FDH%\templates\XSDDoc\FramedDoc.tpl
-format HTML
-d %FDH%\out
-nodialog
-launchviewer=false
http://www.w3.org/2001/XMLSchema.xsd
|
build.xml
file doing the same:
build.xml
To run that build.xml
file, you can use a Windows BAT command file specified like the following:
set ANT_HOME=C:\apache-ant set PATH=%ANT_HOME%\bin;%PATH% set JAVA_HOME=C:\Program Files\Java\jre-17 call %ANT_HOME%\bin\ant.bat xsddoc
build.xml
file!)