class Buildr::Packaging::Java::WarTask

Extends the JarTask to create a WAR file.

Supports all the same options as JarTask, in additon to these two options:

  • :libs – An array of files, tasks, artifact specifications, etc that will be added to the WEB-INF/lib directory.

  • :classes – A directory containing class files for inclusion in the WEB-INF/classes directory.

For example:

package(:war).with(:libs=>'log4j:log4j:jar:1.1')

Attributes

classes[RW]

Directories with class files to include under WEB-INF/classes.

libs[RW]

Artifacts to include under WEB-INF/libs.