0
@@ -8,7 +8,7 @@ package :jar
0
We just told the project to create a JAR file in the @target@ directory,
0
-including all the classes (and resources) that we previously comp
lied into
0
+including all the classes (and resources) that we previously comp
iled into
0
@target/classes@. Or we can create a WAR file:
0
@@ -159,7 +159,7 @@ use file pattern to match multiple files and directories. File patterns
0
include asterisk (@*@) to match any file name or part of a file name, double
0
asterisk (@**@) to match directories recursively, question mark (@?@) to match
0
any character, square braces (@[]@) to match a set of characters, and curly
0
-braces (@{}@) to
one of several names.
0
+braces (@{}@) to
match one of several names.
0
And the same way you @include@, you can also @exclude@ specific files you don't
0
want showing up in the ZIP. For example, to exclude @.draft@ and @.raw@ files:
0
@@ -176,7 +176,7 @@ files under a given path using the @:path@ option:
0
package(:zip).include 'target/docs', :path=>"#{id}-#{version}"
0
-If you need to use the @:path@ option repeatedly, consider using the @
path@
0
+If you need to use the @:path@ option repeatedly, consider using the @
tap@
0
method instead. For example:
0
@@ -218,7 +218,7 @@ anything interesting. Your ZIP will come up empty. The second file includes
0
the directory itself, but strips the path during inclusion. You can define it
0
now, create these files later, and then ZIP them all up.
0
-For example, when @package :jar@ decides to include all the files f
orm
0
+For example, when @package :jar@ decides to include all the files f
rom
0
@target/classes@, it's still working on the project definition, and has yet to
0
compile anything. Since @target/classes@ may be empty, may not even exist, it
0
@@ -256,9 +256,9 @@ by default.
0
The @services_xml@ attribute points to an Axis2 services configuration file
0
called @services.xml@ that will be placed in the @META-INF@ directory inside
0
-the archive.
the default behavior is to point to the @services.xml@ file in
0
+the archive.
The default behavior is to point to the @services.xml@ file in
0
the project's @src/main/axis2@ directory. In the second example above we set
0
The @wsdls@ attribute is a collection of file names or glob patterns for WSDL
0
files that get included in the @META-INF@ directory. In the second example we
0
@@ -305,7 +305,7 @@ package(:ear).add project('commonLib') # By default, the JAR package
0
Adding a WAR package assumes it's a WAR component and treats it as such, but
0
JAR packages can be any of three component types, so by default they are all
0
treated as shared libraries. If you want to add an EJB or Application Client
0
-component, you need to say so explicitly, either passing @
type=>package@, or by
0
+component, you need to say so explicitly, either passing @
:type=>package@, or by
0
passing the component type in the @:type@ option.
0
Here are three examples:
0
@@ -336,7 +336,7 @@ package(:ear) << project('coolWebService').package(:war)
0
EAR packages include an @application.xml@ file in the @META-INF@ directory that
0
-describes the application and its component
. This file is created for you
0
+describes the application and its component
s. This file is created for you
0
during packaging, by referencing all the components added to the EAR. There
0
are a couple of things you will typically want to change.
0
@@ -371,9 +371,7 @@ package(:tgz).include _('target/docs'), 'README'
0
The first line creates a Tar archive with the extension @.tar@, the second
0
-creates a GZipped Tar archive with the extension @.tgz@. The first creates a
0
-Tar archive with the extension @.tar@, the second creates a GZipped Tar archive
0
-with the extension @.tgz@.
0
+creates a GZipped Tar archive with the extension @.tgz@.
0
In addition to packaging that includes the archive in the list of
0
installed/released files, you can use the method @tar@ to create a @TarTask@.
Comments
No one has commented yet.