You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by bv...@apache.org on 2021/01/01 13:21:08 UTC

[camel-examples] branch improve-camel-example-spring-security-scripts updated (41b818e -> 2023d5f)

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

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


 discard 41b818e  better make use of the maven wrapper instead of cli
 discard 2a23556  improve the scripts of camel-example-spring-security
     new 2023d5f  improve the scripts of camel-example-spring-security

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (41b818e)
            \
             N -- N -- N   refs/heads/improve-camel-example-spring-security-scripts (2023d5f)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:


[camel-examples] 01/01: improve the scripts of camel-example-spring-security

Posted by bv...@apache.org.
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 2023d5f36e698b223f65beb5a7336f1249d07d8b
Author: Babak Vahdat <bv...@apache.org>
AuthorDate: Fri Jan 1 14:06:18 2021 +0100

    improve the scripts of camel-example-spring-security
    
    better make use of the maven wrapper instead of cli
---
 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