如何排除conf文件夹下的文件进行分发? [英] How to exclude files under conf folder for distribution?

查看:70
本文介绍了如何排除conf文件夹下的文件进行分发?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Play 2.3应用程序的conf文件夹下有一个application.dev.confapplication.test.conf,但是我不希望将其打包为发行版的一部分吗? excludeFilter正确的选择是什么?

I have a application.dev.conf and application.test.conf under my conf folder in my Play 2.3 application but I do not want it to be packaged as part of my distribution? What is the right excludeFilter for it?

推荐答案

您可以使用mappings排除两个文件.

You could use mappings to exclude both files.

mappings in Universal := {
  val origMappings = (mappings in Universal).value
  origMappings.filterNot { case (_, file) => file.endsWith("application.dev.conf") || file.endsWith("application.test.conf") }
}

这篇关于如何排除conf文件夹下的文件进行分发?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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