Hello, I have some problems with the ear plugin, especially the ear task. The project directory contains only the application source directory META-INF with the application descriptor application.xml. I have tried to set appDirName to the application source directory. This result in an infinite loop. The project folder looks like this:
–projectDir: ----META-INF ------application.xml
and my ear task looks like this:
ear {
excludes = [’…’]
appDirName ‘.’ }
I have also tried to set appDirName to ‘/’ and project.projectDir. My gradle version is 1.11 (Java 1.7u51)
I have a question in creating ear file. I have a requirement to add the war file under ear file and few other folder/files along with it. I verified few articles, posting and Gradle guide which says to add the below command under dependencies
This is a great conversation that’s separate from the main topic, so I created a new topic to continue the discussion. Please reference the new topic here: question about adding war archive to ear archive
it doesn’t work. If I move the META-INF folder into a new created path “src/main/application”, then gradle creates my ear zip with the “origin” application.xml (the file under src/main/application/META-INF/). But if I take your suggestion, then gradle creates a new application.xml and ignores the other one. In addition all other files in the META-INF directory are also ignored and they arent copy into the ear zip?