Skip to main content
summaryrefslogtreecommitdiffstats
blob: 5f5d6477ea6add811452ba2e8db585c0dd0dca74 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<project name="Build Repos" default="all" basedir=".">

  <target name="all">
    <antcall target="pde" />
    <antcall target="pde-api" />
    <antcall target="jdt" />
    <antcall target="cvs" />
    <antcall target="relengtools" />
    <antcall target="sdkexamples" />
    <antcall target="pdesource" />
    <antcall target="jdtsource" />
    <antcall target="cvssource" />
  </target>

  <target name="pde">
    <buildRepos feature="org.eclipse.pde" />
  </target>

  <target name="pde-api">
    <buildRepos feature="org.eclipse.pde.api.tools.ee.feature" />
  </target>

  <target name="jdt">
    <buildRepos feature="org.eclipse.jdt" />
  </target>

  <target name="cvs">
    <buildRepos feature="org.eclipse.cvs" />
  </target>

  <target name="relengtools">
    <buildRepos feature="org.eclipse.releng.tools" />
  </target>

  <target name="sdkexamples">
    <buildRepos feature="org.eclipse.sdk.examples.source" />
  </target>

  <target name="pdesource">
    <buildReposSource feature="org.eclipse.pde" />
  </target>

  <target name="jdtsource">
    <buildReposSource feature="org.eclipse.jdt" />
  </target>

  <target name="cvssource">
    <buildReposSource feature="org.eclipse.cvs" />
  </target>

  <macrodef name="buildReposSource">
    <attribute name="feature" />

    <sequential>
      <property name="runtimeIU" value="@{feature}.feature.group" />
      <property name="sdkIU" value="@{feature}.source.feature.group" />
      <property name="featureTemp" value="${eclipse.build.configs}/repos/featureTemp" />
      <delete dir="${featureTemp}" />
      <mkdir dir="${featureTemp}" />
      <p2.mirror source="file://${buildRepo}">
        <destination kind="metadata" location="file://${featureTemp}" name="@{feature} Repo" format="file://${buildRepo}" />
        <destination kind="artifact" location="file://${featureTemp}" name="@{feature} Repo" format="file://${buildRepo}" />
        <iu id="${runtimeIU}" version="" />
        <iu id="${sdkIU}" version="" />
        <slicingOptions platformFilter="true" includeOptional="false" includeNonGreedy="false" followStrict="true" />
      </p2.mirror>
      <p2.remove.iu>
        <repository location="file://${featureTemp}" />
        <iu query="" artifacts="(format=packed)" />
      </p2.remove.iu>
      <antcall target="assembler">
        <param name="archiveName" value="@{feature}.source-${buildId}.zip" />
      </antcall>
    </sequential>
  </macrodef>

  <macrodef name="buildRepos">
    <attribute name="feature" />
    <sequential>
      <property name="runtimeIU" value="@{feature}.feature.group" />
      <property name="featureTemp" value="${eclipse.build.configs}/repos/featureTemp" />
      <delete dir="${featureTemp}" />
      <mkdir dir="${featureTemp}" />
      <p2.mirror source="file://${buildRepo}">
        <destination kind="metadata" location="file://${featureTemp}" name="@{feature} Repo" format="file://${buildRepo}" />
        <destination kind="artifact" location="file://${featureTemp}" name="@{feature} Repo" format="file://${buildRepo}" />
        <iu id="${runtimeIU}" version="" />
        <slicingOptions platformFilter="true" includeOptional="false" includeNonGreedy="false" followStrict="true" />
      </p2.mirror>
      <p2.remove.iu>
        <repository location="file://${featureTemp}" />
        <iu query="" artifacts="(format=packed)" />
      </p2.remove.iu>
      <antcall target="assembler">
        <param name="archiveName" value="@{feature}-${buildId}.zip" />
      </antcall>
    </sequential>
  </macrodef>

  <target name="assembler">
    <mkdir dir="${postingDirectory}/${buildLabel}/checksum" />
    <property name="archiveFullPath" value="${postingDirectory}/${buildLabel}/${archiveName}" />
    <exec executable="zip" dir="${featureTemp}">
      <arg line="${archiveFullPath} -r ." />
    </exec>
  </target>
</project>

Back to the top