Will all of these changes help with the problems with running
AbstractMerlinUnitTest's under the Maven reactor?  If I run a unit test
directly (not under the reactor) then it properly picks up my maven home as
being c:\java\maven.  However, if I run it under the Reactor, then it
doesn't seem to get the right environmental properties and defualts to
using: C:\Documents and Settings\Eric Pugh\.maven.

I am using merlin-unit version 3.2.2-dev.

Which since I don't have that directory, leads to this:


Testcase: warning took 0.01 sec
        FAILED
Exception in constructor: testUnixCrypt
(org.apache.avalon.merlin.unit.UnitRuntimeException: Unable to resolve the
maven repository relative to ${user.home}.
        at
org.apache.avalon.merlin.unit.AbstractMerlinTestCase.getMavenRepositoryDirec
tory(AbstractMerlinTestCase.java:432)
        at
org.apache.avalon.merlin.unit.AbstractMerlinTestCase.<init>(AbstractMerlinTe
stCase.java:187)
        at
org.apache.avalon.merlin.unit.AbstractMerlinTestCase.<init>(AbstractMerlinTe
stCase.java:126)
        at
org.apache.fulcrum.crypto.CryptoServiceTest.<init>(CryptoServiceTest.java:79
)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcces
sorImpl.java:39)
        at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstruc
torAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
        at junit.framework.TestSuite.createTest(TestSuite.java:135)
        at junit.framework.TestSuite.addTestMethod(TestSuite.java:114)
        at junit.framework.TestSuite.<init>(TestSuite.java:75)
        at
org.apache.fulcrum.crypto.CryptoServiceTest.suite(CryptoServiceTest.java:89)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.<init>(JUnitTes
tRunner.java:257)
        at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.<init>(JUnitTes
tRunner.java:210)
        at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestR
unner.java:532)
Caused by: java.lang.IllegalArgumentException: Directory [C:\Documents and
Settings\Eric Pugh\.maven] does not exist.
        at
org.apache.avalon.merlin.unit.AbstractMerlinTestCase.getDirectory(AbstractMe
rlinTestCase.java:459)
        at
org.apache.avalon.merlin.unit.AbstractMerlinTestCase.getMavenRepositoryDirec
tory(AbstractMerlinTestCase.java:425)
        ... 18 more
)


Eric Pugh

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Monday, November 24, 2003 11:09 PM
> To: Avalon Developers List
> Subject: Re: [avalon-defaults] .... problem with env resolution
>
>
> Just got on ICQ now ... I'm looking at the problem.  Try me there.
>
> Excuse the delayed response,
> Alex
>
> >
> > From: Stephen McConnell <[EMAIL PROTECTED]>
> > Date: 2003/11/24 Mon PM 04:43:00 EST
> > To: Avalon Dev <[EMAIL PROTECTED]>
> > Subject: [avalon-defaults] .... problem with env resolution
> >
> >
> > 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]
> >
> >
>
>
> ---------------------------------------------------------------------
> 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]

Reply via email to