Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
794c3bee
Commit
794c3bee
authored
Jun 17, 2004
by
Anthony Green
Committed by
Anthony Green
Jun 17, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add extension directory contents to the class path.
From-SVN: r83291
parent
ca072a31
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
0 deletions
+35
-0
libjava/ChangeLog
+5
-0
libjava/gnu/gcj/runtime/VMClassLoader.java
+30
-0
No files found.
libjava/ChangeLog
View file @
794c3bee
2004
-
06
-
17
Anthony
Green
<
green
@
redhat
.
com
>
*
gnu
/
gcj
/
runtime
/
VMClassLoader
.
java
(
init
):
Add
extension
directory
contents
to
the
class
path
.
2004
-
06
-
15
Andrew
Haley
<
aph
@
redhat
.
com
>
2004
-
06
-
15
Andrew
Haley
<
aph
@
redhat
.
com
>
*
java
/
lang
/
natSystem
.
cc
(
getenv0
):
Don
't assume environment
*
java
/
lang
/
natSystem
.
cc
(
getenv0
):
Don
't assume environment
...
...
libjava/gnu/gcj/runtime/VMClassLoader.java
View file @
794c3bee
...
@@ -57,6 +57,36 @@ public final class VMClassLoader extends java.net.URLClassLoader
...
@@ -57,6 +57,36 @@ public final class VMClassLoader extends java.net.URLClassLoader
/* Ignore this path element */
/* Ignore this path element */
}
}
}
}
// Add the contents of the extensions directories.
st
=
new
StringTokenizer
(
System
.
getProperty
(
"java.ext.dirs"
),
System
.
getProperty
(
"path.separator"
,
":"
));
while
(
st
.
hasMoreElements
())
{
String
dirname
=
st
.
nextToken
();
try
{
File
dir
=
new
File
(
dirname
);
if
(!
dirname
.
endsWith
(
File
.
separator
))
dirname
=
dirname
+
File
.
separator
;
String
files
[]
=
dir
.
list
(
new
FilenameFilter
()
{
public
boolean
accept
(
File
dir
,
String
name
)
{
return
(
name
.
endsWith
(
".jar"
)
||
name
.
endsWith
(
".zip"
));
}
});
for
(
int
i
=
files
.
length
-
1
;
i
>=
0
;
i
--)
addURL
(
new
URL
(
"file"
,
""
,
-
1
,
dirname
+
files
[
i
]));
}
catch
(
Exception
x
)
{
// Just ignore any badness.
}
}
// Add core:/ to the end of the java.class.path so any resources
// Add core:/ to the end of the java.class.path so any resources
// compiled into this executable may be found.
// compiled into this executable may be found.
try
try
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment