imakerplugin/generatedoc-build.xml
changeset 0 61163b28edca
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/imakerplugin/generatedoc-build.xml	Tue Jan 12 13:17:53 2010 -0600
@@ -0,0 +1,51 @@
+<!--****************************************************************************
+ * 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>
+     
+     
+     
\ No newline at end of file