<div dir="ltr">Just one more thing: Guvnor doesn&#39;t compare the binary packages, it uses the data stored in its repository to do this. So, just like Zahid said, Guvnor uses JCR to compare 2 different versions of the same package.<br>

Doing a binary comparison is not an easy thing. You can take this class as a starting point (<a href="https://github.com/droolsjbpm/drools/blob/5.6.x/drools-core/src/main/java/org/drools/agent/impl/BinaryResourceDiffProducerImpl.java">https://github.com/droolsjbpm/drools/blob/5.6.x/drools-core/src/main/java/org/drools/agent/impl/BinaryResourceDiffProducerImpl.java</a>), but be sure that it doesn&#39;t implement all possible cases.<div>

<br></div><div>Regards, </div></div><div class="gmail_extra"><br clear="all"><div><br>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br><br>Esteban Aliverti<br>- Blog @ <a href="http://ilesteban.wordpress.com" target="_blank">http://ilesteban.wordpress.com</a></div>


<br><br><div class="gmail_quote">On Tue, Sep 10, 2013 at 6:07 AM, Zahid Ahmed <span dir="ltr">&lt;<a href="mailto:zahid.ahmed@emirates.com" target="_blank">zahid.ahmed@emirates.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hi,<br>
<br>
It depends which version of Guvnor u r using. If its 5.x then, there are two ways to do this;<br>
<br>
1. Use guvnor provided REST interface to get information related to packages.<br>
2. Use JackRabbit API to directly access the repository as Guvnor 5.x uses JackRabbit as the assets repository.<br>
<br>
Regards,<br>
Zahid Ahmed<br>
<div class="HOEnZb"><div class="h5"><br>
-----Original Message-----<br>
From: <a href="mailto:rules-users-bounces@lists.jboss.org">rules-users-bounces@lists.jboss.org</a> [mailto:<a href="mailto:rules-users-bounces@lists.jboss.org">rules-users-bounces@lists.jboss.org</a>] On Behalf Of maunakea<br>


Sent: 09 September 2013 20:38<br>
To: <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
Subject: [rules-users] how to check difference between two .pkg files<br>
<br>
I have 2 .pkg files that are 2 snapshots for the same package from 2 different Guvnor instances. The 2 Guvnor instances are prod and test. I see that within Guvnor, it can show diff between 2 snapshots in its repository.<br>


If Guvnor can do it, there must be some API that I can use outside in a standalone program to compare between .pkg file. Anybody knows how to do this?<br>
<br>
thanks<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/how-to-check-difference-between-two-pkg-files-tp4025877.html" target="_blank">http://drools.46999.n3.nabble.com/how-to-check-difference-between-two-pkg-files-tp4025877.html</a><br>


Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</div></div></blockquote></div><br></div>