diff options
author | Andrew John Hughes <gnu_andrew@member.fsf.org> | 2007-10-13 08:27:56 +0000 |
---|---|---|
committer | Andrew John Hughes <gnu_andrew@member.fsf.org> | 2007-10-13 08:27:56 +0000 |
commit | 1d077877f4f0720f1ab4cda194c73ec6f58151d5 (patch) | |
tree | f5b26de96b1fc2167cdfbaa9a6370747d9573cff /tools/com | |
parent | 55d11b5361854fd1f3aea514b25f76d85abe3153 (diff) | |
download | classpath-1d077877f4f0720f1ab4cda194c73ec6f58151d5.tar.gz |
2007-10-12 Andrew John Hughes <gnu_andrew@member.fsf.org>
PR classpath/33385:
* tools/com/sun/tools/javac/Main.java:
Add bootclasspath and 1.5 options so the compiler
can run.
Diffstat (limited to 'tools/com')
-rw-r--r-- | tools/com/sun/tools/javac/Main.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/com/sun/tools/javac/Main.java b/tools/com/sun/tools/javac/Main.java index f67a2d728..9a38ea711 100644 --- a/tools/com/sun/tools/javac/Main.java +++ b/tools/com/sun/tools/javac/Main.java @@ -139,8 +139,13 @@ public class Main new PrintWriter(System.err), Boolean.FALSE }); + String[] runArgs = new String[args.length + 3]; + runArgs[0] = "-1.5"; + runArgs[1] = "-bootclasspath"; + runArgs[2] = (String) System.getProperties().get("java.boot.class.path"); + System.arraycopy(args, 0, runArgs, 3, args.length); return ((Boolean) ecjMethod.invoke(ecjInstance, new Object[] - { args })).booleanValue() ? 0 : -1; + { runArgs })).booleanValue() ? 0 : -1; } public static int compile(String[] args) throws Exception |