问题
I'm copying a file using the gradle copy task and I want to apply a filter that matches multiple lines using a regex. It seems like the filter task only matches line by line. Is there a way to analyze the entire file at once?
回答1:
There is no multi-line filter. You may have to process the files before or after the copy (with Groovy).
来源:https://stackoverflow.com/questions/17953712/gradle-copy-multiline-file-filter