EAR build with specific appDirName root path

Continuing the discussion from Ear build with specific appDirName path:

Hi, i’m in the same situation that my EAR project has the setup ProjectEAR/META-INF/application.xml.
If i use the solution:
ear {
into(‘META-INF’) {
exclude ‘application.xml’
i’m excluding the application.xml that i want to use and gradle is generating another application.xml that is brong.
How can i tell gradle that uses de existing application.xml?


Someone could solve this problem, gradle keeps generating the application.xml instead of using the one I have in Project / META-INF / application.xml.
Thank you