Commit 1e1d6bc0 authored by Jesper Öqvist's avatar Jesper Öqvist
Browse files

Don't add java.class.path to the -classpath

parent 825010c1
2013-01-07 Jesper Öqvist <jesper.oqvist@cs.lth.se>
* Don't add java.class.path to classpath
2012-11-23 Jesper Öqvist <jesper.oqvist@cs.lth.se>
* Updated to JastAdd2 version R20121122 (r889)
......
......@@ -231,13 +231,7 @@ aspect ClassPath {
else if(options().hasValueForOption("-cp"))
userClasses = options().getValueForOption("-cp").split(File.pathSeparator);
else {
String s = System.getProperty("java.class.path");
if(s != null && s.length() > 0) {
s = s + File.pathSeparator + "."; // TODO; This should not be necessary
userClasses = s.split(File.pathSeparator);
}
else
userClasses = ".".split(File.pathSeparator);
userClasses = ".".split(File.pathSeparator);
}
if(!options().hasValueForOption("-sourcepath")) {
for(int i = 0; i < userClasses.length; i++) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment