Skip to main content
aboutsummaryrefslogblamecommitdiffstats
blob: 6476c09302dd9540ec19ca6061b0ba9dfbea72da (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12

                                      









                                                                         













































                                                                         
<?xml version="1.0" encoding="UTF-8"?>
<!--
    Copyright (c) 2002, 2011 IBM Corporation and others.
    All rights reserved. This program and the accompanying materials
    are made available under the terms of the Eclipse Public License v1.0
    which accompanies this distribution, and is available at
    http://www.eclipse.org/legal/epl-v10.html
   
    Contributors:
        IBM Corporation - initial API and implementation
 -->

<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