DPML
DPML Transit Add Resource Host Command
HomeUtilitiesStationMetroDepotTransit
Add Host Command
Description

Adds a new resource host to the configuration.

Transit uses artifact uris to identify a resource. These identifiers are in turn mapped internally to a repository url (i.e. mapping identity to a location). Locations are defined relative to one or more hosts. Each Transit host declares a base url, layout strategy (dealing with uri to url mapping), and policies concerning authentication.

Commandline
$ transit add host <id>
  -url <url>
  [-username <username>]
  [-password <password>]
  [-priority <int>]
  [-index <resource>]
  [-disabled]
  [-trusted]
  [-layout <id>]
  [-scheme <scheme>]
  [-prompt <prompt>]
Options
urlRemote resource host url (required).
usernameResource host login username.
passwordResource host password.
priorityPriority setting.
index A URL pointing to a file containing a line-separated list of groups that are known to be installed on the remote host repository.
disabledMarks the host as disabled.
trusted If true Transit shall assume that the host connection is trusted. When set to "true" in conjunction with an https:// connection, the certificate chain of the host will be accepted unconditionally.
layoutID of the host layout scheme (system layouts include 'classic' and 'eclipse').
schemeHost authentication scheme.
promptHost authentication prompt.
Example

The following example demonstrates the addition of a new resource host to the transit configuration.

$ transit add host demo -url http://localhost:8080 -priority 60
Adding resource host: demo
Saving to: local:xml:dpml/transit/config