This is an automated email from the ASF dual-hosted git repository. rombert pushed a commit to branch feature/final-cleanups in repository https://gitbox.apache.org/repos/asf/sling-whiteboard.git
commit dc0591f2e1270cbb8025cfefc121c7e469091521 Author: Robert Munteanu <[email protected]> AuthorDate: Tue Jun 18 11:35:54 2019 +0200 Update artifactId --- url-connection-agent/README.md | 8 ++++---- url-connection-agent/pom.xml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/url-connection-agent/README.md b/url-connection-agent/README.md index 23a1692..96995aa 100644 --- a/url-connection-agent/README.md +++ b/url-connection-agent/README.md @@ -17,7 +17,7 @@ It currently supports setting timeouts for HTTP connections done using: Build the project with `mvn clean package` and then run a simple connection test with - java -javaagent:target/url-connection-agent-0.0.1-SNAPSHOT-jar-with-dependencies.jar=<connect-timeout>,<read-timeout> -cp target/test-classes:target/it-dependencies/* org.apache.sling.uca.impl.HttpClientLauncher <url> <client-type> + java -javaagent:target/org.apache.sling.connection-timeout-agent-0.0.1-SNAPSHOT-jar-with-dependencies.jar=<connect-timeout>,<read-timeout> -cp target/test-classes:target/it-dependencies/* org.apache.sling.uca.impl.HttpClientLauncher <url> <client-type> The parameters are as follows: @@ -30,14 +30,14 @@ Build the project with `mvn clean package` and then run a simple connection test For a test that always fails, set one of the timeouts to 1. Both executions listed below will typically fail: ``` -java -javaagent:target/url-connection-agent-0.0.1-SNAPSHOT-jar-with-dependencies.jar=1,1000 -cp target/test-classes:target/it-dependencies/* org.apache.sling.uca.impl.HttpClientLauncher https://sling.apache.org JavaNet -java -javaagent:target/url-connection-agent-0.0.1-SNAPSHOT-jar-with-dependencies.jar=1000,1 -cp target/test-classes:target/it-dependencies/* org.apache.sling.uca.impl.HttpClientLauncher https://sling.apache.org JavaNet +java -javaagent:target/org.apache.sling.connection-timeout-agent-0.0.1-SNAPSHOT-jar-with-dependencies.jar=1,1000 -cp target/test-classes:target/it-dependencies/* org.apache.sling.uca.impl.HttpClientLauncher https://sling.apache.org JavaNet +java -javaagent:target/org.apache.sling.connection-timeout-agent-0.0.1-SNAPSHOT-jar-with-dependencies.jar=1000,1 -cp target/test-classes:target/it-dependencies/* org.apache.sling.uca.impl.HttpClientLauncher https://sling.apache.org JavaNet ``` In contrast, the execution below should succeed: ``` -java -javaagent:target/url-connection-agent-0.0.1-SNAPSHOT-jar-with-dependencies.jar=1000,1000 -cp target/test-classes:target/it-dependencies/* org.apache.sling.uca.impl.HttpClientLauncher https://sling.apache.org JavaNet +java -javaagent:target/org.apache.sling.connection-timeout-agent-0.0.1-SNAPSHOT-jar-with-dependencies.jar=1000,1000 -cp target/test-classes:target/it-dependencies/* org.apache.sling.uca.impl.HttpClientLauncher https://sling.apache.org JavaNet ``` To use this in your own project you should diff --git a/url-connection-agent/pom.xml b/url-connection-agent/pom.xml index d37503b..07f5a39 100644 --- a/url-connection-agent/pom.xml +++ b/url-connection-agent/pom.xml @@ -26,7 +26,7 @@ <version>35</version> <relativePath/> </parent> - <artifactId>url-connection-agent</artifactId> + <artifactId>org.apache.sling.connection-timeout-agent</artifactId> <version>0.0.1-SNAPSHOT</version> <build>
