/** * Returns the working directory to use for the launched VM, * or <code>null</code> if the working directory is to be inherited * from the current process. * * @param config the VM configuration * @return the working directory to use * @exception CoreException if the working directory specified by * the configuration does not exist or is not a directory */ protected File getWorkingDir(VMRunnerConfiguration config) throws CoreException { String path = config.getWorkingDirectory(); if (path == null) { return null; } File dir = new File(path); if (!dir.isDirectory()) { abort(NLS.bind(LaunchingMessages.StandardVMRunner_Specified_working_directory_does_not_exist_or_is_not_a_directory___0__3, new String[] {path}), null, IJavaLaunchConfigurationConstants.ERR_WORKING_DIRECTORY_DOES_NOT_EXIST); } return dir; }
/** * Returns the working directory to use for the launched VM, * or <code>null</code> if the working directory is to be inherited * from the current process. * * @param config the VM configuration * @return the working directory to use * @exception CoreException if the working directory specified by * the configuration does not exist or is not a directory */ protected File getWorkingDir(VMRunnerConfiguration config) throws CoreException { String path = config.getWorkingDirectory(); if (path == null) { return null; } File dir = new File(path); if (!dir.isDirectory()) { abort(NLS.bind(LaunchingMessages.StandardVMRunner_Specified_working_directory_does_not_exist_or_is_not_a_directory___0__3, new String[] {path}), null, IJavaLaunchConfigurationConstants.ERR_WORKING_DIRECTORY_DOES_NOT_EXIST); } return dir; }