IntelliJ:如何将非 java 文件也复制到 bin 目录? [英] IntelliJ: how to make non java files copied to the bin directory as well?

查看:28
本文介绍了IntelliJ:如何将非 java 文件也复制到 bin 目录?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的模块在 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:如何将非 java 文件也复制到 bin 目录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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