| |
---|
| | */ |
---|
| | public class TracerLaunchConfigurationDelegate extends org.eclipse.jdt.launching.AbstractJavaLaunchConfigurationDelegate { |
---|
| | @Override |
---|
| | public void launch(ILaunchConfiguration configuration, String mode, |
---|
| | ILaunch launch, IProgressMonitor monitor) throws CoreException { |
---|
| | |
---|
| | // int cnt = 0; |
---|
| | // for (IAdditionalLaunchConfiguration config : Activator.getDefault().getLoader().getAdditionalLaunchConfigurations()) { |
---|
| | // for (String str : config.getAdditionalClasspath()) { |
---|
| | // System.out.println(str); |
---|
| | // cnt++; |
---|
| | // } |
---|
| | // } |
---|
| | |
---|
| | ILaunch launch, IProgressMonitor monitor) throws CoreException { |
---|
| | if (monitor == null) { |
---|
| | monitor = new NullProgressMonitor(); |
---|
| | } |
---|
| | |
---|
| |
---|
| | classpath[configClasspath.length + 1] = bundlePath.substring(1) + Tracer.JAVASSIST_LIBRARY; |
---|
| | System.arraycopy(additionalClasspaths, 0, classpath, configClasspath.length + 2, additionalClasspaths.length); |
---|
| | |
---|
| | for (int i = 0; i < classpath.length; i++) { |
---|
| | classpath[i] = classpath[i].replace("/", File.separator); |
---|
| | System.out.println(String.format("classpath[%d] = %s", i, classpath[i])); |
---|
| | } |
---|
| | } catch (IOException e) { |
---|
| | classpath = configClasspath; |
---|
| |
---|
| | |