private void performLegacyInitialization()
throws InitializationException,
RegistryException
{
ExpressionEvaluator evaluator = new DefaultExpressionEvaluator();
evaluator.addExpressionSource( new SystemPropertyExpressionSource() );
if ( configs == null )
{
configs = new ArrayList();
}
if ( !configs.isEmpty() )
{
// TODO: plexus should be able to do this on it's own.
getLogger().warn(
"DEPRECATED: the <configs> elements is deprecated. Please configure the Plexus registry instead" );
}
Iterator it = configs.iterator();
while ( it.hasNext() )
{
String configName = (String) it.next();
try
{
configName = evaluator.expand( configName );
}
catch ( EvaluatorException e )
{
getLogger().warn( "Unable to resolve configuration name: " + e.getMessage(), e );
}