Steve,
Sorry it took a while to respond... im not clear on how to do this.
You said to make the @avalon.component tag to the following and rerun
I grepped for other places that define avalon.component and all i could
find are java doc tags so I assume you must mean change the javadoc tags
from
* @avalon.component version="1.0" name="hello" lifestyle="singleton"
to
* @avalon.component version="1.0" name="simple" lifestyle="singleton"
sorry to be dense but what would changing this javadoc tag do ?
anyway, after changing that and running maven, I still see
${user.dir} in my output when i run the simple hello example.
specifically, when I run merlin -execute target/classes
I get:
Starting Merlin 3.3-SNAPSHOT.
====================
Platform: Linux
Java Home: /usr/java
Merlin Home: /dev_sandbox/avalon/merlin/target/merlin
Security policy:
/dev_sandbox/avalon/merlin/target/merlin/bin/security.policy
JVM Options:
Bootstrap JAR:
/dev_sandbox/avalon/merlin/target/merlin/bin/lib/merlin-cli-3.3-SNAPSHOT.jar
Merlin Arguments: -execute target/classes
[INFO ] (kernel): building application model
[INFO ] (kernel): install phase
[INFO ] (kernel): installing: file:${user.dir}/target/classes/
[INFO ] (tutorial.hello): logging
[INFO ] (tutorial.hello): initialization
[INFO ] (tutorial.hello): execution
[INFO ] (tutorial.hello): disposal
[INFO ] (tutorial.hello): test dispose
is there somewhere else I need to make a change ?
Thanks,
Andy
-----Stephen McConnell <[EMAIL PROTECTED]> wrote: -----
To: Avalon framework users <[EMAIL PROTECTED]>
From: Stephen McConnell <[EMAIL PROTECTED]>
Date: 03/10/2004 12:31AM
Subject: Re: tutorial questions (configuration/default example)
Andy:
Problem identified. The tutorial component does not declare a lifestyle
so it defaults to transient. Transient objects will only be
instantiated on demand - however - adding activation="startup" to the
<component> directive should be interpreted as a demand. I've just
checked the transient handler and noticed that the activation policy is
not being taken into consideration.
To get the component to behave as per the docs just set the
@avalon.component tag to the following and rerun
* @avalon.component version="1.0" name="simple" lifestyle="singleton"
I correction to the transient handler is in progress.
Cheers, Steve.
[EMAIL PROTECTED] wrote:
> I'm sure w are. I'm in
> /dev_sandbox/avalon/merlin/platform/tutorials/configuration/defaults
>
> here is my output:
>
> [EMAIL PROTECTED] defaults]# cd
> /dev_sandbox/avalon/merlin/platform/tutorials/configuration/defaults
>
> [EMAIL PROTECTED] defaults]# maven
> __ __
> | \/ |__ _Apache__ ___
> | |\/| / _` \ V / -_) ' \ ~ intelligent projects ~
> |_| |_\__,_|\_/\___|_||_| v. 1.0-rc1-SNAPSHOT
>
> Attempting to download avalon-meta-api-1.4-SNAPSHOT.jar.
> Attempting to download avalon-meta-spi-1.4-SNAPSHOT.jar.
> Attempting to download avalon-meta-impl-1.4-SNAPSHOT.jar.
> Attempting to download avalon-meta-tools-1.4-SNAPSHOT.jar.
> java:prepare-filesystem:
>
> java:compile:
> avalon:meta:
> [avalon] Writing descriptors using 'xml' format.
> [avalon] Processed 1 Types and 0 Services from a total of 1 classes.
>
> [echo] Compiling to
>
/dev_sandbox/avalon/merlin/platform/tutorials/configuration/defaults/target/classes
>
>
> java:jar-resources:
>
> test:prepare-filesystem:
>
> test:test-resources:
>
> test:compile:
> [echo] No test source files to compile.
>
> test:test:
> [echo] No tests to run.
> BUILD SUCCESSFUL
> Total time: 8 seconds
> Finished at: Tue Mar 09 23:37:57 PST 2004
>
> [EMAIL PROTECTED] defaults]# merlin target/classes -execute
> Starting Merlin 3.3-SNAPSHOT.
> ====================
> Platform: Linux
> Java Home: /usr/java
> Merlin Home: /dev_sandbox/avalon/merlin/target/merlin
> Security policy:
> /dev_sandbox/avalon/merlin/target/merlin/bin/security.policy
> JVM Options:
> Bootstrap JAR:
>
/dev_sandbox/avalon/merlin/target/merlin/bin/lib/merlin-cli-3.3-SNAPSHOT.jar
> Merlin Arguments: target/classes -execute
>
> [INFO ] (kernel): building application model
> [INFO ] (kernel): install phase
> [INFO ] (kernel): installing: file:${user.dir}/target/classes/
>
> -----Stephen McConnell <[EMAIL PROTECTED]> wrote: -----
>
> To: Avalon framework users <[EMAIL PROTECTED]>
> From: Stephen McConnell <[EMAIL PROTECTED]>
> Date: 03/09/2004 10:59PM
> Subject: Re: tutorial questions (configuration/default example)
>
>
> Ummm - I'm gettign something differnet:
>
> $ cd merlin\platform\tutorials\configuration\defaults
> $ maven -o
> $ merlin target\classes -execute
>
> [INFO ] (kernel): installing: file:/${user.dir}/target/classes/
> [INFO ] (tutorial.hello): configuration stage
> [INFO ] (tutorial.hello): initialization stage
> [INFO ] (tutorial.hello): source: packaged default
> [INFO ] (kernel): dissassembly phase
>
> Can you confirm that we are talking about teh same example.
>
> Stephen.
>
>
> [EMAIL PROTECTED] wrote:
>
>
>>Sorry for the silly questions...
>>hopefully they will help someone else as well.
>>
>>Playing with the configuration/default example (on
>>http://avalon.apache.org/merlin/starting/tutorial/config/defaults.html),
>>I have 1 question:
>>
>>The example says I should see:
>>
>>[INFO ] (tutorial.hello): configuration stage
>>[INFO ] (tutorial.hello): initialization stage
>>[INFO ] (tutorial.hello): source: packaged default
>>
>>Instead, I see:
>>
>>[INFO ] (kernel): building application model
>>[INFO ] (kernel): install phase
>>[INFO ] (kernel): installing: file:${user.dir}/target/classes/
>>
>>Any idea why I get:
>>"file:${user.dir}/target/classes/"
>>instead of:
>>"source: packaged default"
>>
>>Thanks,
>>
>>Andy
>>_________________________________
>>
>>the full output is:
>>
>>merlin -execute target/classes
>>Starting Merlin 3.3-SNAPSHOT.
>>====================
>> Platform: Linux
>> Java Home: /usr/java
>> Merlin Home: /dev_sandbox/avalon/merlin/target/merlin
>> Security policy:
>> /dev_sandbox/avalon/merlin/target/merlin/bin/security.policy
>> JVM Options:
>> Bootstrap JAR:
>>
>
>
/dev_sandbox/avalon/merlin/target/merlin/bin/lib/merlin-cli-3.3-SNAPSHOT.jar
>
>
>> Merlin Arguments: -execute target/classes
>>
>>[INFO ] (kernel): building application model
>>[INFO ] (kernel): install phase
>> [INFO ] (kernel): installing: file:${user.dir}/target/classes/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]