View | Details | Raw Unified | Return to bug 112098
Collapse All | Expand All

(-)src/org/aspectj/ajdt/ajc/BuildArgParser.java (+13 lines)
Lines 286-296 Link Here
286
    	
286
    	
287
    	if (parser.bootclasspath == null) {
287
    	if (parser.bootclasspath == null) {
288
    		addClasspath(System.getProperty("sun.boot.class.path", ""), ret);
288
    		addClasspath(System.getProperty("sun.boot.class.path", ""), ret);
289
    		addClasspath(getRuntimePath(), ret);
289
    	} else {  
290
    	} else {  
290
    		addClasspath(parser.bootclasspath, ret);
291
    		addClasspath(parser.bootclasspath, ret);
291
    	}
292
    	}
293
//    	System.err.println("? BuildArgParser.getBootclasspath() " + ret);
292
    	return ret;
294
    	return ret;
293
	}
295
	}
296
	
297
	private String getRuntimePath () {
298
		String runtimePath;
299
		String filename = getClass().getProtectionDomain().getCodeSource().getLocation().getPath();
300
		File toolsFile = new File(filename);
301
		File runtimeFile = new File(toolsFile.getParentFile(),"aspectjrt.jar");
302
		runtimePath = runtimeFile.getPath();
303
//		System.err.println("? BuildArgParser.getRuntimePath() " + runtimePath);
304
		return runtimePath;
305
	}
306
	
294
    /**
307
    /**
295
     * If the classpath is not set, we use the environment's java.class.path, but remove
308
     * If the classpath is not set, we use the environment's java.class.path, but remove
296
     * the aspectjtools.jar entry from that list in order to prevent wierd bootstrap issues
309
     * the aspectjtools.jar entry from that list in order to prevent wierd bootstrap issues

Return to bug 112098