--- Stephen McConnell <[EMAIL PROTECTED]> wrote: > 

> You probably going to shoot me for this but all of
> the above is now
> taken care of automatically by the 'ant setup'
> target.  Niclas updated
> this yesterday and it seems to be reasonably solid. 
> 
> The problem your seeing is that the
> application repository cache
> used by merlin is not the same as the cache used by
> magic.  To get
> things sorted you need to synchronize these two. 
> The following
> instructions should achieve that.  I imaging the
> next release will have
> a bundled and totally synchronized Merlin + Magic.
> 
> Steps:
> 
> 1. Define AVALON_HOME to refer to MAGIC_HOME
> 2. Rename ${magic.home}/main to
> ${magic.home}/repository
> 3. Add the following line in a file name
> ${magic.home}/user.properties
> 
> magic.cache = ${magic.home}/repository
> 

Thanks Steve.  I now have things working following
your advice.  Just to be sure, I deleted all my
current install and re-started from scratch noting my
steps.

For anyone else having trouble here are the steps
required to get going with the latest Avalon sources
from svn (or at least what I did to get things
working):

Nb. this is for a Linux system with J2SDK 1.4.2 and
Ant 1.6.1 already installed.

1. Checkout Avalon sources using svn
$ mkdir $HOME/opt
$ cd ~/opt
$ svn co http://svn.apache.org/repos/asf/avalon/trunk
avalon

2. Setup Avalon - this installs the ant libraries for
magic etc.
$ cd ~/opt/avalon
$ ant setup
This will have created $HOME/.ant/ and $HOME/.magic
directories

3. Build Avalon
$ ant

4. Install Merlin from the zip file just built.
$ cd ~/opt
$ unzip
avalon/runtime/merlin/cli/target/deliverables/dist/avalon-merlin-cli-SNAPSHOT.zip

Set some environment variables:
$ export MAGIC_HOME="$HOME/.magic"
$ export AVALON_HOME="$MAGIC_HOME"
$ export MERLIN_HOME="$HOME/opt/merlin"
Nb. Ensure Ant 1.6.1 is already installed and
$ANT_HOME set accordingly.
$ export
PATH=/usr/bin:/bin:/usr/bin/X11:$ANT_HOME/bin:$MERLIN_HOME/bin

Create the file $HOME/.magic/user.properties
containing:
magic.cache = ${magic.home}/repository

Now go build and test the tutorials for Avalon
$ cd ~/opt/avalon/planet/tutorials
$ cd hello
$ ant clean
$ ant
$ merlin target/classes -execute

Or for the simple-web-server tutorial
$ cd simple-web
$ ant clean
$ ant
$ merlin target/classes
Then press Ctrl-C when you want to stop the simple web
server.


Hope that helps others.  Please correct me if this is
still the wrong approach.  My system does seem to be
working now though.

Regards.
Mark.

Find local movie times and trailers on Yahoo! Movies.
http://au.movies.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to