Skip to content

Commit 21462cf

Browse files
authored
1 q2025 refresh (#22)
* Update src for front end and base * Update pom.xml for z/OS Connect apps * Update pom.xml for webui * BUILDJCL gets tidied * These programs do not exist * Tidy up documentation * Sort out doc mirroring * Update CreditScoreCICS540 Exception handling change * First Quarter 2025 maintenance update and JCL improvements * Update CBSA_Deploying_the_Payment_Customer_Services_Springboot_apps.md * Update BANK.csd * Update MAINTAINERS and README
1 parent b7be428 commit 21462cf

File tree

410 files changed

+4232
-6088
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

410 files changed

+4232
-6088
lines changed
Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
1+
/*
2+
*
3+
* Copyright 2007-present the original author or authors.
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License");
6+
* you may not use this file except in compliance with the License.
7+
* You may obtain a copy of the License at
8+
*
9+
* https://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/
17+
import java.net.*;
18+
import java.io.*;
19+
import java.nio.channels.*;
20+
import java.util.Properties;
21+
22+
public class MavenWrapperDownloader {
23+
24+
25+
private static final String WRAPPER_VERSION = "0.5.6";
26+
/**
27+
* Default URL to download the maven-wrapper.jar from, if no 'downloadUrl' is provided.
28+
*/
29+
private static final String DEFAULT_DOWNLOAD_URL = "https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/"
30+
+ WRAPPER_VERSION + "/maven-wrapper-" + WRAPPER_VERSION + ".jar";
31+
32+
/**
33+
* Path to the maven-wrapper.properties file, which might contain a downloadUrl property to
34+
* use instead of the default one.
35+
*/
36+
private static final String MAVEN_WRAPPER_PROPERTIES_PATH =
37+
".mvn/wrapper/maven-wrapper.properties";
38+
39+
/**
40+
* Path where the maven-wrapper.jar will be saved to.
41+
*/
42+
private static final String MAVEN_WRAPPER_JAR_PATH =
43+
".mvn/wrapper/maven-wrapper.jar";
44+
45+
/**
46+
* Name of the property which should be used to override the default download url for the wrapper.
47+
*/
48+
private static final String PROPERTY_NAME_WRAPPER_URL = "wrapperUrl";
49+
50+
public static void main(String args[]) {
51+
System.out.println("- Downloader started");
52+
File baseDirectory = new File(args[0]);
53+
System.out.println("- Using base directory: " + baseDirectory.getAbsolutePath());
54+
55+
// If the maven-wrapper.properties exists, read it and check if it contains a custom
56+
// wrapperUrl parameter.
57+
File mavenWrapperPropertyFile = new File(baseDirectory, MAVEN_WRAPPER_PROPERTIES_PATH);
58+
String url = DEFAULT_DOWNLOAD_URL;
59+
if(mavenWrapperPropertyFile.exists()) {
60+
FileInputStream mavenWrapperPropertyFileInputStream = null;
61+
try {
62+
mavenWrapperPropertyFileInputStream = new FileInputStream(mavenWrapperPropertyFile);
63+
Properties mavenWrapperProperties = new Properties();
64+
mavenWrapperProperties.load(mavenWrapperPropertyFileInputStream);
65+
url = mavenWrapperProperties.getProperty(PROPERTY_NAME_WRAPPER_URL, url);
66+
} catch (IOException e) {
67+
System.out.println("- ERROR loading '" + MAVEN_WRAPPER_PROPERTIES_PATH + "'");
68+
} finally {
69+
try {
70+
if(mavenWrapperPropertyFileInputStream != null) {
71+
mavenWrapperPropertyFileInputStream.close();
72+
}
73+
} catch (IOException e) {
74+
// Ignore ...
75+
}
76+
}
77+
}
78+
System.out.println("- Downloading from: " + url);
79+
80+
File outputFile = new File(baseDirectory.getAbsolutePath(), MAVEN_WRAPPER_JAR_PATH);
81+
if(!outputFile.getParentFile().exists()) {
82+
if(!outputFile.getParentFile().mkdirs()) {
83+
System.out.println(
84+
"- ERROR creating output directory '" + outputFile.getParentFile().getAbsolutePath() + "'");
85+
}
86+
}
87+
System.out.println("- Downloading to: " + outputFile.getAbsolutePath());
88+
try {
89+
downloadFileFromURL(url, outputFile);
90+
System.out.println("Done");
91+
System.exit(0);
92+
} catch (Throwable e) {
93+
System.out.println("- Error downloading");
94+
e.printStackTrace();
95+
System.exit(1);
96+
}
97+
}
98+
99+
private static void downloadFileFromURL(String urlString, File destination) throws Exception {
100+
if (System.getenv("MVNW_USERNAME") != null && System.getenv("MVNW_PASSWORD") != null) {
101+
String username = System.getenv("MVNW_USERNAME");
102+
char[] password = System.getenv("MVNW_PASSWORD").toCharArray();
103+
Authenticator.setDefault(new Authenticator() {
104+
@Override
105+
protected PasswordAuthentication getPasswordAuthentication() {
106+
return new PasswordAuthentication(username, password);
107+
}
108+
});
109+
}
110+
URL website = new URL(urlString);
111+
ReadableByteChannel rbc;
112+
rbc = Channels.newChannel(website.openStream());
113+
FileOutputStream fos = new FileOutputStream(destination);
114+
fos.getChannel().transferFrom(rbc, 0, Long.MAX_VALUE);
115+
fos.close();
116+
rbc.close();
117+
}
118+
119+
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.8.2/apache-maven-3.8.2-bin.zip
2+
wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar

.pre-commit-config.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# See https://pre-commit.com for more information
2+
# See https://pre-commit.com/hooks.html for more hooks
3+
repos:
4+
- repo: https://github.com/pre-commit/pre-commit-hooks
5+
rev: v3.2.0
6+
hooks:
7+
- id: trailing-whitespace
8+
- id: end-of-file-fixer
9+
- id: check-yaml

.secrets.baseline

Lines changed: 142 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,142 @@
1+
{
2+
"exclude": {
3+
"files": "^.secrets.baseline$",
4+
"lines": null
5+
},
6+
"generated_at": "2025-02-03T15:18:40Z",
7+
"plugins_used": [
8+
{
9+
"name": "AWSKeyDetector"
10+
},
11+
{
12+
"name": "ArtifactoryDetector"
13+
},
14+
{
15+
"name": "AzureStorageKeyDetector"
16+
},
17+
{
18+
"base64_limit": 4.5,
19+
"name": "Base64HighEntropyString"
20+
},
21+
{
22+
"name": "BasicAuthDetector"
23+
},
24+
{
25+
"name": "BoxDetector"
26+
},
27+
{
28+
"name": "CloudantDetector"
29+
},
30+
{
31+
"ghe_instance": "github.ibm.com",
32+
"name": "GheDetector"
33+
},
34+
{
35+
"name": "GitHubTokenDetector"
36+
},
37+
{
38+
"hex_limit": 3,
39+
"name": "HexHighEntropyString"
40+
},
41+
{
42+
"name": "IbmCloudIamDetector"
43+
},
44+
{
45+
"name": "IbmCosHmacDetector"
46+
},
47+
{
48+
"name": "JwtTokenDetector"
49+
},
50+
{
51+
"keyword_exclude": null,
52+
"name": "KeywordDetector"
53+
},
54+
{
55+
"name": "MailchimpDetector"
56+
},
57+
{
58+
"name": "NpmDetector"
59+
},
60+
{
61+
"name": "PrivateKeyDetector"
62+
},
63+
{
64+
"name": "SlackDetector"
65+
},
66+
{
67+
"name": "SoftlayerDetector"
68+
},
69+
{
70+
"name": "SquareOAuthDetector"
71+
},
72+
{
73+
"name": "StripeDetector"
74+
},
75+
{
76+
"name": "TwilioKeyDetector"
77+
}
78+
],
79+
"results": {
80+
"etc/install/base/zosconnectserver/server.xml": [
81+
{
82+
"hashed_secret": "abd663767ae6badd02573a5fa1ae43bfe2c03c7e",
83+
"is_secret": false,
84+
"is_verified": false,
85+
"line_number": 16,
86+
"type": "Secret Keyword",
87+
"verified_result": null
88+
},
89+
{
90+
"hashed_secret": "fe44766d64874d9f668bc0e054d56893a9d3cdb0",
91+
"is_secret": false,
92+
"is_verified": false,
93+
"line_number": 21,
94+
"type": "Secret Keyword",
95+
"verified_result": null
96+
}
97+
],
98+
"etc/install/base/zoseeserver/server.xml": [
99+
{
100+
"hashed_secret": "abd663767ae6badd02573a5fa1ae43bfe2c03c7e",
101+
"is_secret": false,
102+
"is_verified": false,
103+
"line_number": 16,
104+
"type": "Secret Keyword",
105+
"verified_result": null
106+
},
107+
{
108+
"hashed_secret": "fe44766d64874d9f668bc0e054d56893a9d3cdb0",
109+
"is_secret": false,
110+
"is_verified": false,
111+
"line_number": 21,
112+
"type": "Secret Keyword",
113+
"verified_result": null
114+
}
115+
],
116+
"src/Z-OS-Connect-Customer-Services-Interface/mvnw.cmd": [
117+
{
118+
"hashed_secret": "4e455935905a45080257f4d3c67115e4131b05af",
119+
"is_secret": false,
120+
"is_verified": false,
121+
"line_number": 147,
122+
"type": "Secret Keyword",
123+
"verified_result": null
124+
}
125+
],
126+
"src/Z-OS-Connect-Payment-Interface/mvnw.cmd": [
127+
{
128+
"hashed_secret": "4e455935905a45080257f4d3c67115e4131b05af",
129+
"is_secret": false,
130+
"is_verified": false,
131+
"line_number": 147,
132+
"type": "Secret Keyword",
133+
"verified_result": null
134+
}
135+
]
136+
},
137+
"version": "0.13.1+ibm.62.dss",
138+
"word_list": {
139+
"file": null,
140+
"hash": null
141+
}
142+
}

MAINTAINERS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
- James O'Grady [@JAMOGRAD](https://github.com/JAMOGRAD)
44

5-
*Last reviewed:* November 2024
5+
*Last reviewed:* February 2025

0 commit comments

Comments
 (0)