X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-akka-raft%2Frun.sh;fp=opendaylight%2Fmd-sal%2Fsal-akka-raft%2Frun.sh;h=0000000000000000000000000000000000000000;hb=0121bc588e93461bddd977cec86f9d4800d2346a;hp=7c588f092282b14bee19807239332272e8b373fa;hpb=424cda925030721160e3a1e2743bfb389caeb5bb;p=controller.git diff --git a/opendaylight/md-sal/sal-akka-raft/run.sh b/opendaylight/md-sal/sal-akka-raft/run.sh deleted file mode 100755 index 7c588f0922..0000000000 --- a/opendaylight/md-sal/sal-akka-raft/run.sh +++ /dev/null @@ -1,42 +0,0 @@ -#!/bin/bash - -##################################################################################################### -#Instructions on generating the protocol buffer Java source files -# -#These instructions are developers who are planning to generate the protocolbuffer java source files. -# -#1. We are using protocol buffer version 2.5.0 - you need to install the exact same version on your box. -#The download link is https://code.google.com/p/protobuf/downloads/list. Download .tar/zip based on -#your OS. -# -#2. Once downloaded the tar/zip and extracted follow the README instructions to compile protoc on your -#machine -# -#3. Create your .proto (IDL) file in resources folder. Give appropriate package name so that the source -# get generation in proper packages. For more information check -# https://developers.google.com/protocol-buffers/docs/javatutorial -# -# For detailed information https://developers.google.com/protocol-buffers/docs/reference/java-generated -# -#4. To generate the java source files execute in sal-protocolbuffer-encoding execute ./run.sh i.e. this script -# or run command -# protoc --proto_path=src/main/resources --java_out=src/main/java src/main/resources/*.proto -# -#5. Run mvn clean install & build the .jar -# -#6 !!!WARNING!!!! never edit the source files generated -# -#7. !!!NOTE!!! if you are planning to add new .proto file option java_package should begin with -# org.opendaylight.controller.protobuff.messages to properly exclude from sonar. -######################################################################################################## - -protoc --proto_path=src/main/resources --java_out=src/main/java src/main/resources/*.proto - -protoc --proto_path=src/main/resources --proto_path=src/test/resources --java_out=src/test/java src/test/resources/*.proto - -echo "Done generating Java source files." - -#to remove trailing spaces in the code files -find src/main/java -type f -name '*.java' -exec sed --in-place 's/[[:space:]]\+$//' {} \+ - -find src/test/java -type f -name '*.java' -exec sed --in-place 's/[[:space:]]\+$//' {} \+