From 15aceac4884a641c8dc6f32f2fcc0ddca0b6ebbc Mon Sep 17 00:00:00 2001 From: aph Date: Wed, 5 Apr 2006 09:53:08 +0000 Subject: 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@112699 138bc75d-0d04-0410-961f-82ee72b054a4 --- 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 d6038043d91..fc1f8464fa6 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.2.3