hitty5
hitty5

Reputation: 1673

Add additional files to Grails WAR file

I wanna add additional files, respectively test data file, to the generated WAR file. How can I modify the build.gradle to reach this goal? I have already tried to change the war task, e.g.

war {
   from "testdata"
}

but no files were added to the war file. GRAILS 3.1.8 is used.

Upvotes: 2

Views: 440

Answers (1)

practical programmer
practical programmer

Reputation: 1648

Here is example code - we use it to copy generated docs to war:

//copy documnetation to war if exist
war {
    from('build/docs/manual') {
        include '**/*'
        into('docs')
    }
}

Upvotes: 4

Related Questions