Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Process handling
Process handling [message #287019] Thu, 23 June 2005 03:12
Eclipse UserFriend
Hi,

I want to know how to handle trace from a program with the "Console" view ?
Until know I use this code but maybe not the right way to do this (some
discouraged reference :/) :

with ANT:
ILaunchManager manager = DebugPlugin.getDefault().getLaunchManager() ;

ILaunchConfigurationType type =
manager.getLaunchConfigurationType(IAntLaunchConfigurationCo nstants.ID_ANT_LAUNCH_CONFIGURATION_TYPE);

ILaunchConfigurationWorkingCopy conf = type.newInstance(null, "...");
conf.setAttribute(IExternalToolConstants.ATTR_TOOL_ARGUMENTS ,BUILD_TARGET);
conf.setAttribute(IExternalToolConstants.ATTR_LOCATION, BUILD_XML);
conf.setAttribute(IAntLaunchConfigurationConstants.ATTR_ANT_ PROPERTIES,map);

conf.launch(ILaunchManager.RUN_MODE, new NullProgressMonitor());

Thanks for answer.
Previous Topic:preventing user jobs from launching the Progress Dialog
Next Topic:how to exit the workbench programmetically
Goto Forum:
  


Current Time: Tue Jul 22 15:54:46 EDT 2025

Powered by FUDForum. Page generated in 0.02987 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top