[GRADLE-3418] Copy action skips ‘#’ or '%' directory on copy Created: 23/Mar/16 Updated: 25/Mar/16 Resolved: 25/Mar/16 |
|
Status: | Resolved |
Project: | Gradle |
Affects Version/s: | 2.11, 2.12 |
Fix Version/s: | 2.13-rc-1 |
Type: | Bug | ||
Reporter: | Sterling Greene | Assignee: | Pepper Lebeck-Jobe |
Resolution: | Fixed | Votes: | 0 |
Known Issue Of: |
Description |
https://discuss.gradle.org/t/copy-action-skips-directory-on-copy-in-gradle-2-11/15396 With Gradle 2.11, or 2.12, a path that has a directory named '#' (in this case, it's a npm module directory) is no longer makes it into packages in our packing plugin Workaround, add this to build.gradle:
org.apache.tools.ant.DirectoryScanner.removeDefaultExclude("**/#*#")
This is a general problem with any exclude patterns that have the form of "<something>*<something>". There are two built-in Ant exclude patterns like this: **/%*% **/#*# Gradle 2.11 and 2.12 will not copy files from paths that are just # or %. |