简体   繁体   English

在编译过程中复制文件

[英]Copying files during compilation process

I use builder for my buildprocess. 我将builder用于构建过程。

I have some java classes in my src directory as well as some *.qvto files. 我的src目录中有一些Java类以及一些* .qvto文件。 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. 但是,我想将所有* .qvto文件从src / main / java复制到目标/类。 And only, if they have been changed. 而且,如果它们已被更改。 Do you have an idea, how I can achieve this? 您有什么想法,我该如何实现?

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. 假设您使用的是Apache buildr工具,那么我认为解决方案是将文件移动到src / main / resources,并且它们将通过“编译”步骤自动复制。

The buildr Quick Start page explains this. 构建器的快速入门页面对此进行了说明。

假设您使用Maven作为构建工具,则需要将所有.qvto文件移动到src/main/resources目录。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM