org.codehaus.aspectwerkz.hook
Class BootClasspathStarter

java.lang.Object
  extended byorg.codehaus.aspectwerkz.hook.AbstractStarter
      extended byorg.codehaus.aspectwerkz.hook.BootClasspathStarter

public class BootClasspathStarter
extends org.codehaus.aspectwerkz.hook.AbstractStarter

Starts a target process adding a dir in -Xbootclasspath/p: option

Target process is launched using $JAVA_HOME/bin/java [opt] [main]
and [opt] is patched to use [bootDir] in -Xbootclasspath/p: option.
This is suitable for java 1.3.
This can be use with java 1.4 to avoid running in JDWP mode.

Author:
Alexandre Vasseur

Field Summary
protected  String main
           
protected  String opt
           
 
Constructor Summary
BootClasspathStarter(String opt, String main, String bootDir)
           
 
Method Summary
 String getCommandLine()
          return command line that launched the target process
 Process launchVM()
          launchs target process
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

opt

protected String opt

main

protected String main
Constructor Detail

BootClasspathStarter

public BootClasspathStarter(String opt,
                            String main,
                            String bootDir)
Method Detail

getCommandLine

public String getCommandLine()
return command line that launched the target process


launchVM

public Process launchVM()
                 throws IOException
launchs target process

Throws:
IOException


Copyright © 2002-2004 Jonas Bonér, Alexandre Vasseur. All Rights Reserved.