1 22 23 package org.aspectj.debugger.request; 24 25 import org.aspectj.debugger.base.*; 26 import java.io.File ; 27 28 36 37 public class WorkingdirRequest extends Request { 38 39 private String workingdirPath; 40 41 public WorkingdirRequest(Debugger debugger, String workingdirPath) { 42 super(debugger); 43 this.workingdirPath = workingdirPath; 44 } 45 46 public Object go() throws NoVMException, DebuggerException { 47 if (workingdirPath == null || workingdirPath.equals("")) { 48 File workingdir = ((AJDebugger) debugger).getWorkingdir(); 49 return workingdir != null ? workingdir.getAbsolutePath() : ""; 50 } 51 ((AJDebugger)debugger).setWorkingdir(workingdirPath); 52 return workingdirPath; 53 } 54 } 55 | Popular Tags |