From() method inside war spec not working on WEB-INF\classes in IntelliJ


(Michael Dikun) #1

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