public class CalabashPkgExtension extends DescriptorExtension
<package xmlns="http://saxon.sf.net/ns/expath-pkg">
<jar>dir/file.jar</jar>
<step>
<type>{http://example.org/ns/project}my-step-type</type>
<class>org.example.extension.MyStep</class>
</step>
</package>
The elements "jar" and "step" are optional, repeatable, and can appear in any
order. The element "jar" links to the JAR files, in the content directory,
to include the classpath. The element "step" register an extension step by
using its fully qualified class name, and a step type name. The type name is
in Clark notation (that is "{namespace}local-name"). The class must
be a suitable class for an extension step for Calabash.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CALABASH_PKG_NS |
static java.lang.String |
CLASSPATH_FILE |
myDescriptorName| Constructor and Description |
|---|
CalabashPkgExtension() |
| Modifier and Type | Method and Description |
|---|---|
void |
install(Repository repo,
Package pkg) |
protected void |
parseDescriptor(javax.xml.stream.XMLStreamReader parser,
Package pkg) |
initpublic static final java.lang.String CLASSPATH_FILE
public static final java.lang.String CALABASH_PKG_NS
protected void parseDescriptor(javax.xml.stream.XMLStreamReader parser,
Package pkg)
throws PackageException
parseDescriptor in class DescriptorExtensionPackageExceptionpublic void install(Repository repo, Package pkg) throws PackageException
install in class ExtensionPackageExceptionCopyright © 2015-2019 EXPath. All Rights Reserved