クラスパスの区切りをFile.separatorで指定されるものに変更.
1 parent af0de2d commit 996e844ddcd7d9588ee38d5db5cfea37545b2efc
r-isitani authored on 21 Sep 2018
Showing 1 changed file
View
21
org.ntlab.traceCollector/src/org/ntlab/traceCollector/TracerLaunchConfigurationDelegate.java
*/
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;