This is an automated email from the ASF dual-hosted git repository.

bvahdat pushed a commit to branch improve-camel-example-spring-security-scripts
in repository https://gitbox.apache.org/repos/asf/camel-examples.git

commit c674e1e0818fd0c42ca2dca7fabb4b9b9984d36c
Author: Babak Vahdat <[email protected]>
AuthorDate: Fri Jan 1 14:06:18 2021 +0100

    improve the scripts of camel-example-spring-security
---
 examples/camel-example-spring-security/client/access-admin-as-bob.sh   | 3 ++-
 examples/camel-example-spring-security/client/access-admin-as-jim.sh   | 3 ++-
 .../client/{access-user-no-auth.sh => access-admin-no-auth.sh}         | 3 ++-
 .../client/{access-admin-as-bob.sh => access-user-as-bob.sh}           | 3 ++-
 examples/camel-example-spring-security/client/access-user-as-jim.sh    | 3 ++-
 examples/camel-example-spring-security/client/access-user-no-auth.sh   | 3 ++-
 6 files changed, 12 insertions(+), 6 deletions(-)

diff --git 
a/examples/camel-example-spring-security/client/access-admin-as-bob.sh 
b/examples/camel-example-spring-security/client/access-admin-as-bob.sh
index 1ba3e31..206ce32 100755
--- a/examples/camel-example-spring-security/client/access-admin-as-bob.sh
+++ b/examples/camel-example-spring-security/client/access-admin-as-bob.sh
@@ -18,5 +18,6 @@
 
 rm -rf work
 mkdir work
-wget --http-user=bob --http-password=bobspassword --directory-prefix=work  
--output-file=work/log.txt http://localhost:8080/camel/admin
+POM_VERSION=$(../../../mvnw -f ../pom.xml help:evaluate 
-Dexpression=project.version -q -DforceStdout)
+wget --http-user=bob --http-password=bobspassword --directory-prefix=work  
--output-file=work/log.txt 
http://localhost:8080/camel-example-spring-security-$POM_VERSION/camel/admin
 cat -n work/* | less
diff --git 
a/examples/camel-example-spring-security/client/access-admin-as-jim.sh 
b/examples/camel-example-spring-security/client/access-admin-as-jim.sh
index 314da06..48bf524 100755
--- a/examples/camel-example-spring-security/client/access-admin-as-jim.sh
+++ b/examples/camel-example-spring-security/client/access-admin-as-jim.sh
@@ -18,5 +18,6 @@
 
 rm -rf work
 mkdir work
-wget --http-user=jim --http-password=jimspassword --directory-prefix=work  
--output-file=work/log.txt http://localhost:8080/camel/admin
+POM_VERSION=$(../../../mvnw -f ../pom.xml help:evaluate 
-Dexpression=project.version -q -DforceStdout)
+wget --http-user=jim --http-password=jimspassword --directory-prefix=work  
--output-file=work/log.txt 
http://localhost:8080/camel-example-spring-security-$POM_VERSION/camel/admin
 cat -n work/* | less
diff --git 
a/examples/camel-example-spring-security/client/access-user-no-auth.sh 
b/examples/camel-example-spring-security/client/access-admin-no-auth.sh
similarity index 83%
copy from examples/camel-example-spring-security/client/access-user-no-auth.sh
copy to examples/camel-example-spring-security/client/access-admin-no-auth.sh
index 748d626..ee44c5b 100755
--- a/examples/camel-example-spring-security/client/access-user-no-auth.sh
+++ b/examples/camel-example-spring-security/client/access-admin-no-auth.sh
@@ -18,5 +18,6 @@
 
 rm -rf work
 mkdir work
-wget --directory-prefix=work  --output-file=work/log.txt 
http://localhost:8080/camel/user
+POM_VERSION=$(../../../mvnw -f ../pom.xml help:evaluate 
-Dexpression=project.version -q -DforceStdout)
+wget --directory-prefix=work  --output-file=work/log.txt 
http://localhost:8080/camel-example-spring-security-$POM_VERSION/camel/admin
 cat -n work/* | less
diff --git 
a/examples/camel-example-spring-security/client/access-admin-as-bob.sh 
b/examples/camel-example-spring-security/client/access-user-as-bob.sh
similarity index 86%
copy from examples/camel-example-spring-security/client/access-admin-as-bob.sh
copy to examples/camel-example-spring-security/client/access-user-as-bob.sh
index 1ba3e31..027f7d3 100755
--- a/examples/camel-example-spring-security/client/access-admin-as-bob.sh
+++ b/examples/camel-example-spring-security/client/access-user-as-bob.sh
@@ -18,5 +18,6 @@
 
 rm -rf work
 mkdir work
-wget --http-user=bob --http-password=bobspassword --directory-prefix=work  
--output-file=work/log.txt http://localhost:8080/camel/admin
+POM_VERSION=$(../../../mvnw -f ../pom.xml help:evaluate 
-Dexpression=project.version -q -DforceStdout)
+wget --http-user=bob --http-password=bobspassword --directory-prefix=work  
--output-file=work/log.txt 
http://localhost:8080/camel-example-spring-security-$POM_VERSION/camel/user
 cat -n work/* | less
diff --git 
a/examples/camel-example-spring-security/client/access-user-as-jim.sh 
b/examples/camel-example-spring-security/client/access-user-as-jim.sh
index db0f3d3..e47bbd0 100755
--- a/examples/camel-example-spring-security/client/access-user-as-jim.sh
+++ b/examples/camel-example-spring-security/client/access-user-as-jim.sh
@@ -18,5 +18,6 @@
 
 rm -rf work
 mkdir work
-wget --http-user=jim --http-password=jimspassword --directory-prefix=work  
--output-file=work/log.txt http://localhost:8080/camel/user
+POM_VERSION=$(../../../mvnw -f ../pom.xml help:evaluate 
-Dexpression=project.version -q -DforceStdout)
+wget --http-user=jim --http-password=jimspassword --directory-prefix=work  
--output-file=work/log.txt 
http://localhost:8080/camel-example-spring-security-$POM_VERSION/camel/user
 cat -n work/* | less
diff --git 
a/examples/camel-example-spring-security/client/access-user-no-auth.sh 
b/examples/camel-example-spring-security/client/access-user-no-auth.sh
index 748d626..3fdc1e7 100755
--- a/examples/camel-example-spring-security/client/access-user-no-auth.sh
+++ b/examples/camel-example-spring-security/client/access-user-no-auth.sh
@@ -18,5 +18,6 @@
 
 rm -rf work
 mkdir work
-wget --directory-prefix=work  --output-file=work/log.txt 
http://localhost:8080/camel/user
+POM_VERSION=$(../../../mvnw -f ../pom.xml help:evaluate 
-Dexpression=project.version -q -DforceStdout)
+wget --directory-prefix=work  --output-file=work/log.txt 
http://localhost:8080/camel-example-spring-security-$POM_VERSION/camel/user
 cat -n work/* | less

Reply via email to