0
|
1 |
<project name="Build a Product" default="main">
|
|
2 |
|
|
3 |
<!-- ===================================================================== -->
|
|
4 |
<!-- Global properties. See the build.properties for information on -->
|
|
5 |
<!-- the properties which callers can control. -->
|
|
6 |
<!-- ===================================================================== -->
|
|
7 |
<property name="allElementsFile" value="${eclipse.pdebuild.scripts}/productBuild/allElements.xml"/>
|
|
8 |
<import file="${eclipse.pdebuild.scripts}/build.xml"/>
|
|
9 |
<property name="pluginPath" value=""/>
|
|
10 |
<property name="pluginList" value=""/>
|
|
11 |
<property name="featureList" value=""/>
|
|
12 |
<property name="includeLaunchers" value="true"/>
|
|
13 |
|
|
14 |
<!-- ===================================================================== -->
|
|
15 |
<!-- main entry point to setup, fetch, generate, build etc. Use -->
|
|
16 |
<!-- the customTargets.xml to modify the build behaviour. -->
|
|
17 |
<!-- ===================================================================== -->
|
|
18 |
<target name="main" description="the main build target">
|
|
19 |
<antcall target="preBuild" />
|
|
20 |
<antcall target="generateFeature"> <!-- Generate the feature to drive the fetch -->
|
|
21 |
<param name="verify" value="false"/>
|
|
22 |
</antcall>
|
|
23 |
<antcall target="fetch" />
|
|
24 |
<antcall target="generateFeature"> <!-- We are calling generate feature a second time so that we can get the pack / unpack clause fixed -->
|
|
25 |
<param name="verify" value="true"/>
|
|
26 |
</antcall>
|
|
27 |
<antcall target="generate" />
|
|
28 |
<antcall target="process" />
|
|
29 |
<antcall target="assemble" />
|
|
30 |
<antcall target="package" />
|
|
31 |
<antcall target="postBuild" />
|
|
32 |
</target>
|
|
33 |
|
|
34 |
<!-- ===================================================================== -->
|
|
35 |
<!-- Generate a container feature based on the product file -->
|
|
36 |
<!-- The plugin or feature containing the .product file will need to exist -->
|
|
37 |
<!-- already, use preSetup or postSetup to fetch it if necessary -->
|
|
38 |
<!-- ===================================================================== -->
|
|
39 |
<target name="generateFeature">
|
|
40 |
<eclipse.generateFeature
|
|
41 |
featureId="org.eclipse.pde.build.container.feature"
|
|
42 |
buildDirectory="${buildDirectory}"
|
|
43 |
baseLocation="${baseLocation}"
|
|
44 |
productFile="${product}"
|
|
45 |
verify="${verify}"
|
|
46 |
pluginPath="${pluginPath}"
|
|
47 |
configInfo="${configs}"
|
|
48 |
pluginList="${pluginList}"
|
|
49 |
featureList="${featureList}"
|
|
50 |
includeLaunchers="${includeLaunchers}"
|
|
51 |
/>
|
|
52 |
</target>
|
|
53 |
|
|
54 |
|
|
55 |
</project>
|