开发者

Copying files during compilation process

开发者 https://www.devze.com 2023-01-18 14:59 出处:网络
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 pa

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 f开发者_StackOverflow中文版rom src/main/java to target/classes. 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.

The buildr Quick Start page explains this.


Assuming that you use Maven as a building tool it needs to move all .qvto files to src/main/resources directory.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号