carnold 2005/06/27 10:12:58 Modified: . build.xml Log: Bug 33516: Add jdiff target to build.xml Revision Changes Path 1.163 +43 -0 logging-log4j/build.xml Index: build.xml =================================================================== RCS file: /home/cvs/logging-log4j/build.xml,v retrieving revision 1.162 retrieving revision 1.163 diff -u -r1.162 -r1.163 --- build.xml 17 Jun 2005 05:23:19 -0000 1.162 +++ build.xml 27 Jun 2005 17:12:58 -0000 1.163 @@ -1,3 +1,20 @@ +<?xml version="1.0" encoding="utf-8" ?> +<!-- + Copyright 2002, 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="log4j" default="usage" basedir="." > @@ -717,6 +734,32 @@ <classpath path="${regexp.oro.jar}"/> </javadoc> </target> + + + <!-- ================================================================= --> + <!-- Compare the current API with a previous release --> + <!-- ================================================================= --> + <target name="jdiff" depends="slf4jCheck" description="Generate comparison to reference API"> + <property name="reference-api.version" value="1.2.11"/> + <property name="reference-api.dir" location="${user.home}/logging-log4j-${reference-api.version}"/> + <property name="reference-api.source.dir" location="${user.home}/logging-log4j-${reference-api.version}/src/java"/> + + <!-- Must be set to the root of where JDiff is installed. --> + <property name="JDIFF_HOME" value="${user.home}/jdiff"/> + <!-- Just one simple way to tell Ant about the JDiff task --> + <taskdef name="jdiff" classname="jdiff.JDiffAntTask" + classpath="${JDIFF_HOME}/lib/antjdiff.jar"/> + + <jdiff verbose="on" destdir="build/jdiff"> + <old name="Version ${reference-api.version}"> + <dirset dir="${reference-api.source.dir}" includes="org/**"/> + </old> + <new name="Version ${version}"> + <dirset dir="${java.source.dir}" includes="org/**"/> + <dirset dir="${slf4j.source.dir}"/> + </new> + </jdiff> + </target> <!-- ============================================== --> <!-- Build the site files using Anakia -->
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]