Skip to content

Commit 8ab21f2

Browse files
authoredApr 30, 2024··
Release 1.0.22 (#372)
1 parent d9ac1bf commit 8ab21f2

File tree

14 files changed

+97
-34
lines changed

14 files changed

+97
-34
lines changed
 

‎CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@
33
All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
6+
## [1.0.22] - 2024-04-30
7+
### Added
8+
* Add cobj-api command (#370)
9+
* Implement a -Wstrict-typing (#369)
10+
### Miscellaneous
11+
* Simplify generated Java code based on SonarQube analysis (#366)
12+
* Improve the error message for record keys with duplicates (#368)
613
## [1.0.21] - 2024-03-29
714
### Added
815
* Implement a new option `-info-json-dir` (#362)

‎ChangeLog

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2024-04-30 OSS Consortium <ws-opensource-cobol-contact@osscons.jp>
2+
3+
* opensource COBOL 4J v1.0.22 released.
4+
15
2024-03-29 OSS Consortium <ws-opensource-cobol-contact@osscons.jp>
26

37
* opensource COBOL 4J v1.0.21 released.

‎NEWS

+11
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,17 @@ NEWS - user visible changes -*- outline -*-
22

33
-----------------------------------------------------------------------
44

5+
* opensource COBOL 4J 1.0.22
6+
7+
** New Features
8+
(1) Add cobj-api command
9+
(2) Implement `-Wstrict-typing`
10+
** Miscellaneous
11+
(1) Simplify generated Java code based on SonarQube analysis
12+
(2) Improve the error message for record keys with duplicates
13+
14+
-----------------------------------------------------------------------
15+
516
* opensource COBOL 4J 1.0.21
617

718
** New Features

‎README.md

+21-4
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ dnf install -y java-21-amazon-corretto-devel gcc make bison flex automake autoco
5353

5454
### Install opensource COBOL 4J
5555
```
56-
curl -L -o opensourcecobol4j-v1.0.21.tar.gz https://github.com/opensourcecobol/opensourcecobol4j/archive/refs/tags/v1.0.21.tar.gz
57-
tar zxvf opensourcecobol4j-v1.0.21.tar.gz
58-
cd opensourcecobol4j-1.0.21
56+
curl -L -o opensourcecobol4j-v1.0.22.tar.gz https://github.com/opensourcecobol/opensourcecobol4j/archive/refs/tags/v1.0.22.tar.gz
57+
tar zxvf opensourcecobol4j-v1.0.22.tar.gz
58+
cd opensourcecobol4j-1.0.22
5959
./configure --prefix=/usr/
6060
make
6161
sudo make install
@@ -72,7 +72,7 @@ In order to check installations of older versions,
7272
The docker container for opensource COBOL 4J is available.
7373

7474
```bash
75-
docker pull opensourcecobol/opensourcecobol4j:1.0.21
75+
docker pull opensourcecobol/opensourcecobol4j:1.0.22
7676
```
7777

7878
Execute the following commands in order to run the "Hello World" COBOL program.
@@ -201,6 +201,23 @@ Options:
201201
-v, --version
202202
Print the version of cobj-idx.
203203
```
204+
205+
## cobj-api
206+
With `cobj-api`, you can easily generate an Spring boot Java file that calls the program generated by `cobj`.
207+
208+
```
209+
Usage: cobj-api [options] <json-file>
210+
211+
Arguments:
212+
<json-file>: a json file generated by cobj with `-info-json-dir` option
213+
214+
Options:
215+
-h, --help Display this message
216+
-java-package=<package name> Specify the package name of the generated source code
217+
-o=<dir>, --output-dir=<dir> Set the output destination of the java file to an arbitrary destination
218+
-v, --version Prints the version of the cobj-api
219+
```
220+
204221
## Contributing
205222

206223
Guidelines for contributing to opensource COBOL 4J can be found in [CONTRIBUTING.md](./CONTRIBUTING.md).

‎README_JP.md

+22-6
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ opensource COBOL 4J は下記の環境でテストされています.
2323

2424
## インストール
2525

26-
opensource COBOL 4J v1.0.21はUbuntuとAlmaLinuxで動作を確認しています.
26+
opensource COBOL 4J v1.0.22はUbuntuとAlmaLinuxで動作を確認しています.
2727

2828
## 手動インストール
2929

@@ -57,9 +57,9 @@ dnf install -y java-21-amazon-corretto-devel gcc make bison flex automake autoco
5757
下記のコマンドを実行する
5858

5959
```
60-
curl -L -o opensourcecobol4j-v1.0.21.tar.gz https://github.com/opensourcecobol/opensourcecobol4j/archive/refs/tags/v1.0.21.tar.gz
61-
tar zxvf opensourcecobol4j-v1.0.21.tar.gz
62-
cd opensourcecobol4j-1.0.21
60+
curl -L -o opensourcecobol4j-v1.0.22.tar.gz https://github.com/opensourcecobol/opensourcecobol4j/archive/refs/tags/v1.0.22.tar.gz
61+
tar zxvf opensourcecobol4j-v1.0.22.tar.gz
62+
cd opensourcecobol4j-1.0.22
6363
./configure --prefix=/usr/
6464
make
6565
sudo make install
@@ -73,10 +73,10 @@ sudo make install
7373

7474
## Dockerによるインストール
7575

76-
opensource COBOL 4J v1.0.21をインストールしたDockerイメージを利用できます.
76+
opensource COBOL 4J v1.0.22をインストールしたDockerイメージを利用できます.
7777

7878
```bash
79-
docker pull opensourcecobol/opensourcecobol4j:1.0.21
79+
docker pull opensourcecobol/opensourcecobol4j:1.0.22
8080
```
8181

8282
コンテナ内で下記のコマンドを実行すると、Hello Worldプログラムをコンパイル&実行できる。
@@ -208,6 +208,22 @@ Options:
208208
Print the version of cobj-idx.
209209
```
210210

211+
## cobj-api
212+
cobj-apiコマンドを使用することで、`cobj`で生成されたプログラムを呼び出すSpring boot向けのJavaファイルを簡単に生成できます。
213+
214+
```
215+
Usage: cobj-api [options] <json-file>
216+
217+
Arguments:
218+
<json-file>: a json file generated by cobj with `-info-json-dir` option
219+
220+
Options:
221+
-h, --help Display this message
222+
-java-package=<package name> Specify the package name of the generated source code
223+
-o=<dir>, --output-dir=<dir> Set the output destination of the java file to an arbitrary destination
224+
-v, --version Prints the version of the cobj-api
225+
```
226+
211227
## コントリビューㇳ
212228

213229
コントリビュータの一覧は https://github.com/opensourcecobol/opensourcecobol4j/graphs/contributors に掲載されています。

‎configure

+13-13
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#! /bin/sh
22
# Guess values for system-dependent variables and create Makefiles.
3-
# Generated by GNU Autoconf 2.71 for opensource COBOL 4J 1.0.21.
3+
# Generated by GNU Autoconf 2.71 for opensource COBOL 4J 1.0.22.
44
#
55
# Report bugs to <ws-opensource-cobol-contact@osscons.jp>.
66
#
@@ -620,9 +620,9 @@ MAKEFLAGS=
620620

621621
# Identity of this package.
622622
PACKAGE_NAME='opensource COBOL 4J'
623-
PACKAGE_TARNAME='opensource-cobol-4j-1.0.21'
624-
PACKAGE_VERSION='1.0.21'
625-
PACKAGE_STRING='opensource COBOL 4J 1.0.21'
623+
PACKAGE_TARNAME='opensource-cobol-4j-1.0.22'
624+
PACKAGE_VERSION='1.0.22'
625+
PACKAGE_STRING='opensource COBOL 4J 1.0.22'
626626
PACKAGE_BUGREPORT='ws-opensource-cobol-contact@osscons.jp'
627627
PACKAGE_URL=''
628628

@@ -1411,7 +1411,7 @@ if test "$ac_init_help" = "long"; then
14111411
# Omit some internal or obsolete options to make the list less imposing.
14121412
# This message is too long to be a string in the A/UX 3.1 sh.
14131413
cat <<_ACEOF
1414-
\`configure' configures opensource COBOL 4J 1.0.21 to adapt to many kinds of systems.
1414+
\`configure' configures opensource COBOL 4J 1.0.22 to adapt to many kinds of systems.
14151415

14161416
Usage: $0 [OPTION]... [VAR=VALUE]...
14171417

@@ -1461,7 +1461,7 @@ Fine tuning of the installation directories:
14611461
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
14621462
--mandir=DIR man documentation [DATAROOTDIR/man]
14631463
--docdir=DIR documentation root
1464-
[DATAROOTDIR/doc/opensource-cobol-4j-1.0.21]
1464+
[DATAROOTDIR/doc/opensource-cobol-4j-1.0.22]
14651465
--htmldir=DIR html documentation [DOCDIR]
14661466
--dvidir=DIR dvi documentation [DOCDIR]
14671467
--pdfdir=DIR pdf documentation [DOCDIR]
@@ -1483,7 +1483,7 @@ fi
14831483

14841484
if test -n "$ac_init_help"; then
14851485
case $ac_init_help in
1486-
short | recursive ) echo "Configuration of opensource COBOL 4J 1.0.21:";;
1486+
short | recursive ) echo "Configuration of opensource COBOL 4J 1.0.22:";;
14871487
esac
14881488
cat <<\_ACEOF
14891489

@@ -1611,7 +1611,7 @@ fi
16111611
test -n "$ac_init_help" && exit $ac_status
16121612
if $ac_init_version; then
16131613
cat <<\_ACEOF
1614-
opensource COBOL 4J configure 1.0.21
1614+
opensource COBOL 4J configure 1.0.22
16151615
generated by GNU Autoconf 2.71
16161616

16171617
Copyright (C) 2021 Free Software Foundation, Inc.
@@ -2099,7 +2099,7 @@ cat >config.log <<_ACEOF
20992099
This file contains any messages produced by compilers while
21002100
running configure, to aid debugging if configure makes a mistake.
21012101

2102-
It was created by opensource COBOL 4J $as_me 1.0.21, which was
2102+
It was created by opensource COBOL 4J $as_me 1.0.22, which was
21032103
generated by GNU Autoconf 2.71. Invocation command line was
21042104

21052105
$ $0$ac_configure_args_raw
@@ -3397,8 +3397,8 @@ fi
33973397

33983398

33993399
# Define the identity of the package.
3400-
PACKAGE='opensource-cobol-4j-1.0.21'
3401-
VERSION='1.0.21'
3400+
PACKAGE='opensource-cobol-4j-1.0.22'
3401+
VERSION='1.0.22'
34023402

34033403

34043404
printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
@@ -24216,7 +24216,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2421624216
# report actual input values of CONFIG_FILES etc. instead of their
2421724217
# values after options handling.
2421824218
ac_log="
24219-
This file was extended by opensource COBOL 4J $as_me 1.0.21, which was
24219+
This file was extended by opensource COBOL 4J $as_me 1.0.22, which was
2422024220
generated by GNU Autoconf 2.71. Invocation command line was
2422124221

2422224222
CONFIG_FILES = $CONFIG_FILES
@@ -24284,7 +24284,7 @@ ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\
2428424284
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2428524285
ac_cs_config='$ac_cs_config_escaped'
2428624286
ac_cs_version="\\
24287-
opensource COBOL 4J config.status 1.0.21
24287+
opensource COBOL 4J config.status 1.0.22
2428824288
configured by $0, generated by GNU Autoconf 2.71,
2428924289
with options \\"\$ac_cs_config\\"
2429024290

‎configure.ac

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
AC_PREREQ(2.59)
2121

22-
AC_INIT([opensource COBOL 4J],[1.0.21],[ws-opensource-cobol-contact@osscons.jp],[opensource-cobol-4j-1.0.21])
22+
AC_INIT([opensource COBOL 4J],[1.0.22],[ws-opensource-cobol-contact@osscons.jp],[opensource-cobol-4j-1.0.22])
2323
AC_CONFIG_SRCDIR([libcobj.h])
2424
AC_CONFIG_HEADERS([config.h])
2525
AC_CONFIG_TESTDIR([tests])

‎doc/requirements-all.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
| version (opensource COBOL 4J) | OS | version (JDK) |
22
| -- | -- | -- |
3+
| 1.0.22 | Ubuntu 22.04 | 21 |
4+
| 1.0.22 | AlmaLinux 9 | 11 |
5+
| 1.0.22 | Amazon Linux 2023 | 21 |
36
| 1.0.21 | Ubuntu 22.04 | 21 |
47
| 1.0.21 | AlmaLinux 9 | 11 |
58
| 1.0.21 | Amazon Linux 2023 | 21 |

‎libcobj/app/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ publishing {
6767
register<MavenPublication>("gpr") {
6868
groupId = "jp.osscons.opensourcecobol"
6969
artifactId = "libcobj"
70-
version = "1.0.21"
70+
version = "1.0.22"
7171
from(components["java"])
7272
}
7373
}

‎libcobj/app/src/main/java/jp/osscons/opensourcecobol/libcobj/Const.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,5 @@ public class Const {
4141
// TODO 標準パスの設定
4242
public static final String COB_LIBRARY_PATH = "";
4343

44-
public static final String version = "1.0.21";
44+
public static final String version = "1.0.22";
4545
}

‎libcobj/app/src/main/java/jp/osscons/opensourcecobol/libcobj/user_util/cobj_api/ApiFilesOptions.java

+5-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public static void getOptions(String[] args) {
3737
System.exit(0);
3838
return;
3939
} else if (cmd.hasOption("v")) {
40-
System.out.println("1.0.21");
40+
System.out.println("1.0.22");
4141
System.exit(0);
4242
return;
4343
} else if (cmd.getOptionValue("java-package") != null) {
@@ -53,6 +53,10 @@ public static void getOptions(String[] args) {
5353

5454
private static void printHelpMessage() {
5555
System.out.println("Usage: cobj-api [options] <json-file>");
56+
System.out.println();
57+
System.out.println("Arguments:");
58+
System.out.println(" <json-file>: a json file generated by cobj with `-info-json-dir` option");
59+
System.out.println();
5660
System.out.println("Options:");
5761
System.out.println(" -h, --help\t\t\t\tDisplay this message");
5862
System.out.println(

‎tests/command-line-options.src/info-java-dir.at

+4-4
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ AT_DATA([prog.cbl], [
2828
AT_CHECK([${COBJ} -info-json-dir=./ callee.cbl prog.cbl])
2929
AT_CHECK([cat info_callee.json], [0],
3030
[{
31-
"opensourcecobol4j_version": "1.0.21",
31+
"opensourcecobol4j_version": "1.0.22",
3232
"program_id": "callee",
3333
"procedure_division_using_parameters": @<:@
3434
{
@@ -45,7 +45,7 @@ AT_CHECK([cat info_callee.json], [0],
4545

4646
AT_CHECK([cat info_prog.json], [0],
4747
[{
48-
"opensourcecobol4j_version": "1.0.21",
48+
"opensourcecobol4j_version": "1.0.22",
4949
"program_id": "prog",
5050
"procedure_division_using_parameters": @<:@
5151
@:>@
@@ -64,7 +64,7 @@ AT_CHECK([${COBJ} -info-json-dir=bbb callee.cbl prog.cbl])
6464

6565
AT_CHECK([cat bbb/info_callee.json], [0],
6666
[{
67-
"opensourcecobol4j_version": "1.0.21",
67+
"opensourcecobol4j_version": "1.0.22",
6868
"program_id": "callee",
6969
"procedure_division_using_parameters": @<:@
7070
{
@@ -81,7 +81,7 @@ AT_CHECK([cat bbb/info_callee.json], [0],
8181

8282
AT_CHECK([cat bbb/info_prog.json], [0],
8383
[{
84-
"opensourcecobol4j_version": "1.0.21",
84+
"opensourcecobol4j_version": "1.0.22",
8585
"program_id": "prog",
8686
"procedure_division_using_parameters": @<:@
8787
@:>@

‎tests/package.m4

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Signature of the current package.
22
m4_define([AT_PACKAGE_NAME], [opensource COBOL 4J])
3-
m4_define([AT_PACKAGE_TARNAME], [opensource-cobol-4j-1.0.20])
4-
m4_define([AT_PACKAGE_VERSION], [1.0.20])
5-
m4_define([AT_PACKAGE_STRING], [opensource COBOL 4J 1.0.20])
3+
m4_define([AT_PACKAGE_TARNAME], [opensource-cobol-4j-1.0.22])
4+
m4_define([AT_PACKAGE_VERSION], [1.0.22])
5+
m4_define([AT_PACKAGE_STRING], [opensource COBOL 4J 1.0.22])
66
m4_define([AT_PACKAGE_BUGREPORT], [ws-opensource-cobol-contact@osscons.jp])

‎update-version.sh

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ update_versions_in_file README_JP.md
2222
update_versions_in_file libcobj/app/build.gradle.kts
2323
update_versions_in_file libcobj/app/src/main/java/jp/osscons/opensourcecobol/libcobj/Const.java
2424
update_versions_in_file tests/command-line-options.src/info-java-dir.at
25+
update_versions_in_file libcobj/app/src/main/java/jp/osscons/opensourcecobol/libcobj/user_util/cobj_api/ApiFilesOptions.java
2526

2627
# Rebuild
2728
autoreconf

0 commit comments

Comments
 (0)
Please sign in to comment.