avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nic...@apache.org
Subject svn commit: rev 45867 - avalon/trunk/runtime/composition/impl/src/test/org/apache/avalon/composition/model/test
Date Sat, 11 Sep 2004 05:26:54 GMT
Author: niclas
Date: Fri Sep 10 22:26:53 2004
New Revision: 45867

Modified:
   avalon/trunk/runtime/composition/impl/src/test/org/apache/avalon/composition/model/test/AbstractTestCase.java
Log:
Some formatting plus temporary changes to find Peter Neubauer's problem.

Modified: avalon/trunk/runtime/composition/impl/src/test/org/apache/avalon/composition/model/test/AbstractTestCase.java
==============================================================================
--- avalon/trunk/runtime/composition/impl/src/test/org/apache/avalon/composition/model/test/AbstractTestCase.java
(original)
+++ avalon/trunk/runtime/composition/impl/src/test/org/apache/avalon/composition/model/test/AbstractTestCase.java
Fri Sep 10 22:26:53 2004
@@ -57,18 +57,25 @@
     // state
     //-------------------------------------------------------
 
-    public static int PRIORITY = ConsoleLogger.LEVEL_INFO;
+    public static int PRIORITY;
 
-    private static Logger LOGGER = new ConsoleLogger( PRIORITY );
+    private static Logger LOGGER;
 
-    public static final File BASEDIR = getWorkDir();
+    public static final File BASEDIR;
 
-    public static final File SYS_CONF = 
-      new File( BASEDIR, "system/kernel.xml" );
+    public static final File SYS_CONF;
 
-    private static final XMLSecurityProfileBuilder SECURITY_BUILDER = 
-      new XMLSecurityProfileBuilder();
+    private static final XMLSecurityProfileBuilder SECURITY_BUILDER;
 
+    static
+    {
+        PRIORITY = ConsoleLogger.LEVEL_INFO;
+        LOGGER = new ConsoleLogger( PRIORITY );
+        BASEDIR = getWorkDir();
+        SYS_CONF = new File( BASEDIR, "system/kernel.xml" ).getAbsoluteFile();
+        SECURITY_BUILDER = new XMLSecurityProfileBuilder();
+    }
+    
     private static File getWorkDir()
     {
         String path = System.getProperty( "project.dir" );
@@ -105,7 +112,7 @@
         //
 
         Configuration config = getConfiguration( SYS_CONF );
-
+        System.out.println( "Loading " + SYS_CONF );
         //
         // create the initial context using the maven repository as the 
         // system repository

---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@avalon.apache.org
For additional commands, e-mail: cvs-help@avalon.apache.org


Mime
View raw message