You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avalon.apache.org by Stephen McConnell <mc...@apache.org> on 2004/01/16 02:41:37 UTC

[merlin] commandline artifact urls

Just for fun ....

If you running 3.3 (CVS HEAD) you can now include "block" and "artifact" 
urls in the command line.  The following example demonstrates the 
deployment of the remote hello block using a "block:" url:

$ merlin block:merlin/tutorial/hello -execute

   [INFO   ] (kernel): building application model
   [INFO   ] (kernel): facilities deployment
   [INFO   ] (kernel): block installation
   [INFO   ] (kernel): installing: block:merlin/tutorial/hello
   Download from: [http://dpml.net/merlin/tutorial/blocks/hello.block]
   .
   [INFO   ] (tutorial.hello): logging
   [INFO   ] (tutorial.hello): initialization
   [INFO   ] (tutorial.hello): execution
   [INFO   ] (tutorial.hello): disposal

If the command is repeated the hello.block will be retrieved from the 
local application cache.

The block: url has a fixed "type" - namely "block". The "artifact:" 
supports variable types by supplying a type=sometype query value.  If a 
type value is not supplied the "artifact:" url will default to "jar". 
Both "block:" and "artifact:" support the version=someversion query 
parameter.  If not supplied, no version is assigned (as per the hello 
example).

Cheers, Stephen.

-- 

|------------------------------------------------|
| Magic by Merlin                                |
| Production by Avalon                           |
|                                                |
| http://avalon.apache.org/merlin                |
| http://dpml.net/merlin/distributions/latest    |
|------------------------------------------------|


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org