Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1084)

Unified Diff: compiler/java/com/google/dart/compiler/DartCompiler.java

Issue 10821119: set package root after creating configuration, since defualt compiler configuration is used by an... (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: compiler/java/com/google/dart/compiler/DartCompiler.java
===================================================================
--- compiler/java/com/google/dart/compiler/DartCompiler.java (revision 10059)
+++ compiler/java/com/google/dart/compiler/DartCompiler.java (working copy)
@@ -55,6 +55,7 @@
import java.io.Writer;
import java.net.URI;
import java.util.ArrayList;
+import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
@@ -1029,6 +1030,7 @@
}
CompilerConfiguration config = new DefaultCompilerConfiguration(compilerOptions);
+ config.getSystemLibraryManager().setPackageRoots(Arrays.asList(new File[]{compilerOptions.getPackageRoot()}));
return compilerMain(sourceFile, config);
}

Powered by Google App Engine
This is Rietveld 408576698