DPML
DPML Transit Add Layout Command
HomeUtilitiesStationMetroDepotTransit
Add Layout Command
Description

Adds a new custom layout scheme to the Transit configuration.

When resolving an artifact uri Transit will convert the uri to a url using a layout scheme associated with resource host definition. The layout scheme provides the mapping between the uri identify and a physical location on a remote host file system. Transit provides two standard layout - 'classic' and 'eclipse' and a mechanisms to suppliment the configuration with custom layout strategies. Custom layouts are implementated via a Transit plugin with a plugin class that implements the net.dpml.transit.Layout interface. Once a custom layout is associated with a Transit configuration it may be referenced via its id within resource host definitions.

Commandline
$ transit add layout <id>
  -uri <uri>
  [-title <title>]
Options
uriThe plugin uri.
titleOptional layout strategy title.
Example

The following example demonstrates the addition of a new custom layout to the transit configuration.

$ transit add layout demo -uri link:part:dpml/demo/dpml-example-layout#SNAPSHOT
Adding layout: demo
Saving to: local:xml:dpml/transit/config