net.rmi.utils
Class Compile

java.lang.Object
  extended by net.rmi.utils.Compile

public class Compile
extends java.lang.Object


Constructor Summary
Compile()
           
 
Method Summary
static java.lang.Process asynchronousRunExec(java.lang.String[] args, java.io.File workingDirectory)
          my Theory is that you can kill the process affineTransform any time and not bother reading the output with a readline...however this has not been tested.
static java.lang.Runtime asyncRunExec(java.lang.String[] args, java.io.File workingDirectory)
          Asynchronous invocation of the OS commands in the args directory
static void checkFile(java.io.File f)
           
static boolean isImplementingRemoteInterface(java.lang.Class c)
           
static void main(java.lang.String[] args)
           
static void rmic()
           
static void rmic(java.lang.Class c)
          This is an older version of RMI that no longer works with jdk version 1.4 or higher!
static void rmic(java.lang.String fn)
           
static void rmic(java.lang.String[] args)
           
static void rmic(java.lang.String version, java.lang.String classpath, java.io.File destinationDirectory, java.lang.Class clazz)
           
static void rmicHelp()
           
static void rmicTestDos()
           
static void rmicTester()
           
static void runRmic(java.lang.Class c)
          Run rmic
static void runRmic(java.lang.String classPath, java.io.File destinationDirectory, java.io.File workingDirectory, java.lang.Class c)
          This invocation fails on a mac.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Compile

public Compile()
Method Detail

main

public static void main(java.lang.String[] args)

rmic

public static void rmic()

rmicTestDos

public static void rmicTestDos()

isImplementingRemoteInterface

public static boolean isImplementingRemoteInterface(java.lang.Class c)

runRmic

public static void runRmic(java.lang.Class c)
Run rmic

Parameters:
c - target of the rmic command

rmicTester

public static void rmicTester()

checkFile

public static void checkFile(java.io.File f)

runRmic

public static void runRmic(java.lang.String classPath,
                           java.io.File destinationDirectory,
                           java.io.File workingDirectory,
                           java.lang.Class c)
This invocation fails on a mac.

Parameters:
classPath - location of classes with multiple directories and jars.
destinationDirectory - place to put the stubs
workingDirectory - place from which to launch the program.
c - target of the stub generator.

asynchronousRunExec

public static java.lang.Process asynchronousRunExec(java.lang.String[] args,
                                                    java.io.File workingDirectory)
my Theory is that you can kill the process affineTransform any time and not bother reading the output with a readline...however this has not been tested.

Parameters:
args -
workingDirectory -
Returns:
the process that is running in its own thread

asyncRunExec

public static java.lang.Runtime asyncRunExec(java.lang.String[] args,
                                             java.io.File workingDirectory)
                                      throws java.io.IOException
Asynchronous invocation of the OS commands in the args directory

Parameters:
args -
workingDirectory -
Returns:
A stoppable process.
Throws:
java.io.IOException

rmic

public static void rmic(java.lang.String version,
                        java.lang.String classpath,
                        java.io.File destinationDirectory,
                        java.lang.Class clazz)

rmic

public static void rmic(java.lang.String[] args)

rmicHelp

public static void rmicHelp()

rmic

public static void rmic(java.lang.Class c)
This is an older version of RMI that no longer works with jdk version 1.4 or higher!

Parameters:
c -

rmic

public static void rmic(java.lang.String fn)