<?xml version="1.0"?>

<!DOCTYPE project [
    <!ENTITY common SYSTEM "file:../common.xml">
]>

<project name="bsf" default="main">

  <property environment="env"/>
  <property name="classpath" value="${env.SERVLET_JAR}:${env.BSF_JAR}" />

  <!-- =================================================================== -->
  <!-- make sure that BSF_JAR points to a real file                        -->
  <!-- =================================================================== -->
  <property name="checkRequirements.pre" value="checkRequirements.pre"/>
  <target name="checkRequirements.pre">
    <antcall target="checkRequiredFile">
       <param name="file" value="${env.BSF_JAR}"/>
       <param name="fail.message" value="bsf is required for this taglib. please define the environment variable BSF_JAR to point to the bsf jar file"/>
    </antcall>
  </target>

  <!-- =================================================================== -->
  <!-- copy the bsf jar file to the examples lib dir                       -->
  <!-- =================================================================== -->
  <property name="compile-examples.pre" value="compile-examples.pre"/>
  <target name="compile-examples.pre">
    <copy file="${env.BSF_JAR}"
          tofile="${build.examples}/WEB-INF/lib/bsf-ibm.jar"/>
  </target>

  &common;

</project>

