IntelliJ:如何将非 java 文件也复制到 bin 目录? [英] IntelliJ: how to make non java files copied to the bin directory as well?
问题描述
我的模块在 java 源文件中包含一些非 java 文件.构建模块时,java 文件被复制到 bin 文件夹(并包含在 jar 工件中),但非 java 文件被排除在外.
My module contains some non java files along the java source files. When the module is built, the java files are copied to the bin folder (and included in the jar artifact), but the non java files are left out.
我也需要复制它们(Eclipse 就是这样做的).请注意,它们确实出现在左侧的项目树视图中,我没有以任何方式排除它们.
I need them to be copied as well (this is what Eclipse does). Note, that they do appear in the project tree view on the left, I did not exclude them in any way.
如何让它们进入 bin 文件夹(jar 工件)?
How can I make them get into the bin folder (jar artifact)?
谢谢.
推荐答案
Settings
(Mac 上的 Preferences
) |编译器
|资源模式.
Settings
(Preferences
on Mac) | Compiler
| Resource Patterns.
这个问题重复/涉及:
- 使用智能创意
- IntelliJ、Akka 和配置文件
- IntelliJ IDEA 11.1.2 不会将 SQL 文件复制到 out 文件夹
- 将属性文件添加到 IntelliJ 的类路径
- 将图像导入 intelliJ Java 项目
- Intellij - 我该怎么做将文本文件添加到资源中
- 读取属性文件的空指针异常在想法中
- IntelliJ Idea - 资源 SQL文件未复制到目标
- Scala getClass.getResource() 返回 null
这篇关于IntelliJ:如何将非 java 文件也复制到 bin 目录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!