carbidecpp20devenv/plugins/org.eclipse.pde.build_3.4.1.R34x_v20080805/scripts/package.xml
changeset 1 82d1d1de1a01
equal deleted inserted replaced
-1:000000000000 1:82d1d1de1a01
       
     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" unless="skipMaps">
       
     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" unless="skipFetch">
       
    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" unless="skipUnzip">
       
    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 		<echo message="${target}"/>
       
    38 		<eclipse.assembler featureList="${featureList}" 
       
    39 									workingDirectory="${workingDirectory}" 
       
    40 									configInfo="${config}" 
       
    41 									baseLocation="${target}" 
       
    42 									packagePropertyFile="${packagingPropertyFile}" 
       
    43 									deltaPack="${deltaPack}"
       
    44 									archivesFormat="${archivesFormat}"
       
    45 									filteredDependencyCheck="${filteredDependencyCheck}"
       
    46 									normalize="${normalizeWhilePackaging}"/>
       
    47 	</target>
       
    48 
       
    49 	<!-- Call the assemble.xml script -->
       
    50 	<target name="callAssembleScripts">
       
    51 		<ant antfile="package.all.xml" dir="${workingDirectory}"/>
       
    52 	</target>
       
    53 
       
    54 	<target name="main" description="Start the packager for a given config">
       
    55 		<property file="${packagingInfo}/packager.properties" />
       
    56 		<property name="customTargets" location="${packagingInfo}/customTargets.xml" />
       
    57 		<property name="packagingPropertyFile" location="${packagingInfo}/${packagingProperties}" />
       
    58 		
       
    59 		<condition property="skipMaps" value="true">
       
    60 			<isset property="prefilledTarget" />
       
    61 		</condition>
       
    62 		<condition property="skipFetch" value="true">
       
    63 			<isset property="prefilledTarget" />
       
    64 		</condition>
       
    65 		<condition property="skipUnzip" value="true">
       
    66 			<isset property="prefilledTarget" />
       
    67 		</condition>
       
    68 		
       
    69 		<!-- Compatibility -->
       
    70 		<property name="filteredDependencyCheck" value="false"/>
       
    71 		<condition property="skipMaps" value="true">
       
    72 			<isset property="localMaps"/>
       
    73 		</condition>
       
    74 		<condition property="target" value="${tempDirectory}/${featurePaths}">
       
    75 			<isset property="featurePaths"/>
       
    76 		</condition>
       
    77 		<property name="normalizeWhilePackaging" value="true"/>
       
    78 		
       
    79 		<!-- End of compatibility -->
       
    80 			
       
    81 		<antcall target="init" />
       
    82 		<antcall target="retrieveMapFiles"/>
       
    83 		<antcall target="retrieveFiles"/>
       
    84 		<antcall target="prepareResources"/>
       
    85 		<antcall target="generateAssembleScripts"/>
       
    86 		<antcall target="callAssembleScripts"/>
       
    87 	</target>
       
    88 </project>