| java.lang.Object | |
| ↳ | org.ops4j.pax.exam.options.WarProbeOption |
This option can be used to explicitly define the contents of a WAR probe, overriding the default of the probe being built automatically from the classpath contents, excluding all libraries matching some predefined patterns.
Users should create instances of this class using warProbe() and then invoke
methods of this class in fluent syntax to configure the WAR probe.
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| DEFAULT_CLASS_PATH_EXCLUDES | |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Creates an empty WAR probe option.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Automatically add libraries and class folders from the current classpath.
| |||||||||||
Automatically add libraries and class folders from the current classpath, applying the
default classpath excludes.
| |||||||||||
Adds the given classes to the WAR in
WEB-INF/classes. | |||||||||||
This option implies
autoClasspath(false) and adds the given regular expressions to
the classpath filters. | |||||||||||
Returns the classpath filters.
| |||||||||||
Returns the classes to be added to WEB-INF/classes.
| |||||||||||
Returns the WEB-INF libraries.
| |||||||||||
Returns the META-INF resources.
| |||||||||||
Returns the application name of this WAR.
| |||||||||||
Returns the overlays.
| |||||||||||
Returns the classpath resources.
| |||||||||||
Returns the WEB-INF resources.
| |||||||||||
Shall libraries and class folders be added automatically from the current classpath?
Internal API, do no use in application code. | |||||||||||
Adds the library from the given path to the WAR.
| |||||||||||
Adds the library from the URL to the WAR.
| |||||||||||
Adds the given resourcs from the current class path to the WAR in
META-INF/. | |||||||||||
Sets the application name of this WAR.
| |||||||||||
Adds an overlay from the given path to the WAR.
| |||||||||||
Adds an overlay from the given URL to the WAR.
| |||||||||||
Adds the given resources from the current class path to the WAR in
WEB-INF/classes. | |||||||||||
Adds the given resource from the current class path to the WAR in
WEB-INF/. | |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Creates an empty WAR probe option. Application code should not invoke this constructor. Use
warProbe() instead.
Automatically add libraries and class folders from the current classpath.
| includeDefaultFilters | should the default classpath excludes be applied? |
|---|
this for fluent syntax
Automatically add libraries and class folders from the current classpath, applying the default classpath excludes.
this for fluent syntax
Adds the given classes to the WAR in WEB-INF/classes.
| klass | list of classes |
|---|
this for fluent syntax
This option implies autoClasspath(false) and adds the given regular expressions to
the classpath filters.
| excludeRegExp | list of regular expressions. Classpath libraries or folders matching any of these will be excluded |
|---|
this for fluent syntax
Returns the classpath filters.
Internal API, do no use in application code.
Returns the classes to be added to WEB-INF/classes.
Internal API, do no use in application code.
Returns the WEB-INF libraries.
Internal API, do no use in application code.
Returns the META-INF resources.
Internal API, do no use in application code.
Returns the application name of this WAR.
Internal API, do no use in application code.
Returns the overlays.
Internal API, do no use in application code.
Returns the classpath resources.
Internal API, do no use in application code.
Returns the WEB-INF resources.
Internal API, do no use in application code.
Shall libraries and class folders be added automatically from the current classpath?
Internal API, do no use in application code.
Adds the library from the given path to the WAR. If the path is a directory, it is assumed to
be a class folder, and its contents will be archived in a JAR, and the JAR will be copied to
WEB-INF/lib. The JAR name follows Maven conventions and is determined from properties
defined in any file named pom.properties, located in any subdirectory of
META-INF/maven, if available (otherwise, a random JAR name is generated).
If the path is not a directory, it is assumed to be a JAR, and its contents will be copied to
WEB-INF/lib.
| libraryPath | path to library |
|---|
this for fluent syntax
Adds the library from the URL to the WAR. The URL is assumed to reference a JAR. The JAR will
be downloaded if required and its contents will be copied to WEB-INF/lib.
this for fluent syntax
Adds the given resourcs from the current class path to the WAR in META-INF/.
this for fluent syntax
Sets the application name of this WAR.
| _name | application name |
|---|
this for fluent syntax
Adds an overlay from the given path to the WAR. This is similar to the overlay concept of the Maven WAR Plugin. If the overlay path is a directory, its contents are copied recursively to the root of the WAR. If the overlay path is an archive, its exploded contents are copied to the root of the WAR. All overlays are copied in the given order. All overlay are copied before any libraries, classes or resources.
| overlayPath | path to overlay |
|---|
this for fluent syntax
Adds an overlay from the given URL to the WAR. This is similar to the overlay concept of the Maven WAR Plugin. The URL is assumed to reference an archive. The archive is downloaded if required, and then its exploded contents are copied to the root of the WAR. All overlays are copied in the given order. All overlay are copied before any libraries, classes or resources.
this for fluent syntax
Adds the given resources from the current class path to the WAR in WEB-INF/classes.
this for fluent syntax
Adds the given resource from the current class path to the WAR in WEB-INF/.
this for fluent syntax