1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-06 01:57:40 +00:00
freebsd-ports/java/ecj-bootstrap/files/ecj-patch-Main.java
Maho Nakata c237f6edac Add sun.boot.class.path as default bootclasspath for gcj,
so that we don't need to specify the bootclasspath.
Bump portrevision.
2006-08-04 10:34:49 +00:00

22 lines
712 B
Java

Dirty hack...recognize sun.boot.class.path for implicit bootclasspath.
--- org/eclipse/jdt/internal/compiler/batch/Main.java Fri Aug 4 15:14:29 2006
+++ org/eclipse/jdt/internal/compiler/batch/Main.java Fri Aug 4 16:04:13 2006
@@ -2448,6 +2448,16 @@
}
}
}
+
+ /*
+ * Handle sun.boot.class.path
+ */
+ String sunboot = System.getProperty("sun.boot.class.path");
+ File sunbootclasspath = new File (sunboot);
+ FileSystem.Classpath classpath = FileSystem.getClasspath(
+ sunbootclasspath.getAbsolutePath(),
+ null, false, null);
+ if (classpath != null) {bootclasspaths.add(classpath);}
}
final int classpathsSize = classpaths.size();
if (classpaths.size() != 0) {