home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 2006 April / DPPRO0406DVD.ISO / Essentials / Programming / Eclipse SDK / eclipse-SDK-3.1.1-win32.exe / eclipse / plugins / org.eclipse.pde.build_3.1.0 / scripts / package.xml < prev   
Encoding:
Text File  |  2005-09-29  |  2.5 KB  |  64 lines

  1. <project name="packager" default="main" basedir=".">
  2.     <target name="init">
  3.         <mkdir dir="${workingDirectory}"/>
  4.         <mkdir dir="${downloadDirectory}"/>
  5.         <mkdir dir="${tempDirectory}"/>
  6.     </target>
  7.  
  8.     <target name="retrieveMapFiles">
  9.         <available property="mapsFetched" file="${workingDirectory}/all.maps"/>
  10.         <ant antfile="${customTargets}" target="getMapFiles" />
  11.         <concat destfile="${workingDirectory}/all.maps">
  12.             <fileset dir="${downloadDirectory}" includes="**/*.map"/>
  13.         </concat>
  14.     </target>
  15.     
  16.     <!-- take the content of all.maps, retrieve the files according to the filtering options (config, content), 
  17.     and generate a directory.txt for the rest of the process using config as a key, and containing the name of the zip and the directory -->
  18.     <target name="retrieveFiles">
  19.         <eclipse.fetchFilesGenerator map="${workingDirectory}/all.maps"
  20.                                     workingDirectory="${workingDirectory}"
  21.                                     configInfo="${config}"
  22.                                     contentFilter="${contentFilter}"
  23.                                     componentFilter="${componentFilter}"/>
  24.         <ant antfile="fetch.xml" dir="${workingDirectory}" />
  25.     </target>
  26.     
  27.     <!-- Process the directory.txt to create unzipper.xml, and run unzipper.xml-->
  28.     <target name="prepareResources">
  29.         <eclipse.unzipperBuilder     workingDirectory="${workingDirectory}" 
  30.                                             configInfo="${config}"
  31.                                             packagePropertyFile="${packagingPropertyFile}"/>
  32.         <ant antfile="${workingDirectory}/unzipper.xml"/>
  33.     </target>
  34.  
  35.     <!-- Generate an assemble script (assemble.xml) for the given features -->
  36.     <target name="generateAssembleScripts">
  37.         <eclipse.assembler featureList="${featureList}" 
  38.                                     workingDirectory="${workingDirectory}" 
  39.                                     configInfo="${config}" 
  40.                                     baseLocation="${tempDirectory}/${featurePaths}" 
  41.                                     packagePropertyFile="${packagingPropertyFile}" 
  42.                                     deltaPack="${deltaPack}"
  43.                                     archivesFormat="${archivesFormat}"/> 
  44.     </target>
  45.  
  46.     <!-- Call the assemble.xml script -->
  47.     <target name="callAssembleScripts">
  48.         <ant antfile="package.all.xml" dir="${workingDirectory}"/>
  49.     </target>
  50.     
  51.     
  52.     <target name="main" description="Start the packager for a given config">
  53.         <property file="${packagingInfo}/packager.properties"/>
  54.         <property name="customTargets" location="${packagingInfo}/customTargets.xml"/>
  55.         <property name="packagingPropertyFile" location="${packagingInfo}/${packagingProperties}"/>
  56.         
  57.         <antcall target="init"/>
  58.         <antcall target="retrieveMapFiles"/>
  59.         <antcall target="retrieveFiles"/>
  60.         <antcall target="prepareResources"/>
  61.         <antcall target="generateAssembleScripts"/>
  62.         <antcall target="callAssembleScripts"/>
  63.     </target>
  64. </project>