Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: ef6cbe55f78506ffc8c073fe1eff4c3de1ebf482 (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
<?xml version="1.0"?>
<project name="Build CVS 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>
 
    <antcall target="buildPlugin">
      <param name="pluginName" value="org.eclipse.team.tests.cvs.core" />
      <param name="jarName" value="cvstests.jar" />
    </antcall>

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

    <delete dir="${temp}"/>
    <eclipse.refreshLocal resource="org.eclipse.team.tests.cvs.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