* Patch: FYI: default class path for javah
@ 2007-01-17 22:57 Tom Tromey
0 siblings, 0 replies; only message in thread
From: Tom Tromey @ 2007-01-17 22:57 UTC (permalink / raw)
To: GCJ-patches; +Cc: GNU Classpath Patches
I'm checking this in to Classpath and libgcj.
I think our javah should set the default boot class path to the VM's
built-in one. This is primarily useful for CNI mode header generation.
Tom
Index: ChangeLog
from Tom Tromey <tromey@redhat.com>
* tools/gnu/classpath/tools/javah/PathOptionGroup.java
(PathOptionGroup): Set default boot class path.
Index: tools/gnu/classpath/tools/javah/PathOptionGroup.java
===================================================================
--- tools/gnu/classpath/tools/javah/PathOptionGroup.java (revision 120880)
+++ tools/gnu/classpath/tools/javah/PathOptionGroup.java (working copy)
@@ -1,5 +1,5 @@
/* PathOptionGroup.java - handle classpath-setting options
- Copyright (C) 2006 Free Software Foundation, Inc.
+ Copyright (C) 2006, 2007 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -89,6 +89,11 @@
{
super("Class path options");
+ // Use the VM's built-in boot class path by default.
+ String boot = System.getProperty("sun.boot.class.path");
+ if (boot != null)
+ setPath(bootclasspath, boot);
+
add(new Option("classpath", "Set the class path", "PATH")
{
public void parsed(String path) throws OptionException
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-01-17 22:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-17 22:57 Patch: FYI: default class path for javah Tom Tromey
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).