https://github.com/vaci/capnproto-java-rpc rebased on top of capnproto-java master branch
Find a file
2014-05-15 23:05:31 -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 Moved files, updated readme, added src/main/generated to build.scala for IDE support 2014-05-15 19:12:58 -04:00
.gitignore Add SBT as build system, add Java package annotation for generated code 2014-05-15 19:05:20 -04:00
.travis.yml maybe this will work for travis 2014-05-15 23:05:31 -04:00
LICENSE initial commit 2014-05-09 21:37:12 -04:00
Makefile maybe this will work for travis 2014-05-15 23:05:31 -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