alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

What this is

This file is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Other links

The source code

<?xml version="1.0"?>
<project name="Build Core 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.osgi.tests" />
      <param name="jarName" value="osgitests.jar" />
    </antcall>
 
    <antcall target="buildPlugin">
      <param name="pluginName" value="org.eclipse.core.tests.resources" />
      <param name="jarName" value="resourcestests.jar" />
    </antcall>
 
    <antcall target="buildPlugin">
      <param name="pluginName" value="org.eclipse.core.tests.resources.saveparticipant" />
      <param name="jarName" value="saveparticipant.jar" />
    </antcall>

    <antcall target="buildPlugin">
      <param name="pluginName" value="org.eclipse.core.tests.resources.saveparticipant1" />
      <param name="jarName" value="saveparticipant1.jar" />
    </antcall>

    <antcall target="buildPlugin">
      <param name="pluginName" value="org.eclipse.core.tests.resources.saveparticipant2" />
      <param name="jarName" value="saveparticipant2.jar" />
    </antcall>

    <antcall target="buildPlugin">
      <param name="pluginName" value="org.eclipse.core.tests.resources.saveparticipant3" />
      <param name="jarName" value="saveparticipant3.jar" />
    </antcall>

    <antcall target="buildPlugin">
      <param name="pluginName" value="org.eclipse.core.tests.runtime" />
      <param name="jarName" value="runtimetests.jar" />
    </antcall>

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

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

    <delete dir="${temp}"/>
    <eclipse.refreshLocal resource="org.eclipse.core.tests.harness"/>
  </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>
... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.