Copy a file to the EAR root directory


I have an Gradle project that follows a typical EAR project structure. MyProject/ —ejb/ —web/ —jpa/ —

The EAR assembles and deploys fine, but I’m having trouble placing the file into the root directory of the generated EAR. I’ve tried googling with no lucks.

Thanks in advance

This seems to be working!

ear {

from(’.’) {

include ‘*.properties’


into(’/’) }