mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-27 17:05:37 +08:00
1a558147d1
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
33 lines
755 B
C++
33 lines
755 B
C++
// java-props.h - Properties -*- c++ -*-
|
|
|
|
/* Copyright (C) 1999 Free Software Foundation
|
|
|
|
This file is part of libgcj.
|
|
|
|
This software is copyrighted work licensed under the terms of the
|
|
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
|
details. */
|
|
|
|
#ifndef __JAVA_PROPS_H__
|
|
#define __JAVA_PROPS_H__
|
|
|
|
typedef struct
|
|
{
|
|
char *key;
|
|
size_t key_length;
|
|
char *value;
|
|
size_t value_length;
|
|
} property_pair;
|
|
|
|
// Set to NULL-terminated list of properties set at compile time.
|
|
extern const char **_Jv_Compiler_Properties;
|
|
|
|
// The JAR file to add to the beginning of java.class.path.
|
|
extern const char *_Jv_Jar_Class_Path;
|
|
|
|
// Properties taken from the user's environment.
|
|
extern property_pair *_Jv_Environment_Properties;
|
|
|
|
#endif
|
|
|