https://github.com/vaci/capnproto-java-rpc rebased on top of capnproto-java master branch
Find a file
David Renshaw c43f7a33fd Merge pull request #2 from arosenberger/master
Add `make` as a compile task in the generator project, remove capnpc-jav...
2014-05-16 22:14:47 -04:00
examples/src/main Moved files, updated readme, added src/main/generated to build.scala for IDE support 2014-05-15 19:12:58 -04:00
generator/src/main Moved files, updated readme, added src/main/generated to build.scala for IDE support 2014-05-15 19:12:58 -04:00
project Fix bug where clean doesn't remove generated code, then fix the resulting compile which requires code generation to complete. 2014-05-16 17:03:03 -04:00
.gitignore Add make as a compile task in the generator project, remove capnpc-java binary when sbt clean is run 2014-05-16 13:16:00 -04:00
.travis.yml oops 2014-05-15 23:08:58 -04:00
CONTRIBUTORS ah, so that's how you spell it 2014-05-15 23:30:05 -04:00
LICENSE ah, so that's how you spell it 2014-05-15 23:30:05 -04:00
Makefile Fix bug where clean doesn't remove generated code, then fix the resulting compile which requires code generation to complete. 2014-05-16 17:03:03 -04:00
README.md add make command to README 2014-05-15 22:53:49 -04:00
version.sbt Add SBT as build system, add Java package annotation for generated code 2014-05-15 19:05:20 -04:00

capnproto-java: Cap'n Proto for Java

This is an experimental pure Java implementation of Cap'n Proto.

It doesn't do much yet. An attempt to use SBT as the build system and integration with make is currently underway.

To get started with SBT, visit https://github.com/paulp/sbt-extras or to run direct, try curl -s https://raw.githubusercontent.com/paulp/sbt-extras/master/sbt > ~/bin/sbt && chmod 0755 ~/bin/sbt

When you first build the project, try running sbt update gen-idea. This will bootstrap SBT and generate IntelliJ project files for those who wish to develop in an IDE.

When running make, the supporting Java code will be built, and the sample schema will be run through the code generator as well to produce the Java binding. You can find the generated code in /examples/src/main/generated/Addressbook.java

Example of building and running from the command line:

$ make CXX_FLAGS="-std=c++11 -I/usr/local/include -L/usr/local/lib -lcapnp -lkj"
$ echo '(people = [(id = 123, name = "Alice", email = "alice@example.com", employment = (school = "MIT"))])'   | capnp encode examples/src/main/schema/addressbook.capnp AddressBook | java -cp generator/target/scala-2.11/classes:examples/target/scala-2.11/classes/ org.capnproto.examples.AddressbookMain read