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

Unified Diff: compiler/java/com/google/dart/runner/BundleLibrarySource.java

Issue 9466041: Removes dependency on v8 from dartc testing (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated date, copyright notices, build.xml Created 8 years, 10 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/runner/BundleLibrarySource.java
diff --git a/compiler/java/com/google/dart/runner/BundleLibrarySource.java b/compiler/java/com/google/dart/runner/BundleLibrarySource.java
deleted file mode 100644
index 6bfb401d555dc060114243d9513c6cfc42a2a174..0000000000000000000000000000000000000000
--- a/compiler/java/com/google/dart/runner/BundleLibrarySource.java
+++ /dev/null
@@ -1,62 +0,0 @@
-// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-package com.google.dart.runner;
-
-import com.google.dart.compiler.DartSource;
-import com.google.dart.compiler.LibrarySource;
-import com.google.dart.compiler.UrlDartSource;
-import com.google.dart.compiler.UrlSource;
-
-import java.net.URISyntaxException;
-
-class BundleLibrarySource extends UrlSource implements LibrarySource {
-
- private final class BundleDartSource extends UrlDartSource {
- private BundleDartSource(ClassLoader loader, String basePath, String filename)
- throws URISyntaxException {
- super(loader.getResource(basePath + filename).toURI(), filename, BundleLibrarySource.this);
- }
-
- @Override
- public String getName() {
- return basePath + getRelativePath();
- }
- }
-
- private final ClassLoader loader;
- private final String basePath;
- private final String filename;
-
- public BundleLibrarySource(ClassLoader loader, String basePath, String filename)
- throws URISyntaxException {
- super(loader.getResource(basePath + filename).toURI());
- this.loader = loader;
- this.basePath = basePath;
- this.filename = filename;
- }
-
- @Override
- public LibrarySource getImportFor(String relPath) {
- try {
- return new BundleLibrarySource(loader, basePath, relPath);
- } catch (URISyntaxException e) {
- return null;
- }
- }
-
- @Override
- public DartSource getSourceFor(String relPath) {
- try {
- return new BundleDartSource(loader, basePath, relPath);
- } catch (URISyntaxException e) {
- return null;
- }
- }
-
- @Override
- public String getName() {
- return basePath + filename;
- }
-}
« no previous file with comments | « compiler/java/com/google/dart/compiler/UnitTestBatchRunner.java ('k') | compiler/java/com/google/dart/runner/DartRunner.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698