Jar
From ControlTier
The jar type represents a Java archive
Contents |
Reference
Definition
Metadata
The table below gives a brief description for each of the attributes of the package type. The ones with an asterisk are required during the deployment cycle.
| attribute | description |
|---|---|
| arch | Hardware architecture. |
| base* | Package base. |
| buildtime | Build identifier |
| description | Description of the package. |
| filename* | Name of the file. |
| filetype | Archive format. |
| installroot* | Directory where archive will be extracted. |
| installrank* | Relative ordering. |
| name* | Name of the package. Usually, the same as filename |
| release | Version release. |
| releasetag | Release identifier. |
| repoUrl* | URL to the file in the repository. |
| restart | Signifies if the service should restart after installation. |
| type | Name of Package type or subtype |
| vendor | Organization that created the package |
| version* | Package version |
Project XML
A package can be registered in XML using the project.xml format. Here is an example.
File listing: example-123.jar.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE project PUBLIC "-//ControlTier Software Inc.//DTD Project Document 1.0//EN"
"project.dtd">
<project>
<package
arch="noarch"
base="example-jar"
buildtime="2008061570109"
description="The example jar package."
filename="example-123.jar"
filetype="jar"
installroot="${env.CTIER_ROOT}/demo/example"
installrank="1"
name="example-123.jar"
release=""
releasetag=""
repoUrl="/jar/jars/example-123.jar"
restart="false"
type="jar"
vendor=""
version="123"
/>
</project>
You can load this XML file using the ProjectBuilder load-objects command like so:
ctl -p project -m ProjectBuilder -c load-objects -- -filename example-123.jar.xml
Querying
Use the ProjectBuilder find-objects command to list all "jar" packages:
$ ctl -p demo -m ProjectBuilder -c find-objects -- -type jar | |--(jar) example-123.jar
For a graphical alternative, you can use the Graphical resource editor and view the "jar" packages there.
Go to the Package list. You will see it list all "jar" packages.
| ||||||||||||||