1 22 23 package org.aspectj.debugger.request; 24 25 import org.aspectj.debugger.base.*; 26 27 import com.sun.jdi.*; 28 import java.util.*; 29 30 38 39 public class ClasspathRequest extends Request { 40 public ClasspathRequest(Debugger debugger) { 41 super(debugger); 42 } 43 44 public Object go() throws NoVMException, DebuggerException { 45 if (vm() instanceof PathSearchingVirtualMachine) { 46 PathSearchingVirtualMachine pvm = (PathSearchingVirtualMachine) vm(); 47 return new Package (pvm.baseDirectory(), pvm.classPath()); 48 49 } 50 throw new DebuggerException("The VM cannot search for a classpath"); 51 } 52 53 public static class Package { 54 public String baseDirectory; 55 public List paths; 56 public Package(String baseDirectory, List paths) { 57 this.baseDirectory = baseDirectory; 58 this.paths = paths; 59 } 60 } 61 } 62 | Popular Tags |