mcconnell 2004/03/03 19:38:21
Modified: logging/test/src/test/org/apache/avalon/logging
LoggingManagerHelper.java
Log:
Sync logging test cases with repo updates.
Revision Changes Path
1.2 +4 -7
avalon/logging/test/src/test/org/apache/avalon/logging/LoggingManagerHelper.java
Index: LoggingManagerHelper.java
===================================================================
RCS file:
/home/cvs/avalon/logging/test/src/test/org/apache/avalon/logging/LoggingManagerHelper.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- LoggingManagerHelper.java 27 Feb 2004 22:39:35 -0000 1.1
+++ LoggingManagerHelper.java 4 Mar 2004 03:38:21 -0000 1.2
@@ -59,11 +59,12 @@
* @param bootstrap the boostrap logger logging level
* @return the logging manager
*/
- public static LoggingManager setUpLoggingManager( String id, String filename )
throws Exception
+ public static LoggingManager setUpLoggingManager(
+ String id, String filename ) throws Exception
{
InitialContext context = setUpInitialContext( "conf/system.xml" );
Artifact[] candidates =
- context.getRegistry().getCandidates( LoggingManager.class );
+ context.getRepository().getCandidates( LoggingManager.class );
Artifact artifact = selectArtifact( candidates, id );
Builder builder = context.newBuilder( artifact );
Factory factory = builder.getFactory();
@@ -97,11 +98,7 @@
factory.setCacheDirectory( getMavenRepositoryDirectory() );
Artifact[] artifacts =
getArtifactsToRegister( path );
- for( int i=0; i<artifacts.length; i++ )
- {
- Artifact artifact = artifacts[i];
- factory.addFactoryArtifact( artifact );
- }
+ factory.setFactoryArtifacts( artifacts );
return factory.createInitialContext();
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]