*/
public void launchAntInExternalVM(IFile buildFile, IProgressMonitor monitor, boolean captureOutput, String targets) throws CoreException {
ILaunchConfigurationWorkingCopy workingCopy = null;
try {
workingCopy = DefaultAntlauncher.createDefaultLaunchConfiguration(buildFile, captureOutput, targets);
ILaunch launch = workingCopy.launch(ILaunchManager.RUN_MODE, new SubProgressMonitor(monitor, 1));
if (!captureOutput) {
ILaunchManager manager = DebugPlugin.getDefault().getLaunchManager();
manager.removeLaunch(launch);
}
} finally {