Just one more thing: Guvnor doesn'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.
Doing a binary comparison is not an easy thing. You can take this class as
a starting point (
https://github.com/droolsjbpm/drools/blob/5.6.x/drools-core/src/main/java...),
but be sure that it doesn't implement all possible cases.
Regards,
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Esteban Aliverti
- Blog @
http://ilesteban.wordpress.com
On Tue, Sep 10, 2013 at 6:07 AM, Zahid Ahmed <zahid.ahmed(a)emirates.com>wrote:
Hi,
It depends which version of Guvnor u r using. If its 5.x then, there are
two ways to do this;
1. Use guvnor provided REST interface to get information related to
packages.
2. Use JackRabbit API to directly access the repository as Guvnor 5.x uses
JackRabbit as the assets repository.
Regards,
Zahid Ahmed
-----Original Message-----
From: rules-users-bounces(a)lists.jboss.org [mailto:
rules-users-bounces(a)lists.jboss.org] On Behalf Of maunakea
Sent: 09 September 2013 20:38
To: rules-users(a)lists.jboss.org
Subject: [rules-users] how to check difference between two .pkg files
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.
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?
thanks
--
View this message in context:
http://drools.46999.n3.nabble.com/how-to-check-difference-between-two-pkg...
Sent from the Drools: User forum mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users