12e5b6d6dSopenharmony_ci<?xml version="1.0" encoding="UTF-8"?>
22e5b6d6dSopenharmony_ci<!-- Copyright (c) 2021 Huawei Device Co., Ltd.
32e5b6d6dSopenharmony_ci     Licensed under the Apache License, Version 2.0 (the "License");
42e5b6d6dSopenharmony_ci     you may not use this file except in compliance with the License.
52e5b6d6dSopenharmony_ci     You may obtain a copy of the License at
62e5b6d6dSopenharmony_ci
72e5b6d6dSopenharmony_ci          http://www.apache.org/licenses/LICENSE-2.0
82e5b6d6dSopenharmony_ci
92e5b6d6dSopenharmony_ci     Unless required by applicable law or agreed to in writing, software
102e5b6d6dSopenharmony_ci     distributed under the License is distributed on an "AS IS" BASIS,
112e5b6d6dSopenharmony_ci     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
122e5b6d6dSopenharmony_ci     See the License for the specific language governing permissions and
132e5b6d6dSopenharmony_ci     limitations under the License.
142e5b6d6dSopenharmony_ci
152e5b6d6dSopenharmony_ci     Notes:
162e5b6d6dSopenharmony_ci     This is project config file for OpenHarmony OSS Audit Tool, if you have any questions or concerns, please email chenyaxun.
172e5b6d6dSopenharmony_ci-->
182e5b6d6dSopenharmony_ci<!-- OAT(OSS Audit Tool) configuration guide:
192e5b6d6dSopenharmony_cibasedir: Root dir, the basedir + project path is the real source file location.
202e5b6d6dSopenharmony_cilicensefile:
212e5b6d6dSopenharmony_ci1.If the project don't have "LICENSE" in root dir, please define all the license files in this project in , OAT will check license files according to this rule.
222e5b6d6dSopenharmony_ci
232e5b6d6dSopenharmony_citasklist(only for batch mode):
242e5b6d6dSopenharmony_ci1. task: Define oat check thread, each task will start a new thread.
252e5b6d6dSopenharmony_ci2. task name: Only an name, no practical effect.
262e5b6d6dSopenharmony_ci3. task policy: Default policy for projects under this task, this field is required and the specified policy must defined in policylist.
272e5b6d6dSopenharmony_ci4. task filter: Default filefilter for projects under this task, this field is required and the specified filefilter must defined in filefilterlist.
282e5b6d6dSopenharmony_ci5. task project: Projects to be checked, the path field define the source root dir of the project.
292e5b6d6dSopenharmony_ci
302e5b6d6dSopenharmony_ci
312e5b6d6dSopenharmony_cipolicyList:
322e5b6d6dSopenharmony_ci1. policy: All policyitems will be merged to default OAT.xml rules, the name of policy doesn't affect OAT check process.
332e5b6d6dSopenharmony_ci2. policyitem: The fields type, name, path, desc is required, and the fields rule, group, filefilter is optional,the default value is:
342e5b6d6dSopenharmony_ci<policyitem type="" name="" path="" desc="" rule="may" group="defaultGroup" filefilter="defaultPolicyFilter"/>
352e5b6d6dSopenharmony_ci3. policyitem type:
362e5b6d6dSopenharmony_ci    "compatibility" is used to check license compatibility in the specified path;
372e5b6d6dSopenharmony_ci    "license" is used to check source license header in the specified path;
382e5b6d6dSopenharmony_ci    "copyright" is used to check source copyright header in the specified path;
392e5b6d6dSopenharmony_ci    "import" is used to check source dependency in the specified path, such as import ... ,include ...
402e5b6d6dSopenharmony_ci    "filetype" is used to check file type in the specified path, supported file types: archive, binary
412e5b6d6dSopenharmony_ci    "filename" is used to check whether the specified file exists in the specified path(support projectroot in default OAT.xml), supported file names: LICENSE, README, README.OpenSource
422e5b6d6dSopenharmony_ci
432e5b6d6dSopenharmony_ci4. policyitem name: This field is used for define the license, copyright, "*" means match all, the "!" prefix means could not match this value. For example, "!GPL" means can not use GPL license.
442e5b6d6dSopenharmony_ci5. policyitem path: This field is used for define the source file scope to apply this policyitem, the "!" prefix means exclude the files. For example, "!.*/lib/.*" means files in lib dir will be exclude while process this policyitem.
452e5b6d6dSopenharmony_ci6. policyitem rule and group: These two fields are used together to merge policy results. "may" policyitems in the same group means any one in this group passed, the result will be passed.
462e5b6d6dSopenharmony_ci7. policyitem filefilter: Used to bind filefilter which define filter rules.
472e5b6d6dSopenharmony_ci8. filefilter: Filter rules, the type filename is used to filter file name, the type filepath is used to filter file path.
482e5b6d6dSopenharmony_ci
492e5b6d6dSopenharmony_ciNote:If the text contains special characters, please escape them according to the following rules:
502e5b6d6dSopenharmony_ci" == &gt;
512e5b6d6dSopenharmony_ci& == &gt;
522e5b6d6dSopenharmony_ci' == &gt;
532e5b6d6dSopenharmony_ci< == &gt;
542e5b6d6dSopenharmony_ci> == &gt;
552e5b6d6dSopenharmony_ci-->
562e5b6d6dSopenharmony_ci<configuration>
572e5b6d6dSopenharmony_ci    <oatconfig>
582e5b6d6dSopenharmony_ci        <licensefile>icu4c/source</licensefile>
592e5b6d6dSopenharmony_ci        <policylist>
602e5b6d6dSopenharmony_ci            <policy name="projectPolicy" desc="">
612e5b6d6dSopenharmony_ci                <policyitem type="compatibility" name="Unicode-TOU" path="." desc="This license is compatible with Apache 2.0."/>
622e5b6d6dSopenharmony_ci            </policy>
632e5b6d6dSopenharmony_ci        </policylist>
642e5b6d6dSopenharmony_ci        <filefilterlist>
652e5b6d6dSopenharmony_ci            <filefilter name="binaryFileTypePolicyFilter" desc="binary file filter policy">
662e5b6d6dSopenharmony_ci                <filteritem type="filepath" name="ohos_icu4j/data/.*" desc="icudt file"/>
672e5b6d6dSopenharmony_ci                <filteritem type="filepath" name="ohos_icu4j/src/main/tests/.*" desc="test binary"/>
682e5b6d6dSopenharmony_ci                <filteritem type="filepath" name="icu4c/.*" desc="icu source binary file"/>
692e5b6d6dSopenharmony_ci                <filteritem type="filepath" name="icu4j/.*" desc="icu source binary file"/>
702e5b6d6dSopenharmony_ci                <filteritem type="filepath" name="tools/unicodetools/.*" desc="icu source binary file"/>
712e5b6d6dSopenharmony_ci                <filteritem type="filepath" name="tools/multi/.*" desc="icu source binary file"/>
722e5b6d6dSopenharmony_ci                <filteritem type="filepath" name="tools/images/.*" desc="icu source binary file"/>
732e5b6d6dSopenharmony_ci            </filefilter>
742e5b6d6dSopenharmony_ci            <filefilter name="defaultPolicyFilter" desc="compatibility, license">
752e5b6d6dSopenharmony_ci                <filteritem type="filepath" name="KEYS" desc="open source orgin file, confirmed"/>
762e5b6d6dSopenharmony_ci                <filteritem type="filepath" name="icu4c/as_is/.*" desc="open source orgin file, confirmed"/>
772e5b6d6dSopenharmony_ci                <filteritem type="filepath" name="icu4c/packaging/.*" desc="open source orgin file, confirmed"/>
782e5b6d6dSopenharmony_ci                <filteritem type="filepath" name="icu4c/source/.*" desc="open source orgin file, confirmed"/>
792e5b6d6dSopenharmony_ci                <filteritem type="filepath" name="icu4j/demos/.*" desc="open source orgin file, confirmed"/>
802e5b6d6dSopenharmony_ci                <filteritem type="filepath" name="icu4j/main/.*" desc="open source orgin file, confirmed"/>
812e5b6d6dSopenharmony_ci                <filteritem type="filepath" name="icu4j/perf-tests/.*" desc="open source orgin file, confirmed"/>
822e5b6d6dSopenharmony_ci                <filteritem type="filepath" name="icu4j/samples/src/.*" desc="open source orgin file, confirmed"/>
832e5b6d6dSopenharmony_ci                <filteritem type="filepath" name="icu4j/tools/misc/.*" desc="open source orgin file, confirmed"/>
842e5b6d6dSopenharmony_ci                <filteritem type="filepath" name="icu4j/tools/build/.*" desc="open source orgin file, confirmed"/>
852e5b6d6dSopenharmony_ci                <filteritem type="filepath" name="ohos_icu4j/.*" desc="open source orgin file, confirmed"/>              
862e5b6d6dSopenharmony_ci                <filteritem type="filepath" name="tools/.*" desc="open source orgin file, confirmed"/>
872e5b6d6dSopenharmony_ci                <filteritem type="filepath" name="vendor/.*" desc="open source orgin file, confirmed"/>
882e5b6d6dSopenharmony_ci                <filteritem type="filepath" name="docs/.*" desc="open source orgin file, confirmed"/>
892e5b6d6dSopenharmony_ci                <filteritem type="filename" name="LICENSE" desc="open source orgin file, confirmed"/>
902e5b6d6dSopenharmony_ci                <filteritem type="filename" name="license.html" desc="open source orgin file, confirmed"/>
912e5b6d6dSopenharmony_ci                <filteritem type="filename" name="build.xml" desc="open source orgin file, confirmed"/>
922e5b6d6dSopenharmony_ci                <filteritem type="filename" name="pom.xml" desc="open source orgin file, confirmed"/>
932e5b6d6dSopenharmony_ci                <filteritem type="filename" name=".project" desc="open source orgin file, confirmed"/>
942e5b6d6dSopenharmony_ci                <filteritem type="filename" name="ivy.xml" desc="open source orgin file, confirmed"/>
952e5b6d6dSopenharmony_ci                <filteritem type="filename" name="manifest.stub" desc="open source orgin file, confirmed"/>
962e5b6d6dSopenharmony_ci                <filteritem type="filename" name=".classpath" desc="open source orgin file, confirmed"/>
972e5b6d6dSopenharmony_ci            </filefilter>
982e5b6d6dSopenharmony_ci            <filefilter name="copyrightPolicyFilter" desc="compatibility, license">
992e5b6d6dSopenharmony_ci                <filteritem type="filepath" name="icu4c/.*" desc="open source orgin file, confirmed"/>
1002e5b6d6dSopenharmony_ci                <filteritem type="filepath" name="ohos_icu4j/.*" desc="open source orgin file, confirmed"/>
1012e5b6d6dSopenharmony_ci                <filteritem type="filepath" name="icu4j/.*" desc="open source orgin file, confirmed"/>
1022e5b6d6dSopenharmony_ci                <filteritem type="filepath" name="tools/.*" desc="open source orgin file, confirmed"/>
1032e5b6d6dSopenharmony_ci                <filteritem type="filepath" name="vendor/.*" desc="open source orgin file, confirmed"/>
1042e5b6d6dSopenharmony_ci                <filteritem type="filepath" name="docs/.*" desc="open source orgin file, confirmed"/>
1052e5b6d6dSopenharmony_ci            </filefilter>
1062e5b6d6dSopenharmony_ci        </filefilterlist>
1072e5b6d6dSopenharmony_ci    </oatconfig>
1082e5b6d6dSopenharmony_ci</configuration>