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

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

Issue 10960002: "No SDK, No Problem!" (take 2) (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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
« no previous file with comments | « no previous file | editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/analysis/index/AnalysisIndexManager.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compiler/java/com/google/dart/compiler/PackageLibraryManager.java
===================================================================
--- compiler/java/com/google/dart/compiler/PackageLibraryManager.java (revision 12608)
+++ compiler/java/com/google/dart/compiler/PackageLibraryManager.java (working copy)
@@ -87,13 +87,21 @@
}
public PackageLibraryManager(File sdkPath, String platformName) {
+ initLibraryManager(sdkPath);
+ setPackageRoots(DEFAULT_PACKAGE_ROOTS);
+ }
+
+ /**
+ * Initialize the SDK system library manager.
+ *
+ * @param sdkPath the path to the SDK
+ */
+ protected void initLibraryManager(File sdkPath) {
if (SDK_LIBRARY_MANAGER == null){
SDK_LIBRARY_MANAGER = new SystemLibraryManager(sdkPath);
}
- setPackageRoots(DEFAULT_PACKAGE_ROOTS);
}
-
/**
* Expand a relative or short URI (e.g. "dart:html") which is implementation independent to its
* full URI (e.g. "dart://html/com/google/dart/htmllib/html.dart").
« no previous file with comments | « no previous file | editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/analysis/index/AnalysisIndexManager.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698