Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 9a16b11eb142283f067ded8faa241d483b849948 (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
<?xml version="1.0"?>
<project name="Build Team Sniff" basedir="." default="init">

  <property name="root" value="${basedir}/.."/>
  <property name="temp" value="${root}/__temp"/>
  <property name="plugins" value="${temp}/eclipse/plugins"/>

  <target name="init">
    <tstamp/>

    <delete dir="${temp}"/>
    <mkdir dir="${plugins}"/>

    <antcall target="buildPlugin">
      <param name="pluginName" value="org.eclipse.core.tests.harness" />
      <param name="jarName" value="testharness.jar" />
    </antcall>
    
    <antcall target="buildPlugin">
      <param name="pluginName" value="org.eclipse.team.tests.core" />
      <param name="jarName" value="teamtests.jar" />
    </antcall>

    <zip zipfile="${basedir}/teamSniff${DSTAMP}.zip"
       basedir="${temp}"
    />

    <delete dir="${temp}"/>
    <eclipse.refreshLocal resource="org.eclipse.team.tests.core"/>
  </target>

  <target name="buildPlugin">
    <copy todir="${plugins}/${pluginName}">
      <fileset dir="${root}/${pluginName}"/>
    </copy>
    <jar jarfile="${plugins}/${pluginName}/${jarName}"
         basedir="${plugins}/${pluginName}/bin"
    />
    <delete dir="${plugins}/${pluginName}/bin"/>
  </target>

</project>

Back to the top