~ubuntu-branches/debian/squeeze/protobuf/squeeze

« back to all changes in this revision

Viewing changes to java/README.txt

  • Committer: Bazaar Package Importer
  • Author(s): Julien Cristau
  • Date: 2009-06-02 16:19:00 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20090602161900-vm176i3ryt35yk91
Tags: 2.0.3-2.2
* Non-maintainer upload.
* Fix FTBFS from -2.1: don't fail when we can't clean up the java build,
  such as when openjdk isn't installed.
* Disable parallel builds, because libtool is made of fail (if binary-arch
  and build-indep run concurrently, we relink a library while it's being
  used; that doesn't work so well).

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 
4
4
This directory contains the Java Protocol Buffers runtime library.
5
5
 
6
 
Installation
7
 
============
 
6
Installation - With Maven
 
7
=========================
 
8
 
 
9
The Protocol Buffers build is managed using Maven.  If you would
 
10
rather build without Maven, see the next section.
8
11
 
9
12
1) Install Apache Maven if you don't have it:
10
13
 
37
40
 
38
41
   The .jar will be placed in the "target" directory.
39
42
 
 
43
Installation - Without Maven
 
44
============================
 
45
 
 
46
If you would rather not install Maven to build the library, you may
 
47
follow these instructions instead.  Note that these instructions skip
 
48
running unit tests.
 
49
 
 
50
1) Build the C++ code, or obtain a binary distribution of protoc.  If
 
51
   you install a binary distribution, make sure that it is the same
 
52
   version as this package.  If in doubt, run:
 
53
 
 
54
     $ protoc --version
 
55
 
 
56
   If you built the C++ code without installing, the compiler binary
 
57
   should be located in ../src.
 
58
 
 
59
2) Invoke protoc to build DescriptorProtos.java:
 
60
 
 
61
     $ protoc --java_out=src/main/java -I../src \
 
62
         ../src/google/protobuf/descriptor.proto
 
63
 
 
64
3) Compile the code in src/main/java using whatever means you prefer.
 
65
 
 
66
4) Install the classes wherever you prefer.
 
67
 
40
68
Usage
41
69
=====
42
70