De Lima, Claude wrote:

A minor change as follows would allow us to bypass the environment check
under normal circumstances without breaking any other code. The current code in Main.java is:


package org.apache.avalon.merlin.cli;
.
private static String getMerlinHomePath()
.
.
String merlin = System.getProperty( "merlin.home", Env.getEnvVariable( "MERLIN_HOME" ) );
if( null != merlin ) return merlin;
return System.getProperty( "user.home" ) + File.separator + ".merlin";


Just changing it to this would help anyone who was prepared to define a
system property "merlin.home" on the command line:

String merlin = System.getProperty( "merlin.home" );
if (merlin == null)
merlin = Env.getEnvVariable( "MERLIN_HOME" );
if( null != merlin ) return merlin;
return System.getProperty( "user.home" ) + File.separator + ".merlin";


I think the Env problem may still need to be addressed in general, and the
other answers to this thread seem to be doing a good job looking at the issues.


Alex submitted an update late in the evening (US time). Could you try updating from CVS and doing a clean and build. I.e.


$ cd avalon/util
$ maven avalon:clean avalon:build
$ cd ../repository
$ maven avalon:clean avalon:build
$ cd ../merlin
$ maven avalon:clean avalon:build merlin:replicate

If this does not solve things I'll dig into a system property fix.

Cheers, Steve.


Claude De Lima


------------------------------------------------------------------------------
This message is intended only for the personal and confidential use of the
designated recipient(s) named above.  If you are not the intended recipient of
this message you are hereby notified that any review, dissemination,
distribution or copying of this message is strictly prohibited.  This
communication is for information purposes only and should not be regarded as
an offer to sell or as a solicitation of an offer to buy any financial
product, an official confirmation of any transaction, or as an official
statement of Lehman Brothers.  Email transmission cannot be guaranteed to be
secure or error-free.  Therefore, we do not represent that this information is
complete or accurate and it should not be relied upon as such.  All
information is subject to change without notice.


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





--


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]



Reply via email to