Skip to content

Commit 70fa743

Browse files
cockermacockerma
cockerma
authored and
cockerma
committed
Update help
1 parent 5502900 commit 70fa743

File tree

2 files changed

+14
-11
lines changed

2 files changed

+14
-11
lines changed

addtocicsbundle/README.md

+12-9
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,19 @@ Script to add pre-build Java archive files to a CICS bundle, including:
77
* .eba files for enterprise business archives
88
* .ear files for enterprise archives
99

10-
If the CICS bundle does not exist, it will be created. If the CICS bundle contains only pre-built Java archive files, it does not need to be built by the CICS build toolkit.
10+
If the CICS bundle does not exist, it will be created.
11+
12+
If the CICS bundle contains only pre-built Java archive files, it does not need to be built by the CICS build toolkit.
1113

1214
## Requirements
1315

1416
* [bash](https://www.gnu.org/software/bash/bash.html?cm_mc_uid=33935548072714933125385&cm_mc_sid_50200000=1493879051&cm_mc_sid_52640000=1493879738#downloading) is used to run the script. For Linux this is likely pre-installed.
15-
* [xmlstarlet](http://xmlstar.sourceforge.net/overview.php) used to update the CICS bundle manifest file cics.xml.
17+
* [xmlstarlet](http://xmlstar.sourceforge.net/overview.php) used to update the CICS bundle manifest file cics.xml. For Linux this is likely available for installation from your distribution package manager.
1618

1719
## Usage
1820

1921
~~~~
20-
Usage: addtocicsbundle [-hv] [-j JVMSERVER] -a FILES DIRECTORY
22+
Usage: addtocicsbundle [-hv] [-j JVMSERVER] [-V VERSION] -a FILES DIRECTORY
2123
2224
Add Java pre-built archive files to the CICS bundle specified by DIRECTORY.
2325
@@ -26,21 +28,22 @@ Options:
2628
-a FILES, --add Files or directory of files to add to the CICS bundle
2729
-h, --help Help
2830
-j JVMSERVER, --jvmserver CICS JVMSERVER resource name
29-
The default is DFHWLP for files with .war .ear .eba extensions, and DFHOSGI .jar extensions
30-
-V, --version Set the bundle version in major.minor.micro format
31+
The default is DFHWLP for files with .war .ear .eba extensions, and DFHOSGI with .jar extensions
32+
-V VERSION, --version Set the bundle version in major.minor.micro format
3133
-v, --verbose Verbose messages
3234
3335
DIRECTORY is the CICS bundle directory
3436
~~~~
3537

3638
## Example
3739

38-
This example will create a CICS bundle in directory output/bundles/com.ibm.cics.server.examples.bundle and add *.jar and *.war archive files.
40+
This example will create a CICS bundle in directory output/bundles/com.ibm.cics.server.examples.bundle and add all the Java archives in archive files in path javaarchives/*.
3941

40-
Note the `-a "javaarchives/*"` parameter includes quotation marks to avoid the shell interpreter expansion.
42+
Note the `-a "javaarchives/*"` parameter includes quotation marks to avoid the shell interpreter expanding the * character.
4143

4244
~~~~console
43-
$ addtocicsbundle -v -a "javaarchives/*" output/bundles/com.ibm.cics.server.examples.bundle
45+
$ scripts/addtocicsbundle -v -a "javaarchives/*" output/bundles/com.ibm.cics.server.examples.bundle
46+
4447
Creating CICS bundle manifest file output/bundles/com.ibm.cics.server.examples.bundle/META-INF/cics.xml
4548
Creating CICS bundle part file output/bundles/com.ibm.cics.server.examples.bundle/com.ibm.cics.server.examples.hello.osgibundle
4649
Adding bundle part to the CICS bundle manifest file output/bundles/com.ibm.cics.server.examples.bundle/META-INF/cics.xml
@@ -76,6 +79,6 @@ total 4
7679
Exiting with RC=0
7780
~~~~
7881

79-
The bundles/MyBundle directory can now be copied to the CICS [platform directory structure in z/OS UNIX](https://www.ibm.com/support/knowledgecenter/SSGMCP_5.3.0/com.ibm.cics.ts.productoverview.doc/concepts/platforms_directory_structure.html), such as /var/cicsts/CICSPlex/_platform1_/ or another location ready for installing in CICS.
82+
The output directory can now be copied to the CICS [platform directory structure in z/OS UNIX](https://www.ibm.com/support/knowledgecenter/SSGMCP_5.3.0/com.ibm.cics.ts.productoverview.doc/concepts/platforms_directory_structure.html) such as /var/cicsts/CICSPlex/_platform1_/. A BUNDLE resource can then be defined and installed to install in CICS.
8083

8184
Alternatively, the bundles/MyBundle directory can be copied (staged) to IBM UrbanCode Deploy using the [pushcicsbundletoucd](../pushcicsbundletoucd) script and deployed using the [ucdtemplates](../ucdtemplates).

addtocicsbundle/addtocicsbundle

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ show_help () {
2121
echo -e "\t-a FILES, --add\t\t\tFiles or directory of files to add to the CICS bundle"
2222
echo -e "\t-h, --help\t\t\tHelp"
2323
echo -e "\t-j JVMSERVER, --jvmserver\tCICS JVMSERVER resource name"
24-
echo -e "\t\t\t\t\tThe default is DFHWLP for files with .war .ear .eba extensions, and DFHOSGI .jar extensions"
24+
echo -e "\t\t\t\t\tThe default is DFHWLP for files with .war .ear .eba extensions, and DFHOSGI with .jar extensions"
2525
echo -e "\t-V VERSION, --version\t\tSet the bundle version in major.minor.micro format"
2626
echo -e "\t-v, --verbose\t\t\tVerbose messages"
2727
echo -e "\tDIRECTORY is the CICS bundle directory"
@@ -212,7 +212,7 @@ set_cics_bundle_version() {
212212
fi
213213

214214
if [[ $VERBOSE == 1 ]] ; then
215-
echo "Setting CICS bundle version to ${BUNDLEVERSION}"
215+
echo "Updating CICS bundle manifest file ${BUNDLEVERSION} to set version ${BUNDLEVERSION}"
216216
fi
217217

218218
xmlstarlet edit -L \

0 commit comments

Comments
 (0)