Copy a file to the EAR root directory

Hi,

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

The EAR assembles and deploys fine, but I’m having trouble placing the log4j.properties 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(’/’) }