Commit e9bf457f authored by Peter E Conn's avatar Peter E Conn Committed by Commit Bot

🔨 Pass java.filter.exclude files as list.

Our gradle file generators use the varargs form of java.filter.exclude
which breaks when there are more than 255 files to exclude. This CL
uses java.filter.exclude that takes a list instead.

Change-Id: I1cd08d1b91f94f56913c0d7bca3ccf00fc7ac946
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1678560Reviewed-by: default avatarPeter Wen <wnwen@chromium.org>
Commit-Queue: Peter Conn <peconn@chromium.org>
Cr-Commit-Position: refs/heads/master@{#672518}
parent ef1005e0
...@@ -15,11 +15,11 @@ ...@@ -15,11 +15,11 @@
] ]
{% endif %} {% endif %}
{% if variables.java_excludes is defined %} {% if variables.java_excludes is defined %}
java.filter.exclude( java.filter.exclude([
{% for path in variables.java_excludes %} {% for path in variables.java_excludes %}
"{{ path }}", "{{ path }}",
{% endfor %} {% endfor %}
) ])
{% endif %} {% endif %}
{% if variables.jni_libs is defined %} {% if variables.jni_libs is defined %}
jniLibs.srcDirs = [ jniLibs.srcDirs = [
......
...@@ -16,11 +16,11 @@ sourceSets { ...@@ -16,11 +16,11 @@ sourceSets {
{% endfor %} {% endfor %}
] ]
{% if main.java_excludes is defined %} {% if main.java_excludes is defined %}
java.filter.exclude( java.filter.exclude([
{% for path in main.java_excludes %} {% for path in main.java_excludes %}
"{{ path }}", "{{ path }}",
{% endfor %} {% endfor %}
) ])
{% endif %} {% endif %}
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment