X-Git-Url: http://git.phpeclipse.com diff --git a/net.sourceforge.phpeclipse.launching/src/net/sourceforge/phpdt/internal/launching/PHPLaunchConfigurationDelegate.java b/net.sourceforge.phpeclipse.launching/src/net/sourceforge/phpdt/internal/launching/PHPLaunchConfigurationDelegate.java index cfa568e..e9db3d1 100644 --- a/net.sourceforge.phpeclipse.launching/src/net/sourceforge/phpdt/internal/launching/PHPLaunchConfigurationDelegate.java +++ b/net.sourceforge.phpeclipse.launching/src/net/sourceforge/phpdt/internal/launching/PHPLaunchConfigurationDelegate.java @@ -14,10 +14,16 @@ package net.sourceforge.phpdt.internal.launching; //import java.io.OutputStream; +import net.sourceforge.phpdt.internal.core.JavaProject; +import net.sourceforge.phpeclipse.ui.editor.BrowserUtil; + +import org.eclipse.core.resources.IFile; +import org.eclipse.core.resources.IProject; import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.core.runtime.IStatus; import org.eclipse.core.runtime.Status; +import org.eclipse.debug.core.DebugPlugin; import org.eclipse.debug.core.ILaunch; import org.eclipse.debug.core.ILaunchConfiguration; import org.eclipse.debug.core.model.LaunchConfigurationDelegate; @@ -38,11 +44,13 @@ public class PHPLaunchConfigurationDelegate extends LaunchConfigurationDelegate public void launch(ILaunchConfiguration configuration, String mode, ILaunch launch, IProgressMonitor monitor) throws CoreException { if (PHPRuntime.getDefault().getSelectedInterpreter() == null) throw new CoreException(new Status(IStatus.ERROR, PHPLaunchingPlugin.PLUGIN_ID, IStatus.OK, "You must define an interpreter before running PHP.", null)); - + + InterpreterRunnerConfiguration conf=new InterpreterRunnerConfiguration(configuration); + conf.setEnvironment(DebugPlugin.getDefault().getLaunchManager().getEnvironment(configuration)); if (mode.equals("debug")) { - debuggerRunner.run(new InterpreterRunnerConfiguration(configuration), launch); + debuggerRunner.run(conf, launch); } else { - interpreterRunner.run(new InterpreterRunnerConfiguration(configuration), launch, null); + interpreterRunner.run(conf, launch); } } }