diff --git a/.github/workflows/pr-rat-check.yml b/.github/workflows/pr-rat-check.yml new file mode 100644 index 00000000000..f1324311e59 --- /dev/null +++ b/.github/workflows/pr-rat-check.yml @@ -0,0 +1,40 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# + +name: Run Apache RAT check + +on: + pull_request: + types: [opened, synchronize, reopened, ready_for_review] + +jobs: + apache-rat-check: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Download Apache RAT + run: | + curl -LO https://repo1.maven.org/maven2/org/apache/rat/apache-rat/0.16.1/apache-rat-0.16.1.jar + + - name: Run Apache RAT + run: | + java -jar apache-rat-0.16.1.jar -d . -E .rat-excludes | grep "== File:" && echo "The files listed above are missing license headers." && exit 1 || echo "All files have license headers." diff --git a/.gitignore b/.gitignore index dfa69a393a7..655baabbb2b 100644 --- a/.gitignore +++ b/.gitignore @@ -24,6 +24,7 @@ local/ !.github !.git-blame-ignore-revs !.openrewrite +!.rat-excludes nbproject *.ipr *.iws diff --git a/.rat-excludes b/.rat-excludes new file mode 100644 index 00000000000..24a5e7f6bbf --- /dev/null +++ b/.rat-excludes @@ -0,0 +1,314 @@ +# .git-blame-ignore-revs +.git-blame-ignore-revs +# .rat-excludes +.rat-excludes +# DISCLAIMER-WIP +DISCLAIMER-WIP +# drools-decisiontables/src/main/java/org/drools/decisiontable/parser/csv/CsvLineParser.java +CsvLineParser.java +# drools-decisiontables/src/test/resources/data/ComplexWorkbook.drl.csv +ComplexWorkbook.drl.csv +# drools-decisiontables/src/test/resources/data/TestCsv.drl.csv +TestCsv.drl.csv +# drools-decisiontables/src/test/resources/org/drools/decisiontable/DeclaresWorkbook.drl.csv +DeclaresWorkbook.drl.csv +# drools-decisiontables/src/test/resources/org/drools/decisiontable/changeSetTestCSV.drl.csv +changeSetTestCSV.drl.csv +# drools-decisiontables/src/test/resources/org/drools/decisiontable/changeSetTestCSV2.drl.csv +changeSetTestCSV2.drl.csv +# drools-decisiontables/src/test/resources/org/drools/decisiontable/columnReplaceTest.drl.csv +columnReplaceTest.drl.csv +# drools-decisiontables/src/test/resources/org/drools/decisiontable/emptyAction.drl.csv +emptyAction.drl.csv +# drools-decisiontables/src/test/resources/org/drools/decisiontable/scannerChangeSetTestCSV.drl.csv +scannerChangeSetTestCSV.drl.csv +# drools-decisiontables/src/test/resources/org/drools/decisiontable/unicode.drl.csv +unicode.drl.csv +# drools-decisiontables/src/test/resources/org/drools/decisiontable/integrationtests/csv/kmoduleCSVTest.dtable.drl.csv +kmoduleCSVTest.dtable.drl.csv +# drools-docs/supplemental-ui/css/search.css +search.css +# drools-docs/supplemental-ui/js/search-ui.js +search-ui.js +# drools-docs/supplemental-ui/js/vendor/lunr-2.3.9.min.js +lunr-2.3.9.min.js +# drools-drlonyaml-parent/drools-drlonyaml-cli-tests/src/test/resources/batch_drl_files/.gitignore +.gitignore +# drools-drlonyaml-parent/drools-drlonyaml-cli-tests/src/test/resources/expected/test1.yml +test1.yml +# drools-drlonyaml-parent/drools-drlonyaml-cli-tests/src/test/resources/expected/test2.drl.txt +test2.drl.txt +# drools-drlonyaml-parent/drools-drlonyaml-cli-tests/src/test/resources/given/test1.drl.txt +test1.drl.txt +# drools-drlonyaml-parent/drools-drlonyaml-todrl/src/main/resources/drl.ftl +drl.ftl +# drools-examples/src/main/resources/org/drools/examples/sudoku/Sample.sdo +Sample.sdo +# drools-impact-analysis/drools-impact-analysis-graph/drools-impact-analysis-graph-graphviz/src/test/resources/org/drools/impact/analysis/graph/graphviz/simple.dot +simple.dot +# drools-model/drools-mvel-parser/src/main/javacc/mvel.jj +mvel.jj +# drools-quarkus-extension/drools-quarkus-integration-test-hotreload/src/main/resources/org/drools/hotreload/adult.txt +adult.txt +# drools-scenario-simulation/drools-scenario-simulation-backend/src/test/resources/folderToTest/testFile.txt +testFile.txt +# drools-test-coverage/test-suite/src/test/resources/org/drools/testcoverage/functional/agenda-group.drl.csv +agenda-group.drl.csv +# drools-test-coverage/test-suite/src/test/resources/org/drools/testcoverage/functional/emptyAction.drl.csv +emptyAction.drl.csv +# drools-test-coverage/test-suite/src/test/resources/org/drools/testcoverage/functional/sample.drl.csv +sample.drl.csv +# drools-test-coverage/test-suite/src/test/resources/org/drools/testcoverage/functional/sample_dates.drl.csv +sample_dates.drl.csv +# drools-test-coverage/test-suite/src/test/resources/org/drools/testcoverage/functional/sequential.drl.csv +sequential.drl.csv +# drools-test-coverage/test-suite/src/test/resources/org/drools/testcoverage/functional/unicode.drl.csv +unicode.drl.csv +# drools-test-coverage/test-suite/src/test/resources/org/drools/testcoverage/functional/decisiontable/PhoneNumberCategory.drl.csv +PhoneNumberCategory.drl.csv +# drools-test-coverage/test-suite/src/test/resources/org/drools/testcoverage/functional/oopath/oopath.drl.csv +oopath.drl.csv +# efesto/documentation/sdt/CompositeKnowledgeBuilderImpl_build.sdt +CompositeKnowledgeBuilderImpl_build.sdt +# efesto/documentation/sdt/PMMLAssemblerService_addResourceAfterRules_withoutConfigurations.sdt +PMMLAssemblerService_addResourceAfterRules_withoutConfigurations.sdt +# efesto/documentation/sdt/PMMLAssemblerService_addResourcesAfterRules_withConfigurations.sdt +PMMLAssemblerService_addResourcesAfterRules_withConfigurations.sdt +# efesto/efesto-core/efesto-common-api/src/test/resources/IndexFile.test_json +IndexFile.test_json +# efesto/efesto-core/efesto-common-api/src/test/resources/TestingEmptyFile.txt +TestingEmptyFile.txt +# efesto/efesto-core/efesto-common-core/src/test/resources/IndexFile.test_json +IndexFile.test_json +# efesto/efesto-core/efesto-common-core/src/test/resources/TestingEmptyFile.txt +TestingEmptyFile.txt +# efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/src/test/resources/IndexFile.test_json +IndexFile.test_json +# efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/src/test/resources/IndexFile.test_json +IndexFile.test_json +# kie-archetypes/kie-drools-dmn-archetype/src/test/resources/projects/integrationtestDefaults/goal.txt +goal.txt +# kie-archetypes/kie-drools-exec-model-archetype/src/test/resources/projects/integrationtestDefaults/goal.txt +goal.txt +# kie-archetypes/kie-drools-exec-model-ruleunit-archetype/src/test/resources/projects/integrationtestDefaults/goal.txt +goal.txt +# kie-archetypes/kie-drools-yaml-archetype/src/test/resources/projects/integrationtestDefaults/goal.txt +goal.txt +# kie-dmn/kie-dmn-backend/src/test/resources/DC.xsd +DC.xsd +# kie-dmn/kie-dmn-backend/src/test/resources/DI.xsd +DI.xsd +# kie-dmn/kie-dmn-backend/src/test/resources/DMN11.xsd +DMN11.xsd +# kie-dmn/kie-dmn-backend/src/test/resources/DMN12.xsd +DMN12.xsd +# kie-dmn/kie-dmn-backend/src/test/resources/DMN13.xsd +DMN13.xsd +# kie-dmn/kie-dmn-backend/src/test/resources/DMN14.xsd +DMN14.xsd +# kie-dmn/kie-dmn-backend/src/test/resources/DMN15.xsd +DMN15.xsd +# kie-dmn/kie-dmn-backend/src/test/resources/DMNDI12.xsd +DMNDI12.xsd +# kie-dmn/kie-dmn-backend/src/test/resources/DMNDI13.xsd +DMNDI13.xsd +# kie-dmn/kie-dmn-backend/src/test/resources/DMNDI15.xsd +DMNDI15.xsd +# kie-dmn/kie-dmn-core/src/test/filtered-resources/org/kie/dmn/core/drools-model +drools-model +# kie-dmn/kie-dmn-feel/src/main/resources/dmn.xsd +dmn.xsd +# kie-dmn/kie-dmn-trisotech/src/test/resources/DC.xsd +DC.xsd +# kie-dmn/kie-dmn-trisotech/src/test/resources/DI.xsd +DI.xsd +# kie-dmn/kie-dmn-trisotech/src/test/resources/DMN13.xsd +DMN13.xsd +# kie-dmn/kie-dmn-trisotech/src/test/resources/DMNDI13.xsd +DMNDI13.xsd +# kie-dmn/kie-dmn-validation/src/main/resources/org/kie/dmn/validation/org/omg/spec/DMN/20151101/dmn.xsd +dmn.xsd +# kie-dmn/kie-dmn-validation/src/main/resources/org/kie/dmn/validation/org/omg/spec/DMN/20180521/DC.xsd +DC.xsd +# kie-dmn/kie-dmn-validation/src/main/resources/org/kie/dmn/validation/org/omg/spec/DMN/20180521/DI.xsd +DI.xsd +# kie-dmn/kie-dmn-validation/src/main/resources/org/kie/dmn/validation/org/omg/spec/DMN/20180521/DMN12.xsd +DMN12.xsd +# kie-dmn/kie-dmn-validation/src/main/resources/org/kie/dmn/validation/org/omg/spec/DMN/20180521/DMNDI12.xsd +DMNDI12.xsd +# kie-dmn/kie-dmn-validation/src/main/resources/org/kie/dmn/validation/org/omg/spec/DMN/20191111/DC.xsd +DC.xsd +# kie-dmn/kie-dmn-validation/src/main/resources/org/kie/dmn/validation/org/omg/spec/DMN/20191111/DI.xsd +DI.xsd +# kie-dmn/kie-dmn-validation/src/main/resources/org/kie/dmn/validation/org/omg/spec/DMN/20191111/DMN13.xsd +DMN13.xsd +# kie-dmn/kie-dmn-validation/src/main/resources/org/kie/dmn/validation/org/omg/spec/DMN/20191111/DMNDI13.xsd +DMNDI13.xsd +# kie-dmn/kie-dmn-validation/src/main/resources/org/kie/dmn/validation/org/omg/spec/DMN/20211108/DC.xsd +DC.xsd +# kie-dmn/kie-dmn-validation/src/main/resources/org/kie/dmn/validation/org/omg/spec/DMN/20211108/DI.xsd +DI.xsd +# kie-dmn/kie-dmn-validation/src/main/resources/org/kie/dmn/validation/org/omg/spec/DMN/20211108/DMN14.xsd +DMN14.xsd +# kie-dmn/kie-dmn-validation/src/main/resources/org/kie/dmn/validation/org/omg/spec/DMN/20211108/DMNDI13.xsd +DMNDI13.xsd +# kie-dmn/kie-dmn-validation/src/main/resources/org/kie/dmn/validation/org/omg/spec/DMN/20230324/DC.xsd +DC.xsd +# kie-dmn/kie-dmn-validation/src/main/resources/org/kie/dmn/validation/org/omg/spec/DMN/20230324/DI.xsd +DI.xsd +# kie-dmn/kie-dmn-validation/src/main/resources/org/kie/dmn/validation/org/omg/spec/DMN/20230324/DMN15.xsd +DMN15.xsd +# kie-dmn/kie-dmn-validation/src/main/resources/org/kie/dmn/validation/org/omg/spec/DMN/20230324/DMNDI15.xsd +DMNDI15.xsd +# kie-drl/kie-drl-implementations/kie-drl-kiesession-local/kie-drl-kiesession-local-runtime/src/test/resources/IndexFile.drl_json +IndexFile.drl_json +# kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/resources/IndexFile.drl_json +IndexFile.drl_json +# kie-drl/kie-drl-runtime-common/src/test/resources/IndexFile.drl_json +IndexFile.drl_json +# kie-drl/kie-drl-tests/src/test/resources/IndexFile.drl_json +IndexFile.drl_json +# kie-pmml-trusty/kie-pmml-commons/src/test/resources/IndexFile.pmml_json +IndexFile.pmml_json +# kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/resources/KiePMMLApplyFactoryTest_01.txt +KiePMMLApplyFactoryTest_01.txt +# kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/resources/KiePMMLApplyFactoryTest_02.txt +KiePMMLApplyFactoryTest_02.txt +# kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/resources/KiePMMLApplyFactoryTest_03.txt +KiePMMLApplyFactoryTest_03.txt +# kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/resources/KiePMMLCompoundPredicateFactoryTest_01.txt +KiePMMLCompoundPredicateFactoryTest_01.txt +# kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/resources/KiePMMLConstantFactoryTest_01.txt +KiePMMLConstantFactoryTest_01.txt +# kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/resources/KiePMMLDefineFunctionFactoryTest_01.txt +KiePMMLDefineFunctionFactoryTest_01.txt +# kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/resources/KiePMMLDerivedFieldFactoryTest_01.txt +KiePMMLDerivedFieldFactoryTest_01.txt +# kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/resources/KiePMMLDerivedFieldFactoryTest_02.txt +KiePMMLDerivedFieldFactoryTest_02.txt +# kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/resources/KiePMMLDerivedFieldFactoryTest_03.txt +KiePMMLDerivedFieldFactoryTest_03.txt +# kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/resources/KiePMMLDiscretizeBinFactoryTest_01.txt +KiePMMLDiscretizeBinFactoryTest_01.txt +# kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/resources/KiePMMLDiscretizeFactoryTest_01.txt +KiePMMLDiscretizeFactoryTest_01.txt +# kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/resources/KiePMMLFalsePredicateFactoryTest_01.txt +KiePMMLFalsePredicateFactoryTest_01.txt +# kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/resources/KiePMMLFieldColumnPairFactoryTest_01.txt +KiePMMLFieldColumnPairFactoryTest_01.txt +# kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/resources/KiePMMLFieldRefFactoryTest_01.txt +KiePMMLFieldRefFactoryTest_01.txt +# kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/resources/KiePMMLInlineTableFactoryTest_01.txt +KiePMMLInlineTableFactoryTest_01.txt +# kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/resources/KiePMMLIntervalFactoryTest_01.txt +KiePMMLIntervalFactoryTest_01.txt +# kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/resources/KiePMMLLocalTransformationsFactoryTest_01.txt +KiePMMLLocalTransformationsFactoryTest_01.txt +# kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/resources/KiePMMLMapValuesFactoryTest_01.txt +KiePMMLMapValuesFactoryTest_01.txt +# kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/resources/KiePMMLMiningFieldFactoryTest_01.txt +KiePMMLMiningFieldFactoryTest_01.txt +# kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/resources/KiePMMLMiningFieldFactoryTest_02.txt +KiePMMLMiningFieldFactoryTest_02.txt +# kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/resources/KiePMMLMiningFieldFactoryTest_03.txt +KiePMMLMiningFieldFactoryTest_03.txt +# kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/resources/KiePMMLModelFactoryUtilsTest_01.txt +KiePMMLModelFactoryUtilsTest_01.txt +# kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/resources/KiePMMLModelFactoryUtilsTest_02.txt +KiePMMLModelFactoryUtilsTest_02.txt +# kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/resources/KiePMMLModelFactoryUtilsTest_03.txt +KiePMMLModelFactoryUtilsTest_03.txt +# kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/resources/KiePMMLModelFactoryUtilsTest_04.txt +KiePMMLModelFactoryUtilsTest_04.txt +# kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/resources/KiePMMLModelFactoryUtilsTest_05.txt +KiePMMLModelFactoryUtilsTest_05.txt +# kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/resources/KiePMMLModelFactoryUtilsTest_06.txt +KiePMMLModelFactoryUtilsTest_06.txt +# kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/resources/KiePMMLModelFactoryUtilsTest_07.txt +KiePMMLModelFactoryUtilsTest_07.txt +# kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/resources/KiePMMLModelFactoryUtilsTest_08.txt +KiePMMLModelFactoryUtilsTest_08.txt +# kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/resources/KiePMMLModelFactoryUtilsTest_09.txt +KiePMMLModelFactoryUtilsTest_09.txt +# kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/resources/KiePMMLModelFactoryUtilsTest_10.txt +KiePMMLModelFactoryUtilsTest_10.txt +# kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/resources/KiePMMLModelFactoryUtilsTest_11.txt +KiePMMLModelFactoryUtilsTest_11.txt +# kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/resources/KiePMMLModelFactoryUtilsTest_12.txt +KiePMMLModelFactoryUtilsTest_12.txt +# kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/resources/KiePMMLModelFactoryUtilsTest_13.txt +KiePMMLModelFactoryUtilsTest_13.txt +# kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/resources/KiePMMLModelFactoryUtilsTest_14.txt +KiePMMLModelFactoryUtilsTest_14.txt +# kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/resources/KiePMMLNormContinuousFactoryTest_01.txt +KiePMMLNormContinuousFactoryTest_01.txt +# kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/resources/KiePMMLNormContinuousFactoryTest_02.txt +KiePMMLNormContinuousFactoryTest_02.txt +# kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/resources/KiePMMLNormDiscreteFactoryTest_01.txt +KiePMMLNormDiscreteFactoryTest_01.txt +# kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/resources/KiePMMLParameterFieldFactoryTest_01.txt +KiePMMLParameterFieldFactoryTest_01.txt +# kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/resources/KiePMMLRowFactoryTest_01.txt +KiePMMLRowFactoryTest_01.txt +# kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/resources/KiePMMLRowFactoryTest_02.txt +KiePMMLRowFactoryTest_02.txt +# kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/resources/KiePMMLSimplePredicateFactoryTest_01.txt +KiePMMLSimplePredicateFactoryTest_01.txt +# kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/resources/KiePMMLSimpleSetPredicateFactoryTest_01.txt +KiePMMLSimpleSetPredicateFactoryTest_01.txt +# kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/resources/KiePMMLTargetFactoryTest_01.txt +KiePMMLTargetFactoryTest_01.txt +# kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/resources/KiePMMLTargetValueFactoryTest_01.txt +KiePMMLTargetValueFactoryTest_01.txt +# kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/resources/KiePMMLTextIndexFactoryTest_01.txt +KiePMMLTextIndexFactoryTest_01.txt +# kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/resources/KiePMMLTextIndexNormalizationFactoryTest_01.txt +KiePMMLTextIndexNormalizationFactoryTest_01.txt +# kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/resources/KiePMMLTransformationDictionaryFactoryTest_01.txt +KiePMMLTransformationDictionaryFactoryTest_01.txt +# kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/resources/KiePMMLTruePredicateFactoryTest_01.txt +KiePMMLTruePredicateFactoryTest_01.txt +# kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/resources/TargetFieldFactoryTest_01.txt +TargetFieldFactoryTest_01.txt +# kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/resources/TargetValueFactoryTest_01.txt +TargetValueFactoryTest_01.txt +# kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/test/resources/IndexFile.pmml_json +IndexFile.pmml_json +# kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-compiler/src/test/resources/KiePMMLClusteringModelFactoryTest_01.txt +KiePMMLClusteringModelFactoryTest_01.txt +# kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-compiler/src/test/resources/KiePMMLSegmentFactoryTest_01.txt +KiePMMLSegmentFactoryTest_01.txt +# kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/test/resources/KiePMMLClassificationTableFactoryTest_01.txt +KiePMMLClassificationTableFactoryTest_01.txt +# kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/test/resources/KiePMMLClassificationTableFactoryTest_02.txt +KiePMMLClassificationTableFactoryTest_02.txt +# kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/test/resources/KiePMMLRegressionModelFactoryTest_01.txt +KiePMMLRegressionModelFactoryTest_01.txt +# kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/test/resources/KiePMMLRegressionTableFactoryTest_01.txt +KiePMMLRegressionTableFactoryTest_01.txt +# kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/test/resources/KiePMMLRegressionTableFactoryTest_02.txt +KiePMMLRegressionTableFactoryTest_02.txt +# kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/test/resources/KiePMMLRegressionTableFactoryTest_03.txt +KiePMMLRegressionTableFactoryTest_03.txt +# kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/test/resources/KiePMMLRegressionTableFactoryTest_04.txt +KiePMMLRegressionTableFactoryTest_04.txt +# kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/test/resources/KiePMMLRegressionTableFactoryTest_05.txt +KiePMMLRegressionTableFactoryTest_05.txt +# kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/test/resources/KiePMMLRegressionTableFactoryTest_06.txt +KiePMMLRegressionTableFactoryTest_06.txt +# kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/test/resources/KiePMMLRegressionTableFactoryTest_07.txt +KiePMMLRegressionTableFactoryTest_07.txt +# kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-compiler/src/test/resources/KiePMMLAttributeFactoryTest_01.txt +KiePMMLAttributeFactoryTest_01.txt +# kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-compiler/src/test/resources/KiePMMLCharacteristicFactoryTest_01.txt +KiePMMLCharacteristicFactoryTest_01.txt +# kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-compiler/src/test/resources/KiePMMLCharacteristicsFactoryTest_01.txt +KiePMMLCharacteristicsFactoryTest_01.txt +# kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-compiler/src/test/resources/KiePMMLComplexPartialScoreFactoryTest_01.txt +KiePMMLComplexPartialScoreFactoryTest_01.txt +# kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-compiler/src/test/resources/KiePMMLComplexPartialScoreFactoryTest_02.txt +KiePMMLComplexPartialScoreFactoryTest_02.txt +# kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-compiler/src/test/resources/KiePMMLComplexPartialScoreFactoryTest_03.txt +KiePMMLComplexPartialScoreFactoryTest_03.txt +# kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-compiler/src/test/resources/KiePMMLNodeFactoryTest_01.txt +KiePMMLNodeFactoryTest_01.txt diff --git a/LICENSE-Apache-2.0.txt b/LICENSE similarity index 50% rename from LICENSE-Apache-2.0.txt rename to LICENSE index d6456956733..479af620e80 100644 --- a/LICENSE-Apache-2.0.txt +++ b/LICENSE @@ -200,3 +200,154 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. + + ------------------------------------------------------------------------------------ + for drools-decisiontables/src/main/java/org/drools/decisiontable/parser/csv/CsvLineParser.java + + Inner logic adapted from a C++ original that was Copyright (C) 1999 + Lucent Technologies Excerpted from 'The Practice of Programming' by Brian + Kernighan and Rob Pike. + + Included by permission of the http://tpop.awl.com/ web site, which says: + "You may use this code for any purpose, as long as you leave the + copyright notice and book citation attached." + + ------------------------------------------------------------------------------------ + for kie-dmn/kie-dmn-backend/src/test/resources/DC.xsd + kie-dmn/kie-dmn-backend/src/test/resources/DI.xsd + kie-dmn/kie-dmn-backend/src/test/resources/DMN11.xsd + kie-dmn/kie-dmn-backend/src/test/resources/DMN12.xsd + kie-dmn/kie-dmn-backend/src/test/resources/DMN13.xsd + kie-dmn/kie-dmn-backend/src/test/resources/DMN14.xsd + kie-dmn/kie-dmn-backend/src/test/resources/DMN15.xsd + kie-dmn/kie-dmn-backend/src/test/resources/DMNDI12.xsd + kie-dmn/kie-dmn-backend/src/test/resources/DMNDI13.xsd + kie-dmn/kie-dmn-backend/src/test/resources/DMNDI15.xsd + kie-dmn/kie-dmn-feel/src/main/resources/dmn.xsd + kie-dmn/kie-dmn-trisotech/src/test/resources/DC.xsd + kie-dmn/kie-dmn-trisotech/src/test/resources/DI.xsd + kie-dmn/kie-dmn-trisotech/src/test/resources/DMN13.xsd + kie-dmn/kie-dmn-trisotech/src/test/resources/DMNDI13.xsd + kie-dmn/kie-dmn-validation/src/main/resources/org/kie/dmn/validation/org/omg/spec/DMN/20151101/dmn.xsd + kie-dmn/kie-dmn-validation/src/main/resources/org/kie/dmn/validation/org/omg/spec/DMN/20180521/DC.xsd + kie-dmn/kie-dmn-validation/src/main/resources/org/kie/dmn/validation/org/omg/spec/DMN/20180521/DI.xsd + kie-dmn/kie-dmn-validation/src/main/resources/org/kie/dmn/validation/org/omg/spec/DMN/20180521/DMN12.xsd + kie-dmn/kie-dmn-validation/src/main/resources/org/kie/dmn/validation/org/omg/spec/DMN/20180521/DMNDI12.xsd + kie-dmn/kie-dmn-validation/src/main/resources/org/kie/dmn/validation/org/omg/spec/DMN/20191111/DC.xsd + kie-dmn/kie-dmn-validation/src/main/resources/org/kie/dmn/validation/org/omg/spec/DMN/20191111/DI.xsd + kie-dmn/kie-dmn-validation/src/main/resources/org/kie/dmn/validation/org/omg/spec/DMN/20191111/DMN13.xsd + kie-dmn/kie-dmn-validation/src/main/resources/org/kie/dmn/validation/org/omg/spec/DMN/20191111/DMNDI13.xsd + kie-dmn/kie-dmn-validation/src/main/resources/org/kie/dmn/validation/org/omg/spec/DMN/20211108/DC.xsd + kie-dmn/kie-dmn-validation/src/main/resources/org/kie/dmn/validation/org/omg/spec/DMN/20211108/DI.xsd + kie-dmn/kie-dmn-validation/src/main/resources/org/kie/dmn/validation/org/omg/spec/DMN/20211108/DMN14.xsd + kie-dmn/kie-dmn-validation/src/main/resources/org/kie/dmn/validation/org/omg/spec/DMN/20211108/DMNDI13.xsd + kie-dmn/kie-dmn-validation/src/main/resources/org/kie/dmn/validation/org/omg/spec/DMN/20230324/DC.xsd + kie-dmn/kie-dmn-validation/src/main/resources/org/kie/dmn/validation/org/omg/spec/DMN/20230324/DI.xsd + kie-dmn/kie-dmn-validation/src/main/resources/org/kie/dmn/validation/org/omg/spec/DMN/20230324/DMN15.xsd + kie-dmn/kie-dmn-validation/src/main/resources/org/kie/dmn/validation/org/omg/spec/DMN/20230324/DMNDI15.xsd + +Copyright © 2019-2021, 88solutions +Copyright © 2019-2023, BOC Products & Services AG +Copyright © 2015-2023, Camunda Services GmbH +Copyright © 2013-2023, Decision Management Solutions +Copyright © 2019-2021, Department of Veterans Affairs +Copyright © 2013-2019, Escape Velocity LLC +Copyright © 2013-2023, Fair Isaac Corporation +Copyright © 2019-2023, GfSE e.V. +Copyright © 2013-2023, International Business Machines Corporation +Copyright © 2013-2023, KU Leuven +Copyright © 2013-2019, Model Systems Limited +Copyright © 2015-2019, Oracle Incorporated +Copyright © 2019-2023, PNA Group +Copyright © 2020-2023, processCentric GmbH +Copyright © 2013-2023, Red Hat Inc +Copyright © 2013-2023, Sapiens Decision NA +Copyright © 2019-2021, Signavio GmbH +Copyright © 2019-2023, Sparx Systems Pty Ltd +Copyright © 2019-2023, Thematix Partners LLC +Copyright © 2014-2019, TIBCO Software Inc. +Copyright © 2015-2023, Trisotech +Copyright © 2015-2023, Object Management Group, Inc. + +USE OF SPECIFICATION – TERMS, CONDITIONS & NOTICES +The material in this document details an Object Management Group specification in accordance with the terms, +conditions and notices set forth below. This document does not represent a commitment to implement any portion of this +specification in any company's products. The information contained in this document is subject to change without notice. + +LICENSES +The companies listed above have granted to the Object Management Group, Inc. (OMG) a nonexclusive, royalty-free, +paid up, worldwide license to copy and distribute this document and to modify this document and distribute copies of the +modified version. Each of the copyright holders listed above has agreed that no person shall be deemed to have infringed +the copyright in the included material of any such copyright holder by reason of having used the specification set forth +herein or having conformed any computer software to the specification. +Subject to all of the terms and conditions below, the owners of the copyright in this specification hereby grant you a +fully-paid up, non-exclusive, nontransferable, perpetual, worldwide license (without the right to sublicense), to use this +specification to create and distribute software and special purpose specifications that are based upon this specification, +and to use, copy, and distribute this specification as provided under the Copyright Act; provided that: (1) both the +copyright notice identified above and this permission notice appear on any copies of this specification; (2) the use of the +specifications is for informational purposes and will not be copied or posted on any network computer or broadcast in +any media and will not be otherwise resold or transferred for commercial purposes; and (3) no modifications are made to +this specification. This limited permission automatically terminates without notice if you breach any of these terms or +conditions. Upon termination, you will destroy immediately any copies of the specifications in your possession or +control. + +PATENTS +The attention of adopters is directed to the possibility that compliance with or adoption of OMG specifications may +require use of an invention covered by patent rights. OMG shall not be responsible for identifying patents for which a +license may be required by any OMG specification, or for conducting legal inquiries into the legal validity or scope of +those patents that are brought to its attention. OMG specifications are prospective and advisory only. Prospective users +are responsible for protecting themselves against liability for infringement of patents. + +GENERAL USE RESTRICTIONS +Any unauthorized use of this specification may violate copyright laws, trademark laws, and communications regulations +and statutes. This document contains information which is protected by copyright. All Rights Reserved. No part of this +work covered by copyright herein may be reproduced or used in any form or by any means--graphic, electronic, or +mechanical, including photocopying, recording, taping, or information storage and retrieval systems--without permission +of the copyright owner. + +DISCLAIMER OF WARRANTY +WHILE THIS PUBLICATION IS BELIEVED TO BE ACCURATE, IT IS PROVIDED "AS IS" AND MAY CONTAIN +ERRORS OR MISPRINTS. THE OBJECT MANAGEMENT GROUP AND THE COMPANIES LISTED ABOVE +MAKE NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, WITH REGARD TO THIS PUBLICATION, +INCLUDING BUT NOT LIMITED TO ANY WARRANTY OF TITLE OR OWNERSHIP, IMPLIED WARRANTY +OF MERCHANTABILITY OR WARRANTY OF FITNESS FOR A PARTICULAR PURPOSE OR USE. IN NO +EVENT SHALL THE OBJECT MANAGEMENT GROUP OR ANY OF THE COMPANIES LISTED ABOVE BE +LIABLE FOR ERRORS CONTAINED HEREIN OR FOR DIRECT, INDIRECT, INCIDENTAL, SPECIAL, +CONSEQUENTIAL, RELIANCE OR COVER DAMAGES, INCLUDING LOSS OF PROFITS, REVENUE, DATA +OR USE, INCURRED BY ANY USER OR ANY THIRD PARTY IN CONNECTION WITH THE FURNISHING, +PERFORMANCE, OR USE OF THIS MATERIAL, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH +DAMAGES. +The entire risk as to the quality and performance of software developed using this specification is borne by you. This +disclaimer of warranty constitutes an essential part of the license granted to you to use this specification. + +RESTRICTED RIGHTS LEGEND +Use, duplication or disclosure by the U.S. Government is subject to the restrictions set forth in subparagraph (c) (1) (ii) of +The Rights in Technical Data and Computer Software Clause at DFARS 252.227-7013 or in subparagraph (c)(1) and (2) +of the Commercial Computer Software - Restricted Rights clauses at 48 C.F.R. 52.227-19 or as specified in 48 C.F.R. +227-7202-2 of the DoD F.A.R. Supplement and its successors, or as specified in 48 C.F.R. 12.212 of the Federal +Acquisition Regulations and its successors, as applicable. The specification copyright owners are as indicated above and +may be contacted through the Object Management Group, 9C Medway Rd, PMB 274, Milford, MA 01757, U.S.A. + +TRADEMARKS +CORBA®, CORBA logos®, FIBO®, Financial Industry Business Ontology®, FINANCIAL INSTRUMENT GLOBAL +IDENTIFIER®, IIOP®, IMM®, Model Driven Architecture®, MDA®, Object Management Group®, OMG®, OMG Logo, +SoaML®, SOAML®, SysML®, UAF®, Unified Modeling Language®, UML®, UML Cube Logo®, VSIPL®, and XMI® are +registered trademarks of the Object Management Group, Inc. +For a complete list of trademarks, see: https://www.omg.org/legal/tm_list.htm. All other products or company names +mentioned are used for identification purposes only and may be trademarks of their respective owners. + +COMPLIANCE +The copyright holders listed above acknowledge that the Object Management Group (acting itself or through its +designees) is and shall at all times be the sole entity that may authorize developers, suppliers and sellers of computer +software to use certification marks, trademarks or other special designations to indicate compliance with these materials. +Software developed under the terms of this license may claim compliance or conformance with this specification if and +only if the software compliance is of a nature fully matching the applicable compliance points as stated in the +specification. Software developed only partially matching the applicable compliance points may claim only that the +software was based on this specification, but may not claim compliance or conformance with this specification. In the +event that testing suites are implemented or approved by Object Management Group, Inc., software developed using this +specification may claim compliance or conformance with the specification only if the software satisfactorily completes +the testing suites. + + ------------------------------------------------------------------------------------ + for drools-model/drools-mvel-parser/src/main/javacc/mvel.jj + JavaParser is dual licensed under LGPL license and Apache License Version 2.0 license. We choose the Apache License Version 2.0. diff --git a/NOTICE b/NOTICE index 626797234ff..2b750e3e963 100644 --- a/NOTICE +++ b/NOTICE @@ -5,19 +5,9 @@ This product includes software developed at The Apache Software Foundation (http://www.apache.org/). The Initial Developer of some parts of the framework, which are copied from, derived from, or -inspired by KIE (Knowledge Is Everthing) group, is Red Hat, Inc (https://www.redhat.com/). +inspired by KIE (Knowledge Is Everything) group, is Red Hat, Inc (https://www.redhat.com/). Copyright Red Hat, Inc. and/or its affiliates.. All Rights Reserved. -This product also includes the following third-party components: - -* lunr 2.3.9 - Downloaded from: https://lunrjs.com/ - License: MIT - -* search-ui - Downloaded from: https://gitlab.com/antora/antora-lunr-extension - License: Mozilla Public License 2.0 - -* antora ui-bundle - Downloaded from: https://github.com/stephengold/antora-ui-bundle - License: Mozilla Public License 2.0 +The Initial Developer of the kie-dmn/kie-dmn-trisotech/src/main/resources/org/kie/dmn/trisotech/validation/extension/TrisotechDMN13.xsd +is Trisotech Inc (https://www.trisotech.com/). +Copyright 2015 - 2024 Trisotech Inc. All Rights Reserved. diff --git a/drools-decisiontables/src/main/java/org/drools/decisiontable/parser/csv/CsvLineParser.java b/drools-decisiontables/src/main/java/org/drools/decisiontable/parser/csv/CsvLineParser.java index a048251edfe..19aa1264514 100644 --- a/drools-decisiontables/src/main/java/org/drools/decisiontable/parser/csv/CsvLineParser.java +++ b/drools-decisiontables/src/main/java/org/drools/decisiontable/parser/csv/CsvLineParser.java @@ -1,21 +1,3 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ package org.drools.decisiontable.parser.csv; import java.util.ArrayList; diff --git a/drools-examples/src/main/resources/org/drools/examples/troubleticketWithDSL/TroubleTicketWithDSL.dslr b/drools-examples/src/main/resources/org/drools/examples/troubleticketWithDSL/TroubleTicketWithDSL.dslr index 0724162fb72..3d3a6d66dec 100644 --- a/drools-examples/src/main/resources/org/drools/examples/troubleticketWithDSL/TroubleTicketWithDSL.dslr +++ b/drools-examples/src/main/resources/org/drools/examples/troubleticketWithDSL/TroubleTicketWithDSL.dslr @@ -1,3 +1,22 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + package org.drools.examples.troubleticket expander ticketing.dsl diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/lang/ErrorsParserTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/lang/ErrorsParserTest.java index 535d8a1105e..76a2c99e3ae 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/lang/ErrorsParserTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/lang/ErrorsParserTest.java @@ -48,14 +48,14 @@ public void testExpanderErrorsAfterExpansion() throws Exception { String name = "expander_post_errors.dslr"; Expander expander = new DefaultExpander(); String expanded = expander.expand( this.getReader( name ) ); - + DRLParser parser = parse( name, expanded ); parser.compilationUnit(); assertThat(parser.hasErrors()).isTrue(); assertThat(parser.getErrors().size()).isEqualTo(1); DroolsParserException err = parser.getErrors().get(0); - assertThat(err.getLineNumber()).isEqualTo(6); + assertThat(err.getLineNumber()).isEqualTo(7); } @Test diff --git a/drools-test-coverage/test-compiler-integration/src/test/resources/org/drools/mvel/compiler/lang/dsl/test_expansion.dslr b/drools-test-coverage/test-compiler-integration/src/test/resources/org/drools/mvel/compiler/lang/dsl/test_expansion.dslr index a2a7d74a9d6..bea217a6aa3 100755 --- a/drools-test-coverage/test-compiler-integration/src/test/resources/org/drools/mvel/compiler/lang/dsl/test_expansion.dslr +++ b/drools-test-coverage/test-compiler-integration/src/test/resources/org/drools/mvel/compiler/lang/dsl/test_expansion.dslr @@ -1,4 +1,22 @@ -# Example DRL with expansion +/** + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +# Example DRL with expansion # (ie "domain specific language") # declare expanders for domain specific and natural language extensions diff --git a/drools-test-coverage/test-compiler-integration/src/test/resources/org/drools/mvel/compiler/lang/expander_line_errors.dslr b/drools-test-coverage/test-compiler-integration/src/test/resources/org/drools/mvel/compiler/lang/expander_line_errors.dslr index 23eb4caf3fd..d6f5e7ddf10 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/resources/org/drools/mvel/compiler/lang/expander_line_errors.dslr +++ b/drools-test-coverage/test-compiler-integration/src/test/resources/org/drools/mvel/compiler/lang/expander_line_errors.dslr @@ -1,3 +1,22 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + #this will show error line numbers due to failure to expand package expanderFoo diff --git a/drools-test-coverage/test-compiler-integration/src/test/resources/org/drools/mvel/compiler/lang/expander_multiple_constraints.dslr b/drools-test-coverage/test-compiler-integration/src/test/resources/org/drools/mvel/compiler/lang/expander_multiple_constraints.dslr index cfb3bdf78b9..3d520dd6eef 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/resources/org/drools/mvel/compiler/lang/expander_multiple_constraints.dslr +++ b/drools-test-coverage/test-compiler-integration/src/test/resources/org/drools/mvel/compiler/lang/expander_multiple_constraints.dslr @@ -1,3 +1,22 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + //created on: 13/04/2006 package mydsl diff --git a/drools-test-coverage/test-compiler-integration/src/test/resources/org/drools/mvel/compiler/lang/expander_multiple_constraints_flush.dslr b/drools-test-coverage/test-compiler-integration/src/test/resources/org/drools/mvel/compiler/lang/expander_multiple_constraints_flush.dslr index f352d9196fa..329f3b1addc 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/resources/org/drools/mvel/compiler/lang/expander_multiple_constraints_flush.dslr +++ b/drools-test-coverage/test-compiler-integration/src/test/resources/org/drools/mvel/compiler/lang/expander_multiple_constraints_flush.dslr @@ -1,3 +1,21 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ //created on: 13/04/2006 package mydsl diff --git a/drools-test-coverage/test-compiler-integration/src/test/resources/org/drools/mvel/compiler/lang/expander_post_errors.dslr b/drools-test-coverage/test-compiler-integration/src/test/resources/org/drools/mvel/compiler/lang/expander_post_errors.dslr index e57ce42eccc..ccc97d2d9d5 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/resources/org/drools/mvel/compiler/lang/expander_post_errors.dslr +++ b/drools-test-coverage/test-compiler-integration/src/test/resources/org/drools/mvel/compiler/lang/expander_post_errors.dslr @@ -1,3 +1,21 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ //this will show error line numbers post expansion expander foo.dsl diff --git a/drools-test-coverage/test-compiler-integration/src/test/resources/org/drools/mvel/compiler/lang/expander_spread_lines.dslr b/drools-test-coverage/test-compiler-integration/src/test/resources/org/drools/mvel/compiler/lang/expander_spread_lines.dslr index 02ae6b5bcca..4e2ccc15ac1 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/resources/org/drools/mvel/compiler/lang/expander_spread_lines.dslr +++ b/drools-test-coverage/test-compiler-integration/src/test/resources/org/drools/mvel/compiler/lang/expander_spread_lines.dslr @@ -1,3 +1,21 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ //created on: 13/04/2006 package mydsl diff --git a/drools-test-coverage/test-compiler-integration/src/test/resources/org/drools/mvel/integrationtests/rule_with_expander_dsl.dslr b/drools-test-coverage/test-compiler-integration/src/test/resources/org/drools/mvel/integrationtests/rule_with_expander_dsl.dslr index d38e5dfcd19..6045cc2a5a2 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/resources/org/drools/mvel/integrationtests/rule_with_expander_dsl.dslr +++ b/drools-test-coverage/test-compiler-integration/src/test/resources/org/drools/mvel/integrationtests/rule_with_expander_dsl.dslr @@ -1,3 +1,21 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ package test // must be in the following order. diff --git a/drools-test-coverage/test-compiler-integration/src/test/resources/org/drools/mvel/integrationtests/rule_with_expander_dsl_more.dslr b/drools-test-coverage/test-compiler-integration/src/test/resources/org/drools/mvel/integrationtests/rule_with_expander_dsl_more.dslr index 6e58f5c977a..be3ef2d8bdd 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/resources/org/drools/mvel/integrationtests/rule_with_expander_dsl_more.dslr +++ b/drools-test-coverage/test-compiler-integration/src/test/resources/org/drools/mvel/integrationtests/rule_with_expander_dsl_more.dslr @@ -1,3 +1,21 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ package test // must be in the following order. diff --git a/drools-test-coverage/test-compiler-integration/src/test/resources/org/drools/mvel/integrationtests/rule_with_expander_multiline.dslr b/drools-test-coverage/test-compiler-integration/src/test/resources/org/drools/mvel/integrationtests/rule_with_expander_multiline.dslr index 287f88821f0..3e76a7dcd07 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/resources/org/drools/mvel/integrationtests/rule_with_expander_multiline.dslr +++ b/drools-test-coverage/test-compiler-integration/src/test/resources/org/drools/mvel/integrationtests/rule_with_expander_multiline.dslr @@ -1,3 +1,21 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ Add 2 percent to all Red cars diff --git a/drools-test-coverage/test-compiler-integration/src/test/resources/org/drools/mvel/integrationtests/test_dslWithIndividualConstraints.dslr b/drools-test-coverage/test-compiler-integration/src/test/resources/org/drools/mvel/integrationtests/test_dslWithIndividualConstraints.dslr index f0248a49998..f42217a3838 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/resources/org/drools/mvel/integrationtests/test_dslWithIndividualConstraints.dslr +++ b/drools-test-coverage/test-compiler-integration/src/test/resources/org/drools/mvel/integrationtests/test_dslWithIndividualConstraints.dslr @@ -1,3 +1,21 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ package org.drools.mvel.compiler global java.util.List results diff --git a/kie-dmn/kie-dmn-backend/src/test/resources/DC.xsd b/kie-dmn/kie-dmn-backend/src/test/resources/DC.xsd index 634ba13a3ef..ee7d40dd358 100644 --- a/kie-dmn/kie-dmn-backend/src/test/resources/DC.xsd +++ b/kie-dmn/kie-dmn-backend/src/test/resources/DC.xsd @@ -1,4 +1,5 @@ + + + diff --git a/kie-dmn/kie-dmn-backend/src/test/resources/DMN12.xsd b/kie-dmn/kie-dmn-backend/src/test/resources/DMN12.xsd index 47ade4cedde..0787357fcb0 100644 --- a/kie-dmn/kie-dmn-backend/src/test/resources/DMN12.xsd +++ b/kie-dmn/kie-dmn-backend/src/test/resources/DMN12.xsd @@ -1,4 +1,5 @@ + + + + diff --git a/kie-dmn/kie-dmn-backend/src/test/resources/DMNDI12.xsd b/kie-dmn/kie-dmn-backend/src/test/resources/DMNDI12.xsd index c3776064d82..484af60b2fd 100644 --- a/kie-dmn/kie-dmn-backend/src/test/resources/DMNDI12.xsd +++ b/kie-dmn/kie-dmn-backend/src/test/resources/DMNDI12.xsd @@ -1,4 +1,5 @@ + + + diff --git a/kie-dmn/kie-dmn-feel/src/main/resources/dmn.xsd b/kie-dmn/kie-dmn-feel/src/main/resources/dmn.xsd index b2dc0d5aade..cf7800220fc 100644 --- a/kie-dmn/kie-dmn-feel/src/main/resources/dmn.xsd +++ b/kie-dmn/kie-dmn-feel/src/main/resources/dmn.xsd @@ -1,23 +1,4 @@  - - diff --git a/kie-dmn/kie-dmn-trisotech/src/test/resources/DC.xsd b/kie-dmn/kie-dmn-trisotech/src/test/resources/DC.xsd index d83ec42ffd0..634ba13a3ef 100644 --- a/kie-dmn/kie-dmn-trisotech/src/test/resources/DC.xsd +++ b/kie-dmn/kie-dmn-trisotech/src/test/resources/DC.xsd @@ -1,23 +1,4 @@ - - - - - - - - - - diff --git a/kie-dmn/kie-dmn-validation/src/main/resources/org/kie/dmn/validation/org/omg/spec/DMN/20180521/DC.xsd b/kie-dmn/kie-dmn-validation/src/main/resources/org/kie/dmn/validation/org/omg/spec/DMN/20180521/DC.xsd index d83ec42ffd0..634ba13a3ef 100644 --- a/kie-dmn/kie-dmn-validation/src/main/resources/org/kie/dmn/validation/org/omg/spec/DMN/20180521/DC.xsd +++ b/kie-dmn/kie-dmn-validation/src/main/resources/org/kie/dmn/validation/org/omg/spec/DMN/20180521/DC.xsd @@ -1,23 +1,4 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/kie-dmn/kie-dmn-validation/src/main/resources/org/kie/dmn/validation/org/omg/spec/DMN/20230324/DMNDI15.xsd b/kie-dmn/kie-dmn-validation/src/main/resources/org/kie/dmn/validation/org/omg/spec/DMN/20230324/DMNDI15.xsd index 1c1d75a32b1..87e84f9cf89 100644 --- a/kie-dmn/kie-dmn-validation/src/main/resources/org/kie/dmn/validation/org/omg/spec/DMN/20230324/DMNDI15.xsd +++ b/kie-dmn/kie-dmn-validation/src/main/resources/org/kie/dmn/validation/org/omg/spec/DMN/20230324/DMNDI15.xsd @@ -1,23 +1,4 @@ - - diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/PMMLCompiler.uml b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/PMMLCompiler.uml index 9a2bea63492..b1959154a04 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/PMMLCompiler.uml +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/PMMLCompiler.uml @@ -1,4 +1,24 @@ + JAVA org.kie.pmml.compiler.executor.PMMLCompilerExecutorImpl diff --git a/pom.xml b/pom.xml index f188b0ed977..90fcc8ae934 100644 --- a/pom.xml +++ b/pom.xml @@ -115,7 +115,6 @@ 2024-07-16T16:09:06Z 3.4.1 - 0.16.1 @@ -129,48 +128,6 @@ ${project.build.outputTimestamp} - - org.apache.rat - apache-rat-plugin - ${version.apache-rat-plugin} - - - .git-blame-ignore-revs - **/dependency-reduced-pom.xml - **/lunr-2.3.9.min.js - **/search-ui.js - **/branch.yaml - **/main.yaml - **/mvel.jj - **/*.csv - **/*.sdo - **/*.sdt - **/TestingEmptyFile.txt - **/*.test_json - **/*.pmml_json - **/*.drl_json - **/*.dslr - **/DMN*.xsd - **/DC.xsd - **/DI.xsd - **/KiePMML*.txt - **/TargetValueFactoryTest_01.txt - **/TargetFieldFactoryTest_01.txt - **/*.uml - **/drools-model - **/testFile.txt - **/simple.dot - **/*.log - **/*.lst - **/checkstyle-cachefile - **/test*.txt - **/test*.yml - **/drl.ftl - **/goal.txt - **/adult.txt - - -