Add control buffers to java build#2
Conversation
|
We have created an issue in Pivotal Tracker to manage this. You can view the current status of your issue at: https://www.pivotaltracker.com/story/show/94198358. |
README.md
Outdated
There was a problem hiding this comment.
Please remove this change; we'd like to keep our final newlines per UNIX standards.
There was a problem hiding this comment.
I can't tell what the change is from the github UI, and I don't know what the "standard" is. I'm removing the trailing newline, hoping that was what you meant.
Also make Java build work without an explicit target directory and add instructions in README.
eaad3b8 to
85e21a1
Compare
|
@dsyer so it would seem that the issue with generating the Java tooling is that we import bits from gogoprotobuf, so you have to download that anyway. Am I reading that correctly? If that's the case, then maybe we'll spend some time after Summit figuring out how to only require that library when generating Go code; it doesn't seem to me to be good policy to force Java devs through lots of hoops that have no effect on them. |
|
That would be good (not requiring |
|
Gogoprotobuf is the tool we use to generate Go code. The options/extensions On Tuesday, May 12, 2015, Dave Syer notifications@github.com wrote:
– John Tuley |
|
@dsyer We've removed the dependency of the Java generator on the Go imports. We'd like you to apply the following diff and commit it to the PR; that way, when we merge it in, we'll be sure that Java users will benefit from your changes and not need to install Go and gogo/protobuf first. diff --git a/README.md b/README.md
index f70e0b5..3eae60e 100644
--- a/README.md
+++ b/README.md
@@ -31,10 +31,7 @@ Please see the following for detailed descriptions of each type:
```
### Java
-
-1. Build the go code first (see above) so that all the imports are available
-
-2. Generate the Java code (optionally providing a target path as a directory)
+1. Generate the Java code (optionally providing a target path as a directory)
```
./generate-java.sh [TARGET_PATH]
```
diff --git a/generate-java.sh b/generate-java.sh
index 6afdede..a858395 100755
--- a/generate-java.sh
+++ b/generate-java.sh
@@ -19,11 +19,11 @@ fi
pushd events
mkdir -p $TARGET
-protoc -I=. --java_out=$TARGET --proto_path=$GOPATH/src:$GOPATH/src/github.com/gogo/protobuf/protobuf:. *.proto
+protoc -I=. --java_out=$TARGET *.proto
popd
pushd control
mkdir -p $TARGET
-protoc -I=. --java_out=$TARGET --proto_path=$GOPATH/src:$GOPATH/src/github.com/gogo/protobuf/protobuf:. *.proto
+protoc -I=. --java_out=$TARGET *.proto
popd |
|
We have removed the control messages from the dropsonde-protocol. We feel that the README changes in this PR are useful. If you modify the PR to only include those changes, we can merge this in. |
|
We have merged this PR with only the changes in the README.md and the generate-java.sh script. |
Also make Java build work without an explicit target directory and
add instructions in README.