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

Unified Diff: editor/util/plugins/com.google.dart.java2dart/resources/java_io.dart

Issue 115523004: Remove debug output and copy java_io.dart into resources. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 11 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 | pkg/analyzer/lib/src/generated/java_io.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: editor/util/plugins/com.google.dart.java2dart/resources/java_io.dart
diff --git a/editor/util/plugins/com.google.dart.java2dart/resources/java_io.dart b/editor/util/plugins/com.google.dart.java2dart/resources/java_io.dart
index 757683983922025c70b2d95b8866731e8dcfe882..bdd7fd860b643a99cb844002dc2ec7a4001fe4eb 100644
--- a/editor/util/plugins/com.google.dart.java2dart/resources/java_io.dart
+++ b/editor/util/plugins/com.google.dart.java2dart/resources/java_io.dart
@@ -23,19 +23,13 @@ class JavaSystemIO {
return '\n';
}
if (name == 'com.google.dart.sdk') {
- String value = Platform.environment['DART_SDK'];
- if (value != null) {
- _properties[name] = value;
- return value;
- }
- }
- if (name == 'com.google.dart.sdk') {
String exec = Platform.executable;
if (exec.length != 0) {
String sdkPath;
- // may be "xcodebuild/ReleaseIA32/dart" with "dart-sdk" sibling
+ // may be "xcodebuild/ReleaseIA32/dart" with "sdk" sibling
{
- sdkPath = pathos.join(pathos.dirname(exec), "dart-sdk");
+ var outDir = pathos.dirname(pathos.dirname(exec));
+ sdkPath = pathos.join(pathos.dirname(outDir), "sdk");
if (new Directory(sdkPath).existsSync()) {
_properties[name] = sdkPath;
return sdkPath;
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/java_io.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698