summaryrefslogtreecommitdiffstats
path: root/jack/tests
diff options
context:
space:
mode:
authorJean-Marie Henaff <jmhenaff@google.com>2015-05-11 17:54:05 +0200
committerJean-Marie Henaff <jmhenaff@google.com>2015-05-12 11:14:06 +0200
commita18689e31b6c26e62a457f9976de4d72a6ba197c (patch)
tree97787e2872913c2abea656d12c33a3b6d4b8f03f /jack/tests
parentdc6de5d3bbbc226aba567add67781fc10befb333 (diff)
downloadtoolchain_jack-a18689e31b6c26e62a457f9976de4d72a6ba197c.zip
toolchain_jack-a18689e31b6c26e62a457f9976de4d72a6ba197c.tar.gz
toolchain_jack-a18689e31b6c26e62a457f9976de4d72a6ba197c.tar.bz2
Modify Api01Config and Jack to support multiple Jarjar config files
Bug: 20913411 (cherry picked from commit 517dec6fa299a3755f38681b3fcea387c84873f0) Change-Id: If9c1e8f827e8ed3fd68c4999a8700608a95ce7c9
Diffstat (limited to 'jack/tests')
-rw-r--r--jack/tests/com/android/jack/TestTools.java11
1 files changed, 6 insertions, 5 deletions
diff --git a/jack/tests/com/android/jack/TestTools.java b/jack/tests/com/android/jack/TestTools.java
index 223e4da..05fcf28 100644
--- a/jack/tests/com/android/jack/TestTools.java
+++ b/jack/tests/com/android/jack/TestTools.java
@@ -57,6 +57,8 @@ import java.io.FileWriter;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
+import java.util.Collections;
+import java.util.Collections;
import java.util.List;
import javax.annotation.CheckForNull;
@@ -254,16 +256,15 @@ public class TestTools {
@Nonnull
public static Options buildCommandLineArgs(@Nonnull File fileOrSourcelist) throws IOException {
- return buildCommandLineArgs(fileOrSourcelist, null);
+ return buildCommandLineArgs(fileOrSourcelist, Collections.<File>emptyList());
}
@Nonnull
public static Options buildCommandLineArgs(@Nonnull File fileOrSourcelist,
- @CheckForNull File jarjarRules) throws IOException {
+ @Nonnull List<File> jarjarRules) throws IOException {
Options options = buildCommandLineArgs(null /* classpath */, new File[] {fileOrSourcelist});
- if (jarjarRules != null) {
- options.setJarjarRulesFile(jarjarRules);
- }
+ options.setJarjarRulesFiles(jarjarRules);
+
return options;
}