IntelliJ IDEA 11.1.2不会将SQL文件复制到out文件夹 [英] IntelliJ IDEA 11.1.2 does not copy SQL files to the out folder

查看:245
本文介绍了IntelliJ IDEA 11.1.2不会将SQL文件复制到out文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用IntelliJ IDEA 11.1.2 Ultimate和Gradle 1.0多模块项目。一个模块代表域。



项目输出指向 [project-root] \out。但是,如果我运行单元测试,则域模块的输出文件夹根本不包含任何.sql文件。 。这是我在IntelliJ IDEA中运行JUnit测试的方式。

如果我使用Gradle从命令行运行项目,一切正常。

解决方案

设置 | 编译器 | 资源模式,添加 sql 扩展名的模式。


I am using IntelliJ IDEA 11.1.2 Ultimate with Gradle 1.0 multi module project. One module represents the domain.

The projects output is points to [project-root]\out. But if I run a unit test the output folder of the domain module does not contain any .sql files at all. . This is how I run the JUnit test within IntelliJ IDEA .

If I run the project using Gradle from command line everything works fine.

解决方案

Settings | Compiler | Resource Patterns, add the pattern for the sql extension.

这篇关于IntelliJ IDEA 11.1.2不会将SQL文件复制到out文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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