Revision: 6442 Author: [email protected] Date: Wed Oct 21 17:26:40 2009 Log: Add rebased version of the Protocol Buffer library.
Review by: mmendez (TBR) http://code.google.com/p/google-web-toolkit/source/detail?r=6442 Added: /tools/lib/protobuf/protobuf-2.2.0/protobuf-java-rebased-2.2.0.jar Modified: /tools/lib/protobuf/protobuf-2.2.0/README ======================================= --- /dev/null +++ /tools/lib/protobuf/protobuf-2.2.0/protobuf-java-rebased-2.2.0.jar Wed Oct 21 17:26:40 2009 Binary file, no diff available. ======================================= --- /tools/lib/protobuf/protobuf-2.2.0/README Tue Oct 20 15:43:26 2009 +++ /tools/lib/protobuf/protobuf-2.2.0/README Wed Oct 21 17:26:40 2009 @@ -1,7 +1,7 @@ This is version 2.2.0 of the Java Protocol Buffer Library. We use protocol buffers communication protocol between the Development Mode Server and Remote Viewers. -To build this library: +To build protobuf-java-2.2.0.jar: 1) Download http://protobuf.googlecode.com/files/protobuf-2.2.0.tar.gz 2) Unzip the archive @@ -20,3 +20,26 @@ platform-dependent encoding warnings during the packaging step. See http://maven.apache.org/general.html#encoding-warning for more information. +In order to prevent conflicts with user code which relies on Protocol Buffers, +we've used jarjar (http://code.google.com/p/jarjar) to rebase this library. The +"com.google.protobuf" package has been rename to "com.google.gwt.dev.protobuf". + +To build protobuf-java-rebased-2.2.0.jar: + +1) Download jarjar +2) Run jarjar as follows: + +<jarjar command> process <jarjar rules file> protobuf-java-2.2.0.jar protobuf-java-rebased-2.2.0.jar + + where: + + <jarjar command> - the command used to run jarjar (typically java -jar jarjar-1.0.jar) + <jarjar rules file> - a rules file for jarjar. In this case, it should consist of the following: + + rule com.google.protobuf.** com.google.gwt.dev.protob...@1 + +3) Remove the META-INF directory from protobuf-java-rebased-2.2.0.jar. You can do this + by expanding the jar, deleting the META-INF directory, and rebuilding the jar with the + -M (no MANIFEST) switch. + + --~--~---------~--~----~------------~-------~--~----~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~----------~----~----~----~------~----~------~--~---
