carbidecpp20devenv/plugins/org.eclipse.pde.build_3.4.1.R34x_v20080805/scripts/package.xml
author cawthron
Wed, 18 Mar 2009 17:21:00 -0500
changeset 1 82d1d1de1a01
permissions -rw-r--r--
import Carbide.c++
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
     1
<project name="packager" default="main" basedir=".">
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
     2
	<target name="init">
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
     3
		<mkdir dir="${workingDirectory}"/>
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
     4
		<mkdir dir="${downloadDirectory}"/>
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
     5
		<mkdir dir="${tempDirectory}"/>
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
     6
	</target>
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
     7
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
     8
	<target name="retrieveMapFiles" unless="skipMaps">
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
     9
		<available property="mapsFetched" file="${workingDirectory}/all.maps"/>
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
    10
		<ant antfile="${customTargets}" target="getMapFiles" />
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
    11
		<concat destfile="${workingDirectory}/all.maps">
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
    12
			<fileset dir="${downloadDirectory}" includes="**/*.map"/>
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
    13
		</concat>
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
    14
	</target>
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
    15
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
    16
	<!-- take the content of all.maps, retrieve the files according to the filtering options (config, content), 
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
    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 -->
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
    18
	<target name="retrieveFiles" unless="skipFetch">
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
    19
		<eclipse.fetchFilesGenerator map="${workingDirectory}/all.maps"
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
    20
									workingDirectory="${workingDirectory}"
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
    21
									configInfo="${config}"
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
    22
									contentFilter="${contentFilter}"
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
    23
									componentFilter="${componentFilter}"/>
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
    24
		<ant antfile="fetch.xml" dir="${workingDirectory}" />
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
    25
	</target>
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
    26
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
    27
	<!-- Process the directory.txt to create unzipper.xml, and run unzipper.xml-->
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
    28
	<target name="prepareResources" unless="skipUnzip">
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
    29
		<eclipse.unzipperBuilder 	workingDirectory="${workingDirectory}" 
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
    30
											configInfo="${config}"
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
    31
											packagePropertyFile="${packagingPropertyFile}"/>
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
    32
		<ant antfile="${workingDirectory}/unzipper.xml"/>
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
    33
	</target>
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
    34
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
    35
	<!-- Generate an assemble script (assemble.xml) for the given features -->
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
    36
	<target name="generateAssembleScripts">
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
    37
		<echo message="${target}"/>
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
    38
		<eclipse.assembler featureList="${featureList}" 
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
    39
									workingDirectory="${workingDirectory}" 
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
    40
									configInfo="${config}" 
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
    41
									baseLocation="${target}" 
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
    42
									packagePropertyFile="${packagingPropertyFile}" 
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
    43
									deltaPack="${deltaPack}"
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
    44
									archivesFormat="${archivesFormat}"
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
    45
									filteredDependencyCheck="${filteredDependencyCheck}"
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
    46
									normalize="${normalizeWhilePackaging}"/>
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
    47
	</target>
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
    48
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
    49
	<!-- Call the assemble.xml script -->
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
    50
	<target name="callAssembleScripts">
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
    51
		<ant antfile="package.all.xml" dir="${workingDirectory}"/>
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
    52
	</target>
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
    53
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
    54
	<target name="main" description="Start the packager for a given config">
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
    55
		<property file="${packagingInfo}/packager.properties" />
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
    56
		<property name="customTargets" location="${packagingInfo}/customTargets.xml" />
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
    57
		<property name="packagingPropertyFile" location="${packagingInfo}/${packagingProperties}" />
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
    58
		
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
    59
		<condition property="skipMaps" value="true">
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
    60
			<isset property="prefilledTarget" />
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
    61
		</condition>
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
    62
		<condition property="skipFetch" value="true">
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
    63
			<isset property="prefilledTarget" />
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
    64
		</condition>
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
    65
		<condition property="skipUnzip" value="true">
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
    66
			<isset property="prefilledTarget" />
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
    67
		</condition>
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
    68
		
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
    69
		<!-- Compatibility -->
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
    70
		<property name="filteredDependencyCheck" value="false"/>
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
    71
		<condition property="skipMaps" value="true">
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
    72
			<isset property="localMaps"/>
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
    73
		</condition>
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
    74
		<condition property="target" value="${tempDirectory}/${featurePaths}">
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
    75
			<isset property="featurePaths"/>
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
    76
		</condition>
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
    77
		<property name="normalizeWhilePackaging" value="true"/>
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
    78
		
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
    79
		<!-- End of compatibility -->
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
    80
			
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
    81
		<antcall target="init" />
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
    82
		<antcall target="retrieveMapFiles"/>
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
    83
		<antcall target="retrieveFiles"/>
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
    84
		<antcall target="prepareResources"/>
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
    85
		<antcall target="generateAssembleScripts"/>
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
    86
		<antcall target="callAssembleScripts"/>
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
    87
	</target>
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
    88
</project>