Skip to content

Commit 4439aeb

Browse files
committed
Update Java client generator script
1 parent 2d4bc30 commit 4439aeb

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

client/generate.sh

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

3-
# Copyright 2020 The Kubernetes Authors.
43
#
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
4+
# Copyright (c) 2021, Oracle and/or its affiliates.
5+
# Licensed under the Universal Permissive License v 1.0 as shown at
6+
# http://oss.oracle.com/licenses/upl.
87
#
9-
# http://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.
168

179
# This script orchestrates the code generation procedure. It is executed inside a crdgen
1810
# container in order to minimize the environment dependencies on the host, being Docker only.
@@ -82,4 +74,5 @@ bash java-crd-cmd.sh -n "${KUBERNETES_CRD_GROUP_PREFIX}" -p "${PACKAGE_NAME}" -l
8274
# only keep the model classes
8375
mkdir -p "${OUTPUT_DIR}/src/main/java/${PACKAGE_NAME//.//}"
8476
cp -r "${OUTPUT_DIR}/gen/src/main/java/${PACKAGE_NAME//.//}/models" "${OUTPUT_DIR}/src/main/java/${PACKAGE_NAME//.//}"
77+
chmod 777 -R "${OUTPUT_DIR}/src"
8578
rm -rf "${OUTPUT_DIR}/gen"/gen/openapi

0 commit comments

Comments
 (0)