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

Unified Diff: dart/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/pub/RunPubJob.java

Issue 64033002: Version 0.8.10.8 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 1 month 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: dart/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/pub/RunPubJob.java
===================================================================
--- dart/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/pub/RunPubJob.java (revision 30037)
+++ dart/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/pub/RunPubJob.java (working copy)
@@ -20,6 +20,7 @@
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
+import java.util.Arrays;
import java.util.List;
/**
@@ -36,6 +37,7 @@
public static final String INSTALL_OFFLINE_COMMAND = "get --offline"; //$NON-NLS-1$
public static final String PUBLISH_COMMAND = "publish"; //$NON-NLS-1$
public static final String DEPLOY_COMMAND = "build"; //$NON-NLS-1$
+ public static final String BUILD_NOMINIFY_COMMAND = "build --no-minify"; //$NON-NLS-1$
/**
* The pub command to be run (e.g. "install", "update")
@@ -104,7 +106,12 @@
args.add("\"" + pubFile.getAbsolutePath() + "\"" + " " + command);
} else {
args.add(pubFile.getAbsolutePath());
- args.add(command);
+ if (command.contains(" ")) {
+ String[] strings = command.split(" ");
+ args.addAll(Arrays.asList(strings));
+ } else {
+ args.add(command);
+ }
}
builder.command(args);

Powered by Google App Engine
This is Rietveld 408576698