<?xml version="1.0"?>

<!--
 Copyright  2005 The Apache Software Foundation
 
  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at
 
      http://www.apache.org/licenses/LICENSE-2.0
 
  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
-->

<project name="revisiondiff-test" basedir="../../../" 
         default="diff-with-implicit-trunk"
         xmlns:svn="antlib:org.apache.tools.ant.taskdefs.svn">

  <property name="tmpdir" value="tmpdir"/>

  <target name="dir-prep">
    <mkdir dir="${tmpdir}"/>
  </target>

  <target name="diff-with-two-tags" depends="dir-prep">
    <svn:tagdiff failonerror="true"
      baseURL="http://svn.apache.org/repos/asf/jakarta/bcel/"
      destfile="${tmpdir}/diff.xml"
      tag2="BCEL_5_0" tag1="initial"/>
  </target>

  <target name="diff-with-explicit-trunk" depends="dir-prep">
    <svn:tagdiff failonerror="true"
      baseURL="http://svn.apache.org/repos/asf/jakarta/bcel/"
      destfile="${tmpdir}/diff.xml"
      tag1="BCEL_5_0" tag2="trunk"/>
  </target>

  <target name="diff-with-implicit-trunk" depends="dir-prep">
    <svn:tagdiff failonerror="true"
      baseURL="http://svn.apache.org/repos/asf/jakarta/bcel/"
      destfile="${tmpdir}/diff.xml"
      tag1="BCEL_5_0"/>
  </target>

  <!--target name="report" depends="diff-with-implicit-trunk"-->
  <target name="report">
    <style in="/tmp/diff.xml" 
      out="/tmp/diff.html" 
      style="src/etc/diff.xsl">
      <param name="title" expression="Jakarta BCEL diff"/>
      <param name="repo" expression="http://svn.apache.org/repos/asf/jakarta/bcel/trunk"/>
    </style>
  </target>

  <target name="cleanup">
    <delete dir="${tmpdir}" />
  </target>
</project>
