You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by ca...@apache.org on 2005/07/15 01:51:37 UTC
cvs commit: logging-log4j build.xml
carnold 2005/07/14 16:51:37
Modified: . Tag: v1_2-branch build.xml
Log:
Bug 35516: Add jdiff target to build.xml on 1.2 branch
Revision Changes Path
No revision
No revision
1.34.2.23 +24 -3 logging-log4j/build.xml
Index: build.xml
===================================================================
RCS file: /home/cvs/logging-log4j/build.xml,v
retrieving revision 1.34.2.22
retrieving revision 1.34.2.23
diff -u -r1.34.2.22 -r1.34.2.23
--- build.xml 19 Jun 2005 00:17:31 -0000 1.34.2.22
+++ build.xml 14 Jul 2005 23:51:37 -0000 1.34.2.23
@@ -396,9 +396,30 @@
</javadoc>
</target>
- <!-- ============================================== -->
- <!-- Build the site files using Anakia -->
- <!-- ============================================== -->
+ <!-- ================================================================= -->
+ <!-- Compare the current API with a previous release -->
+ <!-- ================================================================= -->
+ <target name="jdiff" description="Generate comparison to reference API">
+ <property name="reference-api.version" value="1.2.9"/>
+ <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/**" excludes="org/apache/log4j/test/**"/>
+ </new>
+ </jdiff>
+ </target>
+
<!-- ============================================== -->
<!-- Build the site files using Anakia -->
<!-- ============================================== -->
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org