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.
$ transit add layout <id> -uri <uri> [-title <title>]
uri | The plugin uri. |
title | Optional layout strategy title. |
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