You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Anton Luht (JIRA)" <ji...@apache.org> on 2006/07/07 17:03:30 UTC
[jira] Commented: (HARMONY-789) logging.properties is missing in VM
build
[ http://issues.apache.org/jira/browse/HARMONY-789?page=comments#action_12419727 ]
Anton Luht commented on HARMONY-789:
------------------------------------
verified in revision 419901
> 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
> Assignee: Mark Hindess
> 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.setLevel(Level.INFO);
> log.info("hello world");
> }
> }
> I've got the error:
> prompt> <vm distr root>\build\win_ia32_msvc_debug\deploy\jre\bin\ij.exe Test
> java.io.FileNotFoundException
> at org.apache.harmony.luni.platform.OSFileSystem.open(OSFileSystem.java:
> 223)
> 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
> 0)
> 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 @@
> </fileset>
> </copy>
> + <copy todir="${build.deploy.dir}/lib">
> + <fileset dir="${external.dep.CLASSLIB}/deploy/jdk/jre/lib">
> + <include name="logging.properties"/>
> + </fileset>
> + </copy>
> +
> </target>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira