aboutsummaryrefslogtreecommitdiff
path: root/libjava/gnu/java/rmi/rmic/Compiler.java
diff options
context:
space:
mode:
authorArchit Shah <ashah@redhat.com>2006-04-05 09:53:08 +0000
committerAndrew Haley <aph@gcc.gnu.org>2006-04-05 09:53:08 +0000
commit917173f4d24c2d6b004d74cf89c2776c556beab4 (patch)
tree1fb2f0f405b16b7bd558d6735496d8532b5b84d1 /libjava/gnu/java/rmi/rmic/Compiler.java
parent6eee98936968c67edc8d9190b215819498840b57 (diff)
downloadgcc-917173f4d24c2d6b004d74cf89c2776c556beab4.zip
gcc-917173f4d24c2d6b004d74cf89c2776c556beab4.tar.gz
gcc-917173f4d24c2d6b004d74cf89c2776c556beab4.tar.bz2
re PR libgcj/25414 (should update rmic)
2006-04-05 Archit Shah <ashah@redhat.com> 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
Diffstat (limited to 'libjava/gnu/java/rmi/rmic/Compiler.java')
-rw-r--r--libjava/gnu/java/rmi/rmic/Compiler.java15
1 files changed, 15 insertions, 0 deletions
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_";
}