From 917173f4d24c2d6b004d74cf89c2776c556beab4 Mon Sep 17 00:00:00 2001 From: Archit Shah Date: Wed, 5 Apr 2006 09:53:08 +0000 Subject: re PR libgcj/25414 (should update rmic) 2006-04-05 Archit Shah PR java/25414 * gnu/java/rmi/rmic/CompilerProcess.java (computeTypicalArguments): Add classpath argument. * gnu/java/rmi/rmic/Compile_gcj.java (computeArguments): Adjust caller. * gnu/java/rmi/rmic/Compile_jikes.java (computeArguments): Likewise. * gnu/java/rmi/rmic/Compile_kjc.java (computeArguments): Likewise. * gnu/java/rmi/rmic/Compiler.java (getClasspath, setClasspath): New. * gnu/java/rmi/rmic/RMIC.java: Set classpath for compiler, call mkdirs for destination directory, correct handling of superclasses and interfaces of the remote class, correct handling of exceptions declared by remote methods. From-SVN: r112699 --- libjava/gnu/java/rmi/rmic/Compiler.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'libjava/gnu/java/rmi/rmic/Compiler.java') diff --git a/libjava/gnu/java/rmi/rmic/Compiler.java b/libjava/gnu/java/rmi/rmic/Compiler.java index d603804..fc1f846 100644 --- a/libjava/gnu/java/rmi/rmic/Compiler.java +++ b/libjava/gnu/java/rmi/rmic/Compiler.java @@ -82,12 +82,27 @@ public abstract class Compiler this.dest = dest; } + /** Get the classpath for compilation. */ + public String getClasspath () + { + return classpath; + } + + /** Set the classpath for compilation. */ + public void setClasspath (String classpath) + { + this.classpath = classpath; + } + /** Compile the given file. Throws exception on error. */ public abstract void compile (String name) throws Exception; /** The destination directory, or null if none set. */ protected String dest; + /** The classpath directory, or null if none set. */ + private String classpath; + /** Class prefix used when trying to find instance. */ private static final String classPrefix = "gnu.java.rmi.rmic.Compile_"; } -- cgit v1.1