diff --git a/plug-ins/index.html b/plug-ins/index.html index 9ec04e0..629481f 100644 --- a/plug-ins/index.html +++ b/plug-ins/index.html @@ -134,9 +134,13 @@ application {
-The Packaging plug-in lets you generate various archives for your project: jar, war and zip files, each of them defining a directive by the same name inside the assemble
directive:
+The Packaging plug-in lets you generate (directive assemble
) and install (directive install
) various archives for your project: jar, war and zip files.
+ The assemble
directive controls which artifacts get generated for your project.
+
assemble { jar { @@ -148,13 +152,13 @@ assemble { If you don't specify a-name
for your archive, a default one will be used that contains your project name, version and the corresponding suffix, e.g.kobalt-1.1.jar
orsec-0.2.war
. -zip
+zip
All these archives are zip files, so the
-zip
archive is at the top of the hierarchy andjar
andwar
inherit all its attributes, which includename
,include
andexclude
.include and exclude
+include and exclude
All archives let you include and exclude files. @@ -179,7 +183,7 @@ assemble { The first form, with just one parameter, simply copies the file from your directory into the archive, preserving its path. The second form has three parameters which allow you to move the file to a different path into your archive. Note the use of the
-from
,to
andglob
directives, which are necessary to disambiguate the call.jar
+jar
A
jar
is like azip
with two additional available parameters: @@ -208,18 +212,27 @@ assemble {
The war
directive generates a war file suitable to be deployed into a servlet container.
The mavenJars
directive generates several jar files (binary, source, javadoc) which are required by Maven repositories. It's basically a shortcut that saves you the trouble from having to assemble these jar files manually in your build file. It allows you to specify Manifest attributes, just like the jar
directive.
+ The install
section lets you specify how the artifacts get installed. If you don't specify any install
directive, then the install
task will do nothing on your project when invoked.
+
+ install { + libDir = "libs" + } +