Process handling [message #287019] |
Thu, 23 June 2005 03:12 |
Eclipse User |
|
|
|
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.
|
|
|
Powered by
FUDForum. Page generated in 0.07685 seconds