Re: [rules-users] how to check difference between two .pkg files

2013-09-10 Thread Esteban Aliverti
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/org/drools/agent/impl/BinaryResourceDiffProducerImpl.java),
but be sure that it doesn't implement all possible cases.

Regards,




Esteban Aliverti
- Blog @ http://ilesteban.wordpress.com


On Tue, Sep 10, 2013 at 6:07 AM, Zahid Ahmed zahid.ah...@emirates.comwrote:

 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-boun...@lists.jboss.org [mailto:
 rules-users-boun...@lists.jboss.org] On Behalf Of maunakea
 Sent: 09 September 2013 20:38
 To: rules-users@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-files-tp4025877.html
 Sent from the Drools: User forum mailing list archive at Nabble.com.
 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users

 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

[rules-users] how to check difference between two .pkg files

2013-09-09 Thread maunakea
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-files-tp4025877.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] how to check difference between two .pkg files

2013-09-09 Thread Zahid Ahmed
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-boun...@lists.jboss.org 
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of maunakea
Sent: 09 September 2013 20:38
To: rules-users@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-files-tp4025877.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users