Gradle not configuring war artifact correctly. From() not copying to WEB-INF\classes
Answered
Hello,
I am trying to configure a war artifact in IntelliJ based on a gradle build.
The from and webInf arent copying files from WEB-INF over to WEB-INF/classes
I have tried the following configurations:
from('web/WEB-INF') {
into 'WEB-INF/classes'
include (
'file1.txt',
'file2.xml'
)
}
webInf {
from fileTree('web/WEB-INF') {
include 'file1.txt'
include 'file2.xml'
}
into 'classes'
}
Neither of them work.
This build file works fine outside of IntellJ.
- I have "Delegate IDE build/run actions to gradle" checked in the gradle runner settings.
Mike
Please sign in to leave a comment.
Please see https://youtrack.jetbrains.com/issue/IDEA-125883.
Took a look at that issue...
The solution was to use webInf , unfortunately webInf is one of the methods I mentioned above.. and that doesn't work either.
Feel free to mention it in the bug and attach a sample to reproduce.