Permalink
Browse files

Added Clirr (http://clirr.sourceforge.net/) support to the build for …

…checking binary compatibility between releases
  • Loading branch information...
1 parent d422686 commit 3caa70c2ab21fad008481212a49b3f886bc72bb7 @jyemin jyemin committed Apr 13, 2012
Showing with 20 additions and 1 deletion.
  1. +3 −0 build.properties
  2. +17 −1 build.xml
  3. BIN lib/clirr-core-0.6-uber.jar
View
@@ -17,3 +17,6 @@
javac.source=1.5
lib.version=2.8.0.BUILD-SNAPSHOT
+
+compatibility.baseline.version=2.7.3
+url.libbase=http://cloud.github.com/downloads/mongodb
View
@@ -16,7 +16,7 @@ See the License for the specific language governing permissions and
limitations under the License.
-->
-<project name="MongoDB Java Driver" default="compile" basedir=".">
+<project name="mongo-java-driver" default="compile" basedir=".">
<taskdef resource="net/sf/antcontrib/antcontrib.properties">
<classpath>
@@ -368,6 +368,22 @@ limitations under the License.
<!--</clover-report>-->
</target>
+
+ <target name="check-binary-compatibility" depends="jar">
+ <taskdef classpathref="classpath" resource="clirrtask.properties"/>
+
+ <property name="jar.baseline" value="mongo-${build.conf.compatibility.baseline.version}.jar"/>
+
+ <get src="${build.conf.url.libbase}/${ant.project.name}/${jar.baseline}" dest="${jar.baseline}"
+ verbose="true" usetimestamp="true"/>
+
+ <clirr failOnBinError="no" failOnSrcError="no">
+ <origfiles dir="." includes="${jar.baseline}"/>
+ <newfiles dir="." includes="mongo.jar"/>
+ <formatter type="plain" outfile="build/clirr.txt"/>
+ </clirr>
+ </target>
+
<!-- NOTE: publish-local is now located in maven/ -->
</project>
View
Binary file not shown.

0 comments on commit 3caa70c

Please sign in to comment.