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]
--
|------------------------------------------------| | Magic by Merlin | | Production by Avalon | | | | http://avalon.apache.org/merlin | | http://dpml.net/merlin/distributions/latest | |------------------------------------------------|
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--
|------------------------------------------------| | Magic by Merlin | | Production by Avalon | | | | http://avalon.apache.org/merlin | | http://dpml.net/merlin/distributions/latest | |------------------------------------------------|
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
