imakerplugin/generatedoc-build.xml
author dpodwall
Tue, 12 Jan 2010 13:17:53 -0600
changeset 0 61163b28edca
permissions -rw-r--r--
initial EPL conversion

<!--****************************************************************************
 * Configuration tool main build file
 * This ant build.xml will compile all Configuration tool plugins
 ****************************************************************************-->
 
<project name="ConfigurationTool generatedoc" default="generatedoc">
	<!-- import common properties for this plugin -->
	<property file="common.properties"/>
	<property file="install.properties"/>
  <property file="build.properties"/>
    
  <target name="init-generatedoc" depends="get-svnversion">
      <mkdir dir="${common.documents}"/>
  </target>

  <target name="generatedoc" depends="doxygen"/>
    
  <target name="update-doxyfile">
		<delete file="$Doxyfile"/>
		<copy file="Doxyfile.template" tofile="Doxyfile"/>
		<echo file="Doxyfile" append="yes">
		# -------------------------------------------------------------------------
		# generated by ant
		PROJECT_NAME           = ${ant.project.name}
		PROJECT_NUMBER         = ${common.version}-${common.svnversion}
		OUTPUT_DIRECTORY       = "${common.documents}\doxygen"
		</echo>
  </target>
  
  <target name="doxygen" depends="init-generatedoc,update-doxyfile">
    <exec executable="doxygen" dir=".">
	  </exec>
  </target>

  <target name="javadoc" depends="init-generatedoc">
	  <javadoc linksource="yes" destdir="${common.documents}/javadoc">
	    <sourcefiles>
        <fileset dir=".">
        	<include name="**/src/**/*.java"/>
        </fileset>
      </sourcefiles>
      <classpath>
        <pathelement location="lib/*.jar"/>
      </classpath>
	  </javadoc>
  </target>
  	
</project>