home *** CD-ROM | disk | FTP | other *** search
/ Mobiclic 149 / MOBICLIC149.ISO / pc / DATA / HOTE / gameEngine_as3 / build.xml next >
Text File  |  2012-11-21  |  3KB  |  74 lines

  1. <project name="Flex Ant Tasks Build Script" default="compile flex project">
  2.  
  3.     <!-- load previously defined configuration properties file -->
  4.     <property file="build.properties" />
  5.     
  6.     <!-- Project properties --> 
  7.     <property name="DEBUG" value="true"/>
  8.  
  9.     <!-- points to our flexTasks.jar we copied to the libs folder to distribute with the project -->
  10.     <!--<taskdef resource="flexTasks.tasks" classpath="${basedir}/lib/flexTasks.jar"/>--> 
  11.     
  12.  
  13.  
  14.  
  15.     
  16.     <target name="COMPILE GAME_ENGINE ALL">
  17.         <antcall target="Compile SWC reference"/>
  18.         <antcall target="Compile TypesCapsules"/>
  19.         <antcall target="Compile GameEngine SWC"/>
  20.         <antcall target="Compile GameEngine SWF"/>
  21.     </target>
  22.     <target name="Compile SWC reference">
  23.         <property name="CONFIG_FILE" value="${basedir}/reference.flex.compc.xml"/> 
  24.         <exec executable="${COMPC.EXE}">
  25.             <arg line="-load-config+=${CONFIG_FILE}"/>
  26.             <arg line="-debug=${DEBUG}"/>
  27.         </exec>
  28.     </target>
  29.     <target name="Compile GameEngine SWC">
  30.         <property name="CONFIG_FILE" value="${basedir}/gameEngine_as3.flex.compc.xml"/> 
  31.         <exec executable="${COMPC.EXE}">
  32.             <arg line="-load-config+=${CONFIG_FILE}"/>
  33.              <arg line="-debug=${DEBUG}"/>
  34.         </exec>
  35.     </target>
  36.     <target name="Compile GameEngine SWF">
  37.         <unzip 
  38.         src="${basedir}/bin/GameEngine.swc" 
  39.         dest="${basedir}/bin/GameEngine/"
  40.         />
  41.     </target>
  42.     
  43.     <target name="Compile TypesCapsules">
  44.         <property name="CONFIG_FILE" value="${basedir}/types_capsules.flex.compc.xml"/> 
  45.         <exec executable="${COMPC.EXE}">
  46.             <arg line="-load-config+=${CONFIG_FILE}"/>
  47.             <arg line="-debug=${DEBUG}"/>
  48.             
  49.         </exec>
  50.     </target>
  51.     
  52. <!-- Run the ASDoc executable and generate the ASDocs to the new output folder -->
  53.     <target name="compileASDoc">
  54.         <echo>ASDoc Compiling...</echo>
  55.         <property name="AppClasses.dir" value="${basedir}/src"/> 
  56.         <property name="LibrarySrc.dir" value="${basedir}/types_capsules.flex.compc.xml"/> 
  57.         <exec executable="${ASDOC.EXE}" failonerror="true">
  58.             <arg line="-doc-sources '${AppClasses.dir}'" />
  59.             <!--<arg line="-doc-sources '${LibrarySrc.dir}'" />
  60.             <arg line="-external-library-path '${LibrarySrc.dir}'" />
  61.             <arg line="-external-library-path '${Library.dir}/${LibraryLibs.dir}'" />-->
  62.             <arg line="-main-title 'Milan Presse API'" />
  63.             <arg line="-window-title 'Milan Presse API'" />
  64.             <arg line="-output '${basedir}/doc'" />
  65.             <!--<arg line="-package com.milanpresse.capsule 'Classes needed by capsules to compile.'" />
  66.             <arg line="-package com.milanpresse.engine 'GameEngine'" />-->
  67.             <arg line="-footer '_'" />
  68.         </exec>
  69.         <echo>ASDoc Compile Complete</echo>
  70.     </target>
  71.  
  72.  
  73.     </project>
  74.