From 558b8548b432b0c0ba14009070940b73409fc721 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Fri, 11 Mar 2005 17:35:37 +0000 Subject: Main.java (main): Handle '-p'. libjava: * gnu/gcj/tools/gcj_dbtool/Main.java (main): Handle '-p'. (usage): Document '-p'. * Makefile.in: Rebuilt. * Makefile.am (dbexecdir): New variable. (db_name): Likewise. (dbexec_DATA): Likewise. ($(db_name)): New target. (AM_CXXFLAGS): Define LIBGCJ_DEFAULT_DATABASE. * java/lang/natRuntime.cc (insertSystemProperties): Set default system database. gcc/java: * gcj.texi (Invoking gcj-dbtool): Document 'gcj-dbtool -p'. (libgcj Runtime Properties): Document the default .db. From-SVN: r96303 --- libjava/java/lang/natRuntime.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libjava/java/lang') diff --git a/libjava/java/lang/natRuntime.cc b/libjava/java/lang/natRuntime.cc index f8e05ad..5638544 100644 --- a/libjava/java/lang/natRuntime.cc +++ b/libjava/java/lang/natRuntime.cc @@ -531,6 +531,9 @@ java::lang::Runtime::insertSystemProperties (java::util::Properties *newprops) // The path to libgcj's boot classes SET ("sun.boot.class.path", BOOT_CLASS_PATH); + // If there is a default system database, set it. + SET ("gnu.gcj.precompiled.db.path", LIBGCJ_DEFAULT_DATABASE); + // Set some properties according to whatever was compiled in with // `-D'. Important: after this point, the only properties that // should be set are those which either the user cannot meaningfully -- cgit v1.1