Skip to content

Commit 3ecf5f6

Browse files
committed
Unify two entrypoints
1 parent 3b293d5 commit 3ecf5f6

File tree

4 files changed

+344
-485
lines changed

4 files changed

+344
-485
lines changed

docs/inbound-agent.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ This mechanism requires a download of the `agent.jar`, as described for "Downloa
7878

7979
Once all the prerequisite files and data have been obtained, the agent can be launched with a command like this
8080
```
81-
java -cp agent.jar hudson.remoting.jnlp.Main \
81+
java -jar agent.jar \
8282
-workDir <work directory> \
8383
-direct <HOST:PORT> \
8484
-protocols JNLP4-connect \
@@ -102,7 +102,7 @@ Additional descriptions of configuring this mechanism are located at [Installing
102102

103103
There are a number of different launch parameters that control how the agent connects and behaves.
104104
The parameters available and the default behavior may vary depending upon the entry point.
105-
You can obtain usage information by executing `java -cp agent.jar hudson.remoting.jnlp.Main` or `java -jar agent.jar --help`.
105+
You can obtain usage information by executing `java -jar agent.jar --help`.
106106
Not all parameters work together and some parameters require the use of others.
107107

108108
There are also system or environment variables that control some advanced behaviors documented at [Remoting Configuration](https://github.com/jenkinsci/remoting/blob/master/docs/configuration.md).

src/main/java/hudson/remoting/Engine.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ public Thread newThread(@NonNull final Runnable r) {
169169
private String proxyCredentials = System.getProperty("proxyCredentials");
170170

171171
/**
172-
* See {@link hudson.remoting.jnlp.Main#tunnel} for the documentation.
172+
* See {@link Launcher#tunnel} for the documentation.
173173
*/
174174
@CheckForNull
175175
private String tunnel;

0 commit comments

Comments
 (0)