X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-protocolbuffer-encoding%2Frun.sh;h=c9e586ba1a1438e7d0f949b06e4881ec63bc2697;hp=72e2c87ecba11018079e9d2c95c844e0bdbfd188;hb=23054c2ec3fa8166838f9d18af452e30acefd9d5;hpb=43b9f7880866caef7d5ea58dbad2bba318a1f3e8 diff --git a/opendaylight/md-sal/sal-protocolbuffer-encoding/run.sh b/opendaylight/md-sal/sal-protocolbuffer-encoding/run.sh index 72e2c87ecb..c9e586ba1a 100755 --- a/opendaylight/md-sal/sal-protocolbuffer-encoding/run.sh +++ b/opendaylight/md-sal/sal-protocolbuffer-encoding/run.sh @@ -22,9 +22,17 @@ # or run command # protoc --proto_path=src/main/resources --java_out=src/main/java src/main/resources/*.proto # -#5. Run mvn clean install and resolve any trailing spaces issues & build the .jar +#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 -echo "Done generating Java source files." \ No newline at end of file +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:]]\+$//' {} \+