package.xml revision 402794e73aed8611d62eb4b01cd155e2d76fcb87
1<!-- 2 Copyright (c) 2003, 2007 IBM Corporation and others. 3 All rights reserved. This program and the accompanying materials 4 are made available under the terms of the Eclipse Public License v1.0 5 which accompanies this distribution, and is available at 6 http://www.eclipse.org/legal/epl-v10.html 7 8 Contributors: 9 IBM Corporation - initial API and implementation 10 --> 11<project name="packager" default="main" basedir="."> 12 <target name="init"> 13 <mkdir dir="${workingDirectory}"/> 14 <mkdir dir="${downloadDirectory}"/> 15 <mkdir dir="${tempDirectory}"/> 16 </target> 17 18 <target name="retrieveMapFiles" unless="skipMaps"> 19 <available property="mapsFetched" file="${workingDirectory}/all.maps"/> 20 <ant antfile="${customTargets}" target="getMapFiles" /> 21 <concat destfile="${workingDirectory}/all.maps"> 22 <fileset dir="${downloadDirectory}" includes="**/*.map"/> 23 </concat> 24 </target> 25 26 <!-- take the content of all.maps, retrieve the files according to the filtering options (config, content), 27 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 --> 28 <target name="retrieveFiles" unless="skipFetch"> 29 <eclipse.fetchFilesGenerator map="${workingDirectory}/all.maps" 30 workingDirectory="${workingDirectory}" 31 configInfo="${config}" 32 contentFilter="${contentFilter}" 33 componentFilter="${componentFilter}"/> 34 <ant antfile="fetch.xml" dir="${workingDirectory}" /> 35 </target> 36 37 <!-- Process the directory.txt to create unzipper.xml, and run unzipper.xml--> 38 <target name="prepareResources" unless="skipUnzip"> 39 <eclipse.unzipperBuilder workingDirectory="${workingDirectory}" 40 configInfo="${config}" 41 packagePropertyFile="${packagingPropertyFile}"/> 42 <ant antfile="${workingDirectory}/unzipper.xml"/> 43 </target> 44 45 <!-- Generate an assemble script (assemble.xml) for the given features --> 46 <target name="generateAssembleScripts"> 47 <echo message="${target}"/> 48 <eclipse.assembler featureList="${featureList}" 49 workingDirectory="${workingDirectory}" 50 configInfo="${config}" 51 baseLocation="${target}" 52 packagePropertyFile="${packagingPropertyFile}" 53 deltaPack="${deltaPack}" 54 archivesFormat="${archivesFormat}" 55 filteredDependencyCheck="${filteredDependencyCheck}" 56 normalize="${normalizeWhilePackaging}"/> 57 </target> 58 59 <!-- Call the assemble.xml script --> 60 <target name="callAssembleScripts"> 61 <ant antfile="package.all.xml" dir="${workingDirectory}"/> 62 </target> 63 64 <target name="main" description="Start the packager for a given config"> 65 <property file="${packagingInfo}/packager.properties" /> 66 <property name="customTargets" location="${packagingInfo}/customTargets.xml" /> 67 <property name="packagingPropertyFile" location="${packagingInfo}/${packagingProperties}" /> 68 69 <condition property="skipMaps" value="true"> 70 <isset property="prefilledTarget" /> 71 </condition> 72 <condition property="skipFetch" value="true"> 73 <isset property="prefilledTarget" /> 74 </condition> 75 <condition property="skipUnzip" value="true"> 76 <isset property="prefilledTarget" /> 77 </condition> 78 79 <!-- Compatibility --> 80 <property name="filteredDependencyCheck" value="false"/> 81 <condition property="skipMaps" value="true"> 82 <isset property="localMaps"/> 83 </condition> 84 <condition property="target" value="${tempDirectory}/${featurePaths}"> 85 <isset property="featurePaths"/> 86 </condition> 87 <property name="normalizeWhilePackaging" value="true"/> 88 89 <!-- End of compatibility --> 90 91 <antcall target="init" /> 92 <antcall target="retrieveMapFiles"/> 93 <antcall target="retrieveFiles"/> 94 <antcall target="prepareResources"/> 95 <antcall target="generateAssembleScripts"/> 96 <antcall target="callAssembleScripts"/> 97 </target> 98</project>