xref: /aosp_15_r20/external/sdk-platform-java/java-iam/owlbot.py (revision 882aa7c72c3cd3b66e72a261bdd69b93f7de7670)
1*882aa7c7SMatt Gilbride# Copyright 2020 Google LLC
2*882aa7c7SMatt Gilbride#
3*882aa7c7SMatt Gilbride# Licensed under the Apache License, Version 2.0 (the "License");
4*882aa7c7SMatt Gilbride# you may not use this file except in compliance with the License.
5*882aa7c7SMatt Gilbride# You may obtain a copy of the License at
6*882aa7c7SMatt Gilbride#
7*882aa7c7SMatt Gilbride#     http://www.apache.org/licenses/LICENSE-2.0
8*882aa7c7SMatt Gilbride#
9*882aa7c7SMatt Gilbride# Unless required by applicable law or agreed to in writing, software
10*882aa7c7SMatt Gilbride# distributed under the License is distributed on an "AS IS" BASIS,
11*882aa7c7SMatt Gilbride# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12*882aa7c7SMatt Gilbride# See the License for the specific language governing permissions and
13*882aa7c7SMatt Gilbride# limitations under the License.
14*882aa7c7SMatt Gilbride
15*882aa7c7SMatt Gilbride"""This script is used to synthesize generated parts of this library."""
16*882aa7c7SMatt Gilbride
17*882aa7c7SMatt Gilbrideimport synthtool as s
18*882aa7c7SMatt Gilbridefrom synthtool.languages import java
19*882aa7c7SMatt Gilbride
20*882aa7c7SMatt Gilbridefor library in s.get_staging_dirs():
21*882aa7c7SMatt Gilbride  # put any special-case replacements here
22*882aa7c7SMatt Gilbride  s.move(library)
23*882aa7c7SMatt Gilbride
24*882aa7c7SMatt Gilbrides.remove_staging_dirs()
25*882aa7c7SMatt Gilbridejava.common_templates(monorepo=True,excludes=[
26*882aa7c7SMatt Gilbride  ".github/*",
27*882aa7c7SMatt Gilbride  ".kokoro/*",
28*882aa7c7SMatt Gilbride  "CODE_OF_CONDUCT.md",
29*882aa7c7SMatt Gilbride  "CONTRIBUTING.md",
30*882aa7c7SMatt Gilbride  "LICENSE",
31*882aa7c7SMatt Gilbride  "SECURITY.md",
32*882aa7c7SMatt Gilbride  "java.header",
33*882aa7c7SMatt Gilbride  "license-checks.xml",
34*882aa7c7SMatt Gilbride  "README.md",
35*882aa7c7SMatt Gilbride  "samples/*",
36*882aa7c7SMatt Gilbride  "renovate.json",
37*882aa7c7SMatt Gilbride  ".gitignore"
38*882aa7c7SMatt Gilbride])
39