Trail:

Apache Ant Integration

AsDoclet can also be run from within Ant as part of an automated build process. The doclet understands different additional parameters:

-generator specifies the target language, currently only 'actionscript' and 'cs' are valid values.

-namespace specifies the namespace prefix that is removed from the directory structure. This is useful for generated C# sources. Unlike in Java, Visual Studio projects already define a base namespace that is not reflected in the directory structure. If your Java files reside in package org.fluffnstuff.remoting and you specify org.fluffnstuff as namespace the generated directory structure will start with remoting.

-map and -annotationmap can be used to map specific Java types to given target types, see Type Mapping for further reference.

Generate Actionscript

<javadoc packagenames="" sourcepath="${basedir}/src" destdir="${basedir}/out">
  <doclet name="org.fluffnstuff.asdoclet.AsDoclet">
    <param name="-generator" value="actionscript"/>
    <param name="-map" value="java.io.Serializable:null"/>
    <param name="-annotationmap" value="javax.persistence.Transient:null"/>
  </doclet>
</javadoc>

Generate C#

<javadoc packagenames="" sourcepath="${basedir}/src" destdir="${basedir}/out">
  <doclet name="org.fluffnstuff.asdoclet.AsDoclet">
    <param name="-generator" value="cs"/>
    <param name="-namespace" value="org.fluffnstuff"/>
    <param name="-map" value="java.io.Serializable:null"/>
    <param name="-annotationmap" value="javax.persistence.Transient:null"/>
  </doclet>
</javadoc>