编译过程中复制文件
我在构建过程中使用构建器。
我的 src 目录中有一些 java 类以及一些 *.qvto 文件。这些文件只需复制到目标/类即可。但是,这应该作为编译过程的一部分来完成,因为这些文件代表不需要编译的代码的某些部分。目前,我陷入困境,不知道如何继续。
我的编译现在看起来像这样:
compile.with LIBS, projects('BPEL', 'ProcessModel', 'SharedState_ebBP')
但是,我想将所有 *.qvto 文件从 src/main/java 复制到 target/classes。而且只有在它们被改变的情况下。你有想法吗,我怎样才能实现这个目标?
I use builder for my buildprocess.
I have some java classes in my src directory as well as some *.qvto files. These files just need to be copied to target/classes. However, this should be done as part of the compilation process, as these files represent some part of code that does not need to be compiled. Currently, I am stuck and do not know how to proceed.
My compilation looks like this at the moment:
compile.with LIBS, projects('BPEL', 'ProcessModel', 'SharedState_ebBP')
However, I want to copy all *.qvto files from src/main/java to target/classes. And only, if they have been changed. Do you have an idea, how I can achieve this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
假设您正在使用 Apache
buildr
工具,那么我认为解决方案是将文件移动到 src/main/resources ,它们将通过“编译”步骤自动复制。构建器快速入门页面对此进行了解释。
Assuming that you are using the Apache
buildr
tool, then I think the solution is to move the files to src/main/resources and they will be copied automatically by the "compile" step.The buildr Quick Start page explains this.
假设您使用 Maven 作为构建工具,它需要将所有
.qvto
文件移动到src/main/resources
目录。Assuming that you use Maven as a building tool it needs to move all
.qvto
files tosrc/main/resources
directory.