gradle复制多行文件过滤器 [英] gradle copy multiline file filter

查看:78
本文介绍了gradle复制多行文件过滤器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用gradle copy任务复制文件,并且我想使用正则表达式应用匹配多行的过滤器.似乎filter任务仅逐行匹配.有没有办法一次分析整个文件?

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?

推荐答案

没有多行过滤器.您可能需要在复制之前或之后(使用Groovy)处理文件.

There is no multi-line filter. You may have to process the files before or after the copy (with Groovy).

这篇关于gradle复制多行文件过滤器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆