summaryrefslogtreecommitdiffstats
path: root/jack-tests/src/com/android/jack/test/toolchain/JackApiV01Toolchain.java
diff options
context:
space:
mode:
Diffstat (limited to 'jack-tests/src/com/android/jack/test/toolchain/JackApiV01Toolchain.java')
-rw-r--r--jack-tests/src/com/android/jack/test/toolchain/JackApiV01Toolchain.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/jack-tests/src/com/android/jack/test/toolchain/JackApiV01Toolchain.java b/jack-tests/src/com/android/jack/test/toolchain/JackApiV01Toolchain.java
index 2d7f6f2b..52e4b3fa 100644
--- a/jack-tests/src/com/android/jack/test/toolchain/JackApiV01Toolchain.java
+++ b/jack-tests/src/com/android/jack/test/toolchain/JackApiV01Toolchain.java
@@ -16,6 +16,7 @@
package com.android.jack.test.toolchain;
+import com.google.common.base.Splitter;
import com.google.common.collect.Lists;
import com.android.jack.Options;
@@ -194,6 +195,20 @@ public class JackApiV01Toolchain extends JackApiToolchainBase {
if (jarjarRules != null) {
apiV01Config.setJarJarConfigFile(jarjarRules);
}
+ apiV01Config.setProcessorOptions(annotationProcessorOptions);
+
+ if (annotationProcessorClasses != null) {
+ apiV01Config.setProcessorNames(annotationProcessorClasses);
+ }
+
+
+ if (processorPath != null) {
+ List<File> fileList = new ArrayList<File>();
+ for (String entry : Splitter.on(File.pathSeparatorChar).split(processorPath)) {
+ fileList.add(new File(entry));
+ }
+ apiV01Config.setProcessorPath(fileList);
+ }
}
private void libToCommon(@Nonnull File... in) throws Exception {