natSystem.cc (init_properties): Change sourceware reference to sources.redhat.com.
Sun Aug 20 21:02:48 2000 Anthony Green <green@redhat.com> * java/lang/natSystem.cc (init_properties): Change sourceware reference to sources.redhat.com. * include/java-props.h: Add _Jv_Jar_Class_Path. * prims.cc: Ditto. Set it from `gij -jar file' option. * java/lang/natSystem.cc (init_properties): Set java.class.path from {gij -jar file}:{CLASSPATH variable}:{-Djava.class.path= or .} * java/util/PropertyPermission.java: Import from GNU Classpath. * Makefile.in: Rebuilt. * Makefile.am: Add java/util/PropertyPermission.java. * java/lang/System.java: Add setProperty method. * gij.cc (main): Add -jar option to execute jar files. (help): Describe -jar option. * prims.cc (_Jv_RunMain): Add support for jar execution mode. * gnu/gcj/tools/Gij.java: New file. * include/jvm.h: Add is_jar argument to _Jv_RunMain. * gnu/gcj/runtime/FirstThread.java (main): New method. * java/util/jar/Attributes.java: Correct comment spelling. From-SVN: r35829
This commit is contained in:
parent
b485e15bf8
commit
1a558147d1
12 changed files with 386 additions and 25 deletions
|
@ -19,6 +19,7 @@ import java.io.PrintStream;
|
|||
import java.io.BufferedInputStream;
|
||||
import java.io.BufferedOutputStream;
|
||||
import java.util.Properties;
|
||||
import java.util.PropertyPermission;
|
||||
|
||||
/**
|
||||
* @author Tom Tromey <tromey@cygnus.com>
|
||||
|
@ -132,8 +133,12 @@ public final class System
|
|||
properties = props;
|
||||
}
|
||||
|
||||
// TODO 1.2.
|
||||
// public static String setProperty (String key, String value);
|
||||
public static String setProperty (String key, String value)
|
||||
{
|
||||
if (secman != null)
|
||||
secman.checkPermission (new PropertyPermission (key, "write"));
|
||||
return (String) properties.setProperty (key, value);
|
||||
}
|
||||
|
||||
// TODO 1.2.
|
||||
// public static String mapLibraryName (String libname);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue