Skip to content

Commit fbd4411

Browse files
fujigonwing328
authored andcommitted
fix export_generator shell script (#1223)
* fix export_generator shell script * fix script with bash * use bash instead of sh
1 parent 34409bc commit fbd4411

16 files changed

+131
-5
lines changed

bin/utils/export_docs_generators.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
1+
#!/bin/bash
22

33
SCRIPT="$0"
44
echo "# START SCRIPT: $SCRIPT"
@@ -8,4 +8,4 @@ executable="./modules/openapi-generator-cli/target/openapi-generator-cli.jar"
88
for GENERATOR in $(java -jar $executable list --short | sed -e 's/,/\'$'\n''/g')
99
do
1010
./bin/utils/export_generator.sh $GENERATOR
11-
done
11+
done

bin/utils/export_generator.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
1+
#!/bin/bash
22

33
SCRIPT="$0"
44
echo "# START SCRIPT: $SCRIPT"
@@ -12,6 +12,6 @@ fi
1212

1313
executable="./modules/openapi-generator-cli/target/openapi-generator-cli.jar"
1414

15-
java -jar $executable config-help -g $NAME | sed -e 's/CONFIG OPTIONS/CONFIG OPTIONS for \'$NAME'\'$'\n''/g' > docs/generators/$NAME.md
15+
java -jar $executable config-help -g $NAME | sed -e 's/CONFIG OPTIONS/CONFIG OPTIONS for '$NAME'\'$'\n''/g' > docs/generators/$NAME.md
1616

17-
echo "Back to the [generators list](README.md)" >> docs/generators/$NAME.md
17+
echo "Back to the [generators list](README.md)" >> docs/generators/$NAME.md

docs/generators/groovy.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,15 @@ CONFIG OPTIONS for groovy
104104
booleanGetterPrefix
105105
Set booleanGetterPrefix (default value 'get')
106106

107+
parentGroupId
108+
parent groupId in generated pom N.B. parentGroupId, parentArtifactId and parentVersion must all be specified for any of them to take effect
109+
110+
parentArtifactId
111+
parent artifactId in generated pom N.B. parentGroupId, parentArtifactId and parentVersion must all be specified for any of them to take effect
112+
113+
parentVersion
114+
parent version in generated pom N.B. parentGroupId, parentArtifactId and parentVersion must all be specified for any of them to take effect
115+
107116
configPackage
108117
configuration package for generated code
109118

docs/generators/java-inflector.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,4 +104,13 @@ CONFIG OPTIONS for java-inflector
104104
booleanGetterPrefix
105105
Set booleanGetterPrefix (default value 'get')
106106

107+
parentGroupId
108+
parent groupId in generated pom N.B. parentGroupId, parentArtifactId and parentVersion must all be specified for any of them to take effect
109+
110+
parentArtifactId
111+
parent artifactId in generated pom N.B. parentGroupId, parentArtifactId and parentVersion must all be specified for any of them to take effect
112+
113+
parentVersion
114+
parent version in generated pom N.B. parentGroupId, parentArtifactId and parentVersion must all be specified for any of them to take effect
115+
107116
Back to the [generators list](README.md)

docs/generators/java-msf4j.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,15 @@ CONFIG OPTIONS for java-msf4j
104104
booleanGetterPrefix
105105
Set booleanGetterPrefix (default value 'get')
106106

107+
parentGroupId
108+
parent groupId in generated pom N.B. parentGroupId, parentArtifactId and parentVersion must all be specified for any of them to take effect
109+
110+
parentArtifactId
111+
parent artifactId in generated pom N.B. parentGroupId, parentArtifactId and parentVersion must all be specified for any of them to take effect
112+
113+
parentVersion
114+
parent version in generated pom N.B. parentGroupId, parentArtifactId and parentVersion must all be specified for any of them to take effect
115+
107116
implFolder
108117
folder for generated implementation code
109118

docs/generators/java-pkmst.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,15 @@ CONFIG OPTIONS for java-pkmst
104104
booleanGetterPrefix
105105
Set booleanGetterPrefix (default value 'get')
106106

107+
parentGroupId
108+
parent groupId in generated pom N.B. parentGroupId, parentArtifactId and parentVersion must all be specified for any of them to take effect
109+
110+
parentArtifactId
111+
parent artifactId in generated pom N.B. parentGroupId, parentArtifactId and parentVersion must all be specified for any of them to take effect
112+
113+
parentVersion
114+
parent version in generated pom N.B. parentGroupId, parentArtifactId and parentVersion must all be specified for any of them to take effect
115+
107116
groupId
108117
groupId in generated pom.xml
109118

docs/generators/java-play-framework.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,15 @@ CONFIG OPTIONS for java-play-framework
104104
booleanGetterPrefix
105105
Set booleanGetterPrefix (default value 'get')
106106

107+
parentGroupId
108+
parent groupId in generated pom N.B. parentGroupId, parentArtifactId and parentVersion must all be specified for any of them to take effect
109+
110+
parentArtifactId
111+
parent artifactId in generated pom N.B. parentGroupId, parentArtifactId and parentVersion must all be specified for any of them to take effect
112+
113+
parentVersion
114+
parent version in generated pom N.B. parentGroupId, parentArtifactId and parentVersion must all be specified for any of them to take effect
115+
107116
title
108117
server title name or client service name
109118

docs/generators/java-undertow-server.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,4 +104,13 @@ CONFIG OPTIONS for java-undertow-server
104104
booleanGetterPrefix
105105
Set booleanGetterPrefix (default value 'get')
106106

107+
parentGroupId
108+
parent groupId in generated pom N.B. parentGroupId, parentArtifactId and parentVersion must all be specified for any of them to take effect
109+
110+
parentArtifactId
111+
parent artifactId in generated pom N.B. parentGroupId, parentArtifactId and parentVersion must all be specified for any of them to take effect
112+
113+
parentVersion
114+
parent version in generated pom N.B. parentGroupId, parentArtifactId and parentVersion must all be specified for any of them to take effect
115+
107116
Back to the [generators list](README.md)

docs/generators/java-vertx.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,15 @@ CONFIG OPTIONS for java-vertx
104104
booleanGetterPrefix
105105
Set booleanGetterPrefix (default value 'get')
106106

107+
parentGroupId
108+
parent groupId in generated pom N.B. parentGroupId, parentArtifactId and parentVersion must all be specified for any of them to take effect
109+
110+
parentArtifactId
111+
parent artifactId in generated pom N.B. parentGroupId, parentArtifactId and parentVersion must all be specified for any of them to take effect
112+
113+
parentVersion
114+
parent version in generated pom N.B. parentGroupId, parentArtifactId and parentVersion must all be specified for any of them to take effect
115+
107116
rxInterface
108117
When specified, API interfaces are generated with RX and methods return Single<> and Comparable. (Default: false)
109118

docs/generators/jaxrs-cxf-cdi.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,15 @@ CONFIG OPTIONS for jaxrs-cxf-cdi
104104
booleanGetterPrefix
105105
Set booleanGetterPrefix (default value 'get')
106106

107+
parentGroupId
108+
parent groupId in generated pom N.B. parentGroupId, parentArtifactId and parentVersion must all be specified for any of them to take effect
109+
110+
parentArtifactId
111+
parent artifactId in generated pom N.B. parentGroupId, parentArtifactId and parentVersion must all be specified for any of them to take effect
112+
113+
parentVersion
114+
parent version in generated pom N.B. parentGroupId, parentArtifactId and parentVersion must all be specified for any of them to take effect
115+
107116
implFolder
108117
folder for generated implementation code
109118

docs/generators/jaxrs-cxf-client.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,15 @@ CONFIG OPTIONS for jaxrs-cxf-client
104104
booleanGetterPrefix
105105
Set booleanGetterPrefix (default value 'get')
106106

107+
parentGroupId
108+
parent groupId in generated pom N.B. parentGroupId, parentArtifactId and parentVersion must all be specified for any of them to take effect
109+
110+
parentArtifactId
111+
parent artifactId in generated pom N.B. parentGroupId, parentArtifactId and parentVersion must all be specified for any of them to take effect
112+
113+
parentVersion
114+
parent version in generated pom N.B. parentGroupId, parentArtifactId and parentVersion must all be specified for any of them to take effect
115+
107116
useBeanValidation
108117
Use BeanValidation API annotations (Default: false)
109118

docs/generators/jaxrs-cxf.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,15 @@ CONFIG OPTIONS for jaxrs-cxf
104104
booleanGetterPrefix
105105
Set booleanGetterPrefix (default value 'get')
106106

107+
parentGroupId
108+
parent groupId in generated pom N.B. parentGroupId, parentArtifactId and parentVersion must all be specified for any of them to take effect
109+
110+
parentArtifactId
111+
parent artifactId in generated pom N.B. parentGroupId, parentArtifactId and parentVersion must all be specified for any of them to take effect
112+
113+
parentVersion
114+
parent version in generated pom N.B. parentGroupId, parentArtifactId and parentVersion must all be specified for any of them to take effect
115+
107116
implFolder
108117
folder for generated implementation code
109118

docs/generators/jaxrs-jersey.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,15 @@ CONFIG OPTIONS for jaxrs-jersey
104104
booleanGetterPrefix
105105
Set booleanGetterPrefix (default value 'get')
106106

107+
parentGroupId
108+
parent groupId in generated pom N.B. parentGroupId, parentArtifactId and parentVersion must all be specified for any of them to take effect
109+
110+
parentArtifactId
111+
parent artifactId in generated pom N.B. parentGroupId, parentArtifactId and parentVersion must all be specified for any of them to take effect
112+
113+
parentVersion
114+
parent version in generated pom N.B. parentGroupId, parentArtifactId and parentVersion must all be specified for any of them to take effect
115+
107116
implFolder
108117
folder for generated implementation code
109118

docs/generators/jaxrs-resteasy-eap.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,15 @@ CONFIG OPTIONS for jaxrs-resteasy-eap
104104
booleanGetterPrefix
105105
Set booleanGetterPrefix (default value 'get')
106106

107+
parentGroupId
108+
parent groupId in generated pom N.B. parentGroupId, parentArtifactId and parentVersion must all be specified for any of them to take effect
109+
110+
parentArtifactId
111+
parent artifactId in generated pom N.B. parentGroupId, parentArtifactId and parentVersion must all be specified for any of them to take effect
112+
113+
parentVersion
114+
parent version in generated pom N.B. parentGroupId, parentArtifactId and parentVersion must all be specified for any of them to take effect
115+
107116
implFolder
108117
folder for generated implementation code
109118

docs/generators/jaxrs-resteasy.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,15 @@ CONFIG OPTIONS for jaxrs-resteasy
104104
booleanGetterPrefix
105105
Set booleanGetterPrefix (default value 'get')
106106

107+
parentGroupId
108+
parent groupId in generated pom N.B. parentGroupId, parentArtifactId and parentVersion must all be specified for any of them to take effect
109+
110+
parentArtifactId
111+
parent artifactId in generated pom N.B. parentGroupId, parentArtifactId and parentVersion must all be specified for any of them to take effect
112+
113+
parentVersion
114+
parent version in generated pom N.B. parentGroupId, parentArtifactId and parentVersion must all be specified for any of them to take effect
115+
107116
implFolder
108117
folder for generated implementation code
109118

docs/generators/jaxrs-spec.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,15 @@ CONFIG OPTIONS for jaxrs-spec
104104
booleanGetterPrefix
105105
Set booleanGetterPrefix (default value 'get')
106106

107+
parentGroupId
108+
parent groupId in generated pom N.B. parentGroupId, parentArtifactId and parentVersion must all be specified for any of them to take effect
109+
110+
parentArtifactId
111+
parent artifactId in generated pom N.B. parentGroupId, parentArtifactId and parentVersion must all be specified for any of them to take effect
112+
113+
parentVersion
114+
parent version in generated pom N.B. parentGroupId, parentArtifactId and parentVersion must all be specified for any of them to take effect
115+
107116
implFolder
108117
folder for generated implementation code
109118

0 commit comments

Comments
 (0)