imakerplugin/generatedoc-build.xml
changeset 0 61163b28edca
equal deleted inserted replaced
-1:000000000000 0:61163b28edca
       
     1 <!--****************************************************************************
       
     2  * Configuration tool main build file
       
     3  * This ant build.xml will compile all Configuration tool plugins
       
     4  ****************************************************************************-->
       
     5  
       
     6 <project name="ConfigurationTool generatedoc" default="generatedoc">
       
     7 	<!-- import common properties for this plugin -->
       
     8 	<property file="common.properties"/>
       
     9 	<property file="install.properties"/>
       
    10   <property file="build.properties"/>
       
    11     
       
    12   <target name="init-generatedoc" depends="get-svnversion">
       
    13       <mkdir dir="${common.documents}"/>
       
    14   </target>
       
    15 
       
    16   <target name="generatedoc" depends="doxygen"/>
       
    17     
       
    18   <target name="update-doxyfile">
       
    19 		<delete file="$Doxyfile"/>
       
    20 		<copy file="Doxyfile.template" tofile="Doxyfile"/>
       
    21 		<echo file="Doxyfile" append="yes">
       
    22 		# -------------------------------------------------------------------------
       
    23 		# generated by ant
       
    24 		PROJECT_NAME           = ${ant.project.name}
       
    25 		PROJECT_NUMBER         = ${common.version}-${common.svnversion}
       
    26 		OUTPUT_DIRECTORY       = "${common.documents}\doxygen"
       
    27 		</echo>
       
    28   </target>
       
    29   
       
    30   <target name="doxygen" depends="init-generatedoc,update-doxyfile">
       
    31     <exec executable="doxygen" dir=".">
       
    32 	  </exec>
       
    33   </target>
       
    34 
       
    35   <target name="javadoc" depends="init-generatedoc">
       
    36 	  <javadoc linksource="yes" destdir="${common.documents}/javadoc">
       
    37 	    <sourcefiles>
       
    38         <fileset dir=".">
       
    39         	<include name="**/src/**/*.java"/>
       
    40         </fileset>
       
    41       </sourcefiles>
       
    42       <classpath>
       
    43         <pathelement location="lib/*.jar"/>
       
    44       </classpath>
       
    45 	  </javadoc>
       
    46   </target>
       
    47   	
       
    48 </project>
       
    49      
       
    50      
       
    51