Skip to content

Commit 95115c0

Browse files
committed
wrapper, workflow, readme, csd, code changes
1 parent 3192da6 commit 95115c0

File tree

7 files changed

+84
-13
lines changed

7 files changed

+84
-13
lines changed

.github/workflows/java.yaml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches: ["cicsts/v6.1"]
6+
pull_request:
7+
branches: ["cicsts/v6.1"]
8+
9+
jobs:
10+
check-copyright:
11+
runs-on: ubuntu-latest
12+
name: Check Copyright
13+
steps:
14+
- uses: actions/checkout@v4
15+
- id: copyright-action
16+
uses: cicsdev/.github/.github/actions/samples-copyright-checker@139edd8dc23af7f4f7dd9afe4d56a1053fe426a7
17+
with:
18+
directory: './cics-java-osgi-hello-app/'
19+
file-extensions: '*.java'
20+
base-copyright: 'Copyright IBM Corp. 2025'
21+
token: ${{ secrets.GITHUB_TOKEN }}
22+
23+
build-mvnw:
24+
name: Build Maven Wrapper
25+
26+
runs-on: ubuntu-latest
27+
strategy:
28+
matrix:
29+
jdk: [17, 21]
30+
steps:
31+
- uses: actions/checkout@v3
32+
- name: Set up JDK ${{ matrix.jdk }}
33+
uses: actions/setup-java@v3
34+
with:
35+
java-version: ${{ matrix.jdk }}
36+
distribution: "semeru"
37+
cache: maven
38+
- name: Build with Maven
39+
run: ./mvnw --batch-mode --update-snapshots --file pom.xml -Djava.version=${{ matrix.jdk }} verify
40+
41+
42+
build-gradlew:
43+
name: Build Gradle Wrapper
44+
45+
runs-on: ubuntu-latest
46+
strategy:
47+
matrix:
48+
jdk: [17, 21]
49+
steps:
50+
- uses: actions/checkout@v3
51+
- name: Set up JDK ${{ matrix.jdk }}
52+
uses: actions/setup-java@v4
53+
with:
54+
java-version: ${{ matrix.jdk }}
55+
distribution: 'semeru'
56+
- uses: gradle/actions/setup-gradle@v3
57+
with:
58+
gradle-version: 8.6
59+
- name: Build with Gradle
60+
run: ./gradlew clean build -Pjava_version=${{ matrix.jdk }}

.mvn/wrapper/maven-wrapper.properties

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
wrapperVersion=3.3.2
18+
distributionType=only-script
19+
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.9/apache-maven-3.9.9-bin.zip

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Choose from the following approach:
3535

3636
### Option 1 - Building with Eclipse
3737

38-
The sample comes pre-configured for use with a standard JDK 1.8 and the CICS TS V5.5 Java EE 7 Target Platform. When you initially import the project to your IDE, if your IDE is not configured for a JDK 1.8, or does not have CICS Explorer SDK installed with the correct 'target platform' set, you might experience local project compile errors.
38+
The sample comes pre-configured for use with a standard JDK 17 and the CICS TS V6.1 Java EE 9 Target Platform. When you initially import the project to your IDE, if your IDE is not configured for a JDK 17, or does not have CICS Explorer SDK installed with the correct 'target platform' set, you might experience local project compile errors.
3939

4040
To resolve issues:
4141
* ensure you have the CICS Explorer SDK plug-in installed
@@ -112,7 +112,7 @@ A JAR file is created inside the `cics-java-osgi-hello-app/target` directory and
112112
## Deploying to CICS
113113
1. Configure an OSGi JVMSERVER.
114114

115-
2. CICS resource definitions for the bundle, programs, transactions and a JVM server are supplied in a group CDEVCJOH as a DFHCSDUP sample input stream supplied in [`DFHCSD.txt`](etc/DFHCSD.txt). Alternatively they can be installed using the bundle parts supplied with the cics-java-osgi-hello-bundle project.
115+
2. CICS resource definitions for the bundle, programs, transactions and a JVM server are supplied in a group CDEVCJOH as a DFHCSDUP sample input stream supplied in [`DFHCSD.txt`](etc/DFHCSD.txt). Alternatively they can be installed using the bundle parts supplied with the cics-java-osgi-hello-bundle project. Note that the resource definition for the CICS program CDEVCJOH are not supplied as it will be auto-installed by the processing of @CICSProgram annotation.
116116

117117

118118
### Option 1 - Deploying using CICS Explorer SDK and the provided CICS bundle project
@@ -167,7 +167,7 @@ A JAR file is created inside the `cics-java-osgi-hello-app/target` directory and
167167

168168

169169
## Running
170-
Run the `CJOH` transaction. This runs the `CDEVCJOH` program.
170+
Run the `CJOH` transaction. This runs the auto-installed `CDEVCJOH` program.
171171

172172
## License
173173
This project is licensed under [Eclipse Public License - v 2.0](LICENSE).

cics-java-osgi-hello-app/src/main/java/com/ibm/cicsdev/java/osgi/hello/HelloCICSWorld.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public class HelloCICSWorld
2020
static final String PROGRAM_NAME = "CDEVCJOH";
2121

2222
@CICSProgram(PROGRAM_NAME)
23-
public static void main(CommAreaHolder CAH)
23+
public void run()
2424
{
2525
Task t = Task.getTask();
2626
if ( t == null )

etc/DFHCSD.txt

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,7 @@ DELETE GROUP(CDEVCJOH)
22

33
DEFINE JVMSERVER(DFHOSGI) GROUP(CDEVCJOH)
44
DESCRIPTION(Example JVM server definition)
5-
JVMPROFILE(DFHOSGI)
6-
7-
DEFINE PROGRAM(CDEVCJOH) GROUP(CDEVCJOH)
8-
JVM(YES) JVMCLASS(com.ibm.cicsdev.java.osgi.hello.HelloCICSWorld)
9-
JVMSERVER(DFHOSGI)
10-
CONCURRENCY(REQUIRED)
11-
EXECKEY(CICS)
5+
JVMPROFILE(DFHOSGI)
126

137
DEFINE TRANSACTION(CJOH) GROUP(CDEVCJOH)
148
PROGRAM(CDEVCJOH)

etc/eclipse_projects/com.ibm.cics.server.examples.osgi.hello.bundle/CDEVCJOH.program

Lines changed: 0 additions & 1 deletion
This file was deleted.

etc/eclipse_projects/com.ibm.cics.server.examples.osgi.hello.bundle/META-INF/cics.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,4 @@
55
</meta_directives>
66
<define name="cics-java-osgi-hello-app" type="http://www.ibm.com/xmlns/prod/cics/bundle/OSGIBUNDLE" path="cics-java-osgi-hello-app.osgibundle"/>
77
<define name="CJOH" type="http://www.ibm.com/xmlns/prod/cics/bundle/TRANSACTION" path="CJOH.transaction"/>
8-
<define name="CDEVCJOH" type="http://www.ibm.com/xmlns/prod/cics/bundle/PROGRAM" path="CDEVCJOH.program"/>
98
</manifest>

0 commit comments

Comments
 (0)