Skip to content

Commit 69c40c4

Browse files
Refactor repository layout.
1 parent 1456785 commit 69c40c4

File tree

31 files changed

+456
-482
lines changed

31 files changed

+456
-482
lines changed

.github/workflows/java.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
name: Build
22

3-
defaults:
4-
run:
5-
working-directory: ./cics-eventprocessing-java
6-
73
on:
84
push:
95
branches: ["main"]

cics-eventprocessing-java/.mvn/wrapper/MavenWrapperDownloader.java renamed to .mvn/wrapper/MavenWrapperDownloader.java

File renamed without changes.

cics-eventprocessing-java/.mvn/wrapper/maven-wrapper.properties renamed to .mvn/wrapper/maven-wrapper.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.8.5/apache-maven-3.8.5-bin.zip
2-
wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar
1+
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.8.5/apache-maven-3.8.5-bin.zip
2+
wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar

README.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ The project consists of two parts:
2727

2828
There are two Java classes:
2929

30-
1. [`EventEmitter.java`](./cics-eventprocessing-java/cics-eventprocessing-java-webapp/src/main/java/com/ibm/cicsdev/eventprocessing/EventEmitter.java) - a servlet that emits CICS events
31-
2. [`EventConsumer.java`](./cics-eventprocessing-java/cics-eventprocessing-java-webapp/src/main/java/com/ibm/cicsdev/eventprocessing/EventConsumer.java) - the Java code to define the CICS program resource `EVNTCONS` and consume the CICS events
30+
1. [`EventEmitter.java`](./cics-eventprocessing-java-webapp/src/main/java/com/ibm/cicsdev/eventprocessing/EventEmitter.java) - a servlet that emits CICS events
31+
2. [`EventConsumer.java`](./cics-eventprocessing-java-webapp/src/main/java/com/ibm/cicsdev/eventprocessing/EventConsumer.java) - the Java code to define the CICS program resource `EVNTCONS` and consume the CICS events
3232

3333
The code is built into a WAR file, packaged into a CICS bundle, and deployed to a Liberty JVM server as a web application.
3434

@@ -47,8 +47,6 @@ There are several ways to build this project. We suggest you build with a build
4747

4848
### Building with Gradle
4949

50-
Run the following command from the `cics-eventprocessing-java` directory:
51-
5250
```sh
5351
./gradlew assemble
5452
```
@@ -57,8 +55,6 @@ This will compile the Java code, build a WAR file and package it and the EP adap
5755

5856
### Building with Maven
5957

60-
Run the following command from the `cics-eventprocessing-java` directory:
61-
6258
```sh
6359
./mvnw verify
6460
```
@@ -83,6 +79,8 @@ The Liberty JVM server will need the following features installed at a minimum:
8379
</server>
8480
```
8581

82+
A template `server.xml` is provided [here](./etc/liberty/server.xml).
83+
8684
## Deploying
8785

8886
1. Upload the built bundle ZIP file to zFS on your z/OS system in binary using FTP, or similar
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
2-
allprojects {
3-
group = 'com.ibm.cicsdev.eventprocessing'
4-
version = '0.0.1-SNAPSHOT'
5-
}
1+
2+
allprojects {
3+
group = 'com.ibm.cicsdev.eventprocessing'
4+
version = '0.0.1-SNAPSHOT'
5+
}

cics-eventprocessing-java/cics-eventprocessing-java-bundle/.classpath renamed to cics-eventprocessing-java-bundle/.classpath

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
1-
<?xml version="1.0" encoding="UTF-8"?>
2-
<classpath>
3-
<classpathentry kind="src" output="target/classes" path="src/main/java">
4-
<attributes>
5-
<attribute name="optional" value="true"/>
6-
<attribute name="maven.pomderived" value="true"/>
7-
</attributes>
8-
</classpathentry>
9-
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
10-
<attributes>
11-
<attribute name="optional" value="true"/>
12-
<attribute name="maven.pomderived" value="true"/>
13-
</attributes>
14-
</classpathentry>
15-
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5">
16-
<attributes>
17-
<attribute name="maven.pomderived" value="true"/>
18-
</attributes>
19-
</classpathentry>
20-
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
21-
<attributes>
22-
<attribute name="maven.pomderived" value="true"/>
23-
</attributes>
24-
</classpathentry>
25-
<classpathentry kind="output" path="target/classes"/>
26-
</classpath>
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<classpath>
3+
<classpathentry kind="src" output="target/classes" path="src/main/java">
4+
<attributes>
5+
<attribute name="optional" value="true"/>
6+
<attribute name="maven.pomderived" value="true"/>
7+
</attributes>
8+
</classpathentry>
9+
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
10+
<attributes>
11+
<attribute name="optional" value="true"/>
12+
<attribute name="maven.pomderived" value="true"/>
13+
</attributes>
14+
</classpathentry>
15+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5">
16+
<attributes>
17+
<attribute name="maven.pomderived" value="true"/>
18+
</attributes>
19+
</classpathentry>
20+
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
21+
<attributes>
22+
<attribute name="maven.pomderived" value="true"/>
23+
</attributes>
24+
</classpathentry>
25+
<classpathentry kind="output" path="target/classes"/>
26+
</classpath>

cics-eventprocessing-java/cics-eventprocessing-java-bundle/.project renamed to cics-eventprocessing-java-bundle/.project

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
<?xml version="1.0" encoding="UTF-8"?>
2-
<projectDescription>
3-
<name>cics-eventprocessing-java-bundle</name>
4-
<comment></comment>
5-
<projects>
6-
</projects>
7-
<buildSpec>
8-
<buildCommand>
9-
<name>org.eclipse.jdt.core.javabuilder</name>
10-
<arguments>
11-
</arguments>
12-
</buildCommand>
13-
<buildCommand>
14-
<name>org.eclipse.m2e.core.maven2Builder</name>
15-
<arguments>
16-
</arguments>
17-
</buildCommand>
18-
</buildSpec>
19-
<natures>
20-
<nature>org.eclipse.jdt.core.javanature</nature>
21-
<nature>org.eclipse.m2e.core.maven2Nature</nature>
22-
</natures>
23-
</projectDescription>
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>cics-eventprocessing-java-bundle</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.jdt.core.javabuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
<buildCommand>
14+
<name>org.eclipse.m2e.core.maven2Builder</name>
15+
<arguments>
16+
</arguments>
17+
</buildCommand>
18+
</buildSpec>
19+
<natures>
20+
<nature>org.eclipse.jdt.core.javanature</nature>
21+
<nature>org.eclipse.m2e.core.maven2Nature</nature>
22+
</natures>
23+
</projectDescription>

cics-eventprocessing-java/cics-eventprocessing-java-bundle/build.gradle renamed to cics-eventprocessing-java-bundle/build.gradle

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
/*
2-
* This file was generated by the Gradle 'init' task.
3-
*/
4-
plugins {
5-
id 'com.ibm.cics.bundle' version '1.0.3'
6-
}
7-
8-
cicsBundle {
9-
build {
10-
defaultJVMServer = 'DFHWLP'
11-
}
12-
}
13-
14-
dependencies {
15-
//implementation 'com.ibm.cicsdev.eventprocessing:cics-eventprocessing-java-code:0.0.1-SNAPSHOT'
16-
cicsBundlePart project(path:':cics-eventprocessing-java-webapp', configuration: 'archives')
17-
}
18-
19-
description = 'cics-eventprocessing-java - CICS bundle'
1+
/*
2+
* This file was generated by the Gradle 'init' task.
3+
*/
4+
plugins {
5+
id 'com.ibm.cics.bundle' version '1.0.3'
6+
}
7+
8+
cicsBundle {
9+
build {
10+
defaultJVMServer = 'DFHWLP'
11+
}
12+
}
13+
14+
dependencies {
15+
//implementation 'com.ibm.cicsdev.eventprocessing:cics-eventprocessing-java-code:0.0.1-SNAPSHOT'
16+
cicsBundlePart project(path:':cics-eventprocessing-java-webapp', configuration: 'archives')
17+
}
18+
19+
description = 'cics-eventprocessing-java - CICS bundle'

cics-eventprocessing-java/cics-eventprocessing-java-bundle/pom.xml renamed to cics-eventprocessing-java-bundle/pom.xml

File renamed without changes.

cics-eventprocessing-java/cics-eventprocessing-java-bundle/src/main/bundleParts/ACCOUNT.evbind renamed to cics-eventprocessing-java-bundle/src/main/bundleParts/ACCOUNT.evbind

File renamed without changes.

0 commit comments

Comments
 (0)