I've just finshed making some changes to the defaults package to handle symbol substitution where ${xxx} occupies only a part of a property value. This means that you can now declare properties that reference other properties as part of their defintion.
Ok, that's all looking good. But I'm running into a problem with respect to the way I'm resolving the ultimate property value when so,mething is declared as a environment variable. For example MERLIN_HOME translates to ${merlin.home), however, I'm loosing the MERLIN_HOME value and getting the static parameterized value instead (see listing below).
Alex ... help!
The source code that is handling this is in avalon-dandbox/kernel/impl .... DefaultCriteria.
Aside from this one issue - the defaults stuff looks like really valuable content.
Here is a listing of relavant propery sets (excluding sys properties) as I'm moving though the default resolution process. At this time I have zero app specific code handling specific properties with the single exception of the translation of env variables like MERLIN_HOME to ${merlin.home). This is just *so* much metter!
Cheers, Steve.
------------ AVALON--------------------------
${avalon.home} == ${user.home}/.avalon
------------ MERIN---------------------------
${merlin.config} == ${merlin.home}/config
${merlin.server} == true
${merlin.kernel} == ${merlin.config}/kernel.xml
${merlin.home} == ${user.home}/.merlin
${merlin.ext} == ${merlin.dir}/ext
${merlin.dir} == ${user.dir}
${merlin.context} == ${merlin.dir}/home
${merlin.debug} == false
${merlin.info} == false
${merlin.system} == ${merlin.home}/system------------ ENVIRONMENT---------------------
${maven.home} == F:\system\maven
${maven.home.local} == F:\system\maven
${merlin.home} == C:\merlin------------ DEFAULTS (UNRESOLVED)-----------
${merlin.config} == ${merlin.home}/config
${merlin.server} == true
${merlin.kernel} == ${merlin.config}/kernel.xml
${avalon.home} == ${user.home}/.avalon
${merlin.home} == ${user.home}/.merlin
${merlin.ext} == ${merlin.dir}/ext
${merlin.dir} == ${user.dir}
${merlin.context} == ${merlin.dir}/home
${merlin.debug} == false
${merlin.info} == false
${merlin.system} == ${merlin.home}/system------------ DEFAULTS (RESOLVED)-------------
${merlin.config} == C:\WINNT\Profiles\mcconnell/.merlin/config
${merlin.server} == true
${merlin.kernel} == C:\WINNT\Profiles\mcconnell/.merlin/config/kernel.xml
${avalon.home} == C:\WINNT\Profiles\mcconnell/.avalon
${merlin.home} == C:\WINNT\Profiles\mcconnell/.merlin
${merlin.ext} == F:\dev\avalon-sandbox\kernel/ext
${merlin.dir} == F:\dev\avalon-sandbox\kernel
${merlin.context} == F:\dev\avalon-sandbox\kernel/home
${merlin.debug} == false
${merlin.info} == false
${merlin.system} == C:\WINNT\Profiles\mcconnell/.merlin/system--
Stephen J. McConnell mailto:[EMAIL PROTECTED]
|------------------------------------------------| | Magic by Merlin | | Production by Avalon | | | | http://avalon.apache.org/merlin | | http://dpml.net/ | |------------------------------------------------|
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
