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

查看:136
本文介绍了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)?

谢谢。

推荐答案

设置(Mac上的首选项)| 编译器 | 资源模式

Settings (Preferences on Mac) | Compiler | Resource Patterns.

此问题重复/涉及到:

  • copy jbehave stories into target directory using IntelliJ Idea
  • IntelliJ, Akka and Configuration files
  • IntelliJ IDEA 11.1.2 does not copy SQL files to the out folder
  • Add a properties file to IntelliJ's classpath
  • import images into an intelliJ Java project
  • Intellij - how do I add a text file to the resources
  • Null Pointer Exception for read properties file in Idea
  • IntelliJ Idea - resource SQL files not being copied to target
  • Scala getClass.getResource() returning null

这篇关于IntelliJ:如何将非java文件复制到bin目录中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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