New Ant task for building "fat swc" (with embedded documentation)

This commit is contained in:
Pavel fljot 2011-05-01 17:42:58 +03:00
parent fca1ae4bc9
commit 289b3a800b

View file

@ -8,7 +8,7 @@
<property file="version.properties" /> <property file="version.properties" />
<target name="release" description="" depends="compile.swc, asdoc"> <target name="release" description="" depends="compile.swc, asdoc, fat.swc">
<!-- TODO: tests? --> <!-- TODO: tests? -->
</target> </target>
@ -48,6 +48,7 @@
<arg line="-exclude-classes com.inreflected.utils.pooling.ObjectPool"/> <arg line="-exclude-classes com.inreflected.utils.pooling.ObjectPool"/>
<arg line="-output ${asdoc.dir}"/> <arg line="-output ${asdoc.dir}"/>
<arg value="-keep-xml=true"/> <arg value="-keep-xml=true"/>
<arg value="-skip-xsl=true"/>
<arg line="-window-title 'Gestouch ${project.version}'"/> <arg line="-window-title 'Gestouch ${project.version}'"/>
<arg line="-main-title 'Gestouch ${project.version}'"/> <arg line="-main-title 'Gestouch ${project.version}'"/>
<arg line="-footer 'Gestouch - http://github.com/fljot/Gestouch/ - Documentation generated at: ${docgen.time}'"/> <arg line="-footer 'Gestouch - http://github.com/fljot/Gestouch/ - Documentation generated at: ${docgen.time}'"/>
@ -57,4 +58,17 @@
<echo>[asdoc] ASDOC documentation generated successfully</echo> <echo>[asdoc] ASDOC documentation generated successfully</echo>
</target> </target>
<target name="fat.swc">
<echo>[fat.swc] Adding documentation to swc</echo>
<!-- updates swc with asdoc xml -->
<zip destfile="${binrelease.dir}/gestouch-${project.version}.swc" update="true">
<zipfileset dir="${asdoc.dir}/tempdita" prefix="docs">
<include name="*.*" />
<exclude name="ASDoc_Config.xml" />
<exclude name="overviews.xml" />
</zipfileset>
</zip>
<echo>[fat.swc] Documentation added to swc successfully</echo>
</target>
</project> </project>