harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anton Luht (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-789) logging.properties is missing in VM build
Date Thu, 06 Jul 2006 13:20:30 GMT
logging.properties is missing in VM build

         Key: HARMONY-789
         URL: http://issues.apache.org/jira/browse/HARMONY-789
     Project: Harmony
        Type: Bug

  Components: VM  
 Environment: Windows XP
    Reporter: Anton Luht
    Priority: Minor

I've built VM and  classlib revision 419539

Trying to run a simple test with logging:

import java.util.logging.Level;
import java.util.logging.Logger;

public class Test {
  public static void main(String[] args) {
    Logger log = Logger.getAnonymousLogger();
    log.info("hello world");

I've got the error:

prompt> <vm distr root>\build\win_ia32_msvc_debug\deploy\jre\bin\ij.exe Test

        at org.apache.harmony.luni.platform.OSFileSystem.open(OSFileSystem.java:
        at java.io.FileInputStream.<init>(FileInputStream.java:66)
        at java.io.FileInputStream.<init>(FileInputStream.java:110)
        at java.util.logging.LogManager.readConfigurationImpl(LogManager.java:45
        at java.util.logging.LogManager.<clinit>(LogManager.java:186)
        at java.util.logging.Logger.getLoggerWithRes(Logger.java:362)
        at java.util.logging.Logger.getLogger(Logger.java:389)
        at java.util.logging.Logger.<clinit>(Logger.java:99)
        at Test.main(Test.java:6)

The problem was that logging.properties file was not copied from classlib. The following patch
to VM build solves the problem:

Index: build.xml
--- build.xml   (revision 419539)
+++ build.xml   (working copy)
@@ -445,6 +445,12 @@

+        <copy todir="${build.deploy.dir}/lib">
+            <fileset dir="${external.dep.CLASSLIB}/deploy/jdk/jre/lib">
+                <include name="logging.properties"/>
+            </fileset>
+        </copy>

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message