configtool/generatedoc-build.xml
author terytkon
Wed, 02 Jun 2010 10:50:41 +0300
changeset 1 fe41c66bacc7
parent 0 30eb2d538f02
permissions -rw-r--r--
Changed rest of the sfl licences to epl :)

<!--****************************************************************************
 * 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="update-properties">
      <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>