renamed property keys

This commit is contained in:
markfisher
2017-03-03 16:35:30 -05:00
parent 2ae7789cd1
commit 6044b053ae
4 changed files with 26 additions and 21 deletions

View File

@@ -1,6 +1,6 @@
#!/bin/bash
PREFIX="--spring.cloud.function.proxy"
PREFIX="--spring.cloud.function.import"
DIR="file:///tmp/function-registry"
tokenize() {
@@ -19,19 +19,19 @@ while getopts ":i:s:f:c:o:p:d:" opt; do
s)
FUNC=$OPTARG
TYPE="$PREFIX.$FUNC.type=supplier"
RESOURCE="$PREFIX.$FUNC.bytecode=$DIR/suppliers/$FUNC.fun"
RESOURCE="$PREFIX.$FUNC.location=$DIR/suppliers/$FUNC.fun"
;;
f)
FUNC=$OPTARG
for i in `tokenize $OPTARG`; do
RESOURCE="$RESOURCE $PREFIX.${i}.bytecode=$DIR/functions/${i}.fun"
RESOURCE="$RESOURCE $PREFIX.${i}.location=$DIR/functions/${i}.fun"
TYPE="$TYPE $PREFIX.${i}.type=function"
done
;;
c)
FUNC=$OPTARG
TYPE="$PREFIX.$FUNC.type=consumer"
RESOURCE="$PREFIX.$FUNC.bytecode=$DIR/consumers/$FUNC.fun"
RESOURCE="$PREFIX.$FUNC.location=$DIR/consumers/$FUNC.fun"
;;
o)
OUT=--spring.cloud.stream.bindings.output.destination=$OPTARG

View File

@@ -21,7 +21,7 @@ while getopts ":s:f:c:p:" opt; do
done
java -jar ../spring-cloud-function-samples/spring-cloud-function-sample-compiler/target/function-sample-compiler-1.0.0.BUILD-SNAPSHOT.jar\
--spring.cloud.function.proxy.$FUNC.type=$TYPE\
--spring.cloud.function.proxy.$FUNC.bytecode=file:///tmp/function-registry/$TYPE's'/$FUNC.fun\
--spring.cloud.function.import.$FUNC.type=$TYPE\
--spring.cloud.function.import.$FUNC.location=file:///tmp/function-registry/$TYPE's'/$FUNC.fun\
--management.security.enabled=false\
--server.port=$PORT