For the archives

--Brian (mobile)


Begin forwarded message:

> From: Adrien 
> Date: March 2, 2011 10:22:26 PM EST
> To: bri...@apache.org
> Subject: Doxia Tools > Converter > Additional Usage Example (ant script)
> 

> Hi,
> 
> i've found your project very useful. In my case, i neeeded to run with 
> dependencies included, but i had to inclue it in my existing tasks 
> processing, thus using ant.
> 
> Based on the following link :
> 
> http://maven.apache.org/doxia/doxia-tools/doxia-converter/usage.html
> 
> It could be also usefu for other people to have a dummy ant snippet to add 
> the conversion in their build. here is mine (apt to other formats), it'a 
> quite dummy and straightforward :
> 
> 
> <!--
> 
> http://maven.apache.org/doxia/doxia-tools/doxia-converter/usage.html
> 
> -->
> 
> 
> 
> <!-- 
> ################################################################################################
> #                                                                             
>                                                                               
>                                                                         #
> #                       Generate Documentation                                
>                                                                               
>                                                 #
> #                                                                             
>                                                                               
>                                                                         #
> #################################################################################################
>  -->
>     <target name="doxia-convert">
>         <java
>             jar="./lib/doxia-converter-1.2-jar-with-dependencies.jar"
>             dir="."
>             fork="true"
>             failonerror="true"
>             >
> 
>             <arg value="-in"/>
>             <arg value="${tdi.apt}"/>
>             
>             <arg value="-out"/>
>             <arg value="./doc/${tdi.apt}.${doxia.out.extension}"/>
>             
>             <arg value="-to"/>
>             <arg value="${doxia.out.format}"/>
>             
>             
>             <arg value="-from"/>
>             <arg value="apt"/>
>             
>             <arg value="-f"/>
>         </java>
>     </target>
>     
>     <target name="doc.xhtml">
>         <antcall target="doxia-convert">
>             <param name = "doxia.out.format" value = "xhtml"/>
>             <param name = "doxia.out.extension" value = "html"/>
>         </antcall>
>     </target>
>     <target name="doc.docbook">
>         <antcall target="doxia-convert">
>             <param name = "doxia.out.format" value = "docbook"/>
>             <param name = "doxia.out.extension" value = "xml"/>
>         </antcall>
>     </target>
>     <target name="doc.rtf">
>         <antcall target="doxia-convert">
>             <param name = "doxia.out.format" value = "rtf"/>
>             <param name = "doxia.out.extension" value = "rtf"/>
>         </antcall>
>     </target>
>     <target name="doc.latex">
>         <antcall target="doxia-convert">
>             <param name = "doxia.out.format" value = "latex"/>
>             <param name = "doxia.out.extension" value = "tex"/>
>         </antcall>
>     </target>
>     
>     <target name="doc">
>         <antcall target="doc.xhtml" />
>         <antcall target="doc.docbook" />
>         <antcall target="doc.rtf" />
>         <antcall target="doc.latex" />
>     </target>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Hopefully will it be useful to someone else.
> 
> 
> Thank you for your work.
> 
> Kind Regards,
> 
> Adrien
> 

Reply via email to