Skip to content

Commit

Permalink
Added Clirr (http://clirr.sourceforge.net/) support to the build for …
Browse files Browse the repository at this point in the history
…checking binary compatibility between releases
  • Loading branch information
jyemin committed Apr 13, 2012
1 parent d422686 commit 3caa70c
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
3 changes: 3 additions & 0 deletions build.properties
Expand Up @@ -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
18 changes: 17 additions & 1 deletion build.xml
Expand Up @@ -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>
Expand Down Expand Up @@ -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>
Binary file added lib/clirr-core-0.6-uber.jar
Binary file not shown.

0 comments on commit 3caa70c

Please sign in to comment.