From 0b34f1969ec5a94f5ad2f5ebaf0e5a5fa440901c Mon Sep 17 00:00:00 2001 From: Toshiya Kobayashi Date: Fri, 13 Dec 2024 18:04:43 +0900 Subject: [PATCH] [incubator-kie-drools-6163] Clean up leftover of change-set support (#6188) * [incubator-kie-drools-6163] Clean up leftover of change-set support * remove .rat-excludes entries --- .rat-excludes | 6 -- .../org/drools/core/xml/test-change-set.xml | 33 -------- .../decisiontable/changeSetTestCSV.drl.csv | 13 ---- .../drools/decisiontable/changeSetTestCSV.xml | 30 -------- .../decisiontable/changeSetTestCSV2.drl.csv | 12 --- .../drools/decisiontable/changeset1Test.drl | 29 ------- .../drools/decisiontable/changeset1Test.xml | 33 -------- .../drools/decisiontable/changeset2Test.drl | 29 ------- .../decisiontable/multipleSheets.drl.xls | Bin 24064 -> 0 bytes .../decisiontable/multipleSheetsChangeSet.xml | 33 -------- .../scannerChangeSetTestCSV.drl.csv | 13 ---- .../decisiontable/scannerChangeSetTestCSV.xml | 30 -------- .../compiler/xml/changeset/changeset1Test.drl | 28 ------- .../compiler/xml/changeset/changeset1Test.xml | 30 -------- .../compiler/xml/changeset/changeset2Test.drl | 28 ------- .../src/main/resources/change-set-1.0.0.xsd | 71 ------------------ kie-api/src/main/resources/change-set.xsd | 67 ----------------- .../builder/CompositeKnowledgeBuilder.java | 2 +- .../internal/builder/KnowledgeBuilder.java | 30 +------- 19 files changed, 2 insertions(+), 515 deletions(-) delete mode 100644 drools-core/src/test/resources/org/drools/core/xml/test-change-set.xml delete mode 100644 drools-decisiontables/src/test/resources/org/drools/decisiontable/changeSetTestCSV.drl.csv delete mode 100644 drools-decisiontables/src/test/resources/org/drools/decisiontable/changeSetTestCSV.xml delete mode 100644 drools-decisiontables/src/test/resources/org/drools/decisiontable/changeSetTestCSV2.drl.csv delete mode 100644 drools-decisiontables/src/test/resources/org/drools/decisiontable/changeset1Test.drl delete mode 100644 drools-decisiontables/src/test/resources/org/drools/decisiontable/changeset1Test.xml delete mode 100644 drools-decisiontables/src/test/resources/org/drools/decisiontable/changeset2Test.drl delete mode 100644 drools-decisiontables/src/test/resources/org/drools/decisiontable/multipleSheets.drl.xls delete mode 100644 drools-decisiontables/src/test/resources/org/drools/decisiontable/multipleSheetsChangeSet.xml delete mode 100644 drools-decisiontables/src/test/resources/org/drools/decisiontable/scannerChangeSetTestCSV.drl.csv delete mode 100644 drools-decisiontables/src/test/resources/org/drools/decisiontable/scannerChangeSetTestCSV.xml delete mode 100644 drools-test-coverage/test-compiler-integration/src/test/resources/org/drools/mvel/compiler/compiler/xml/changeset/changeset1Test.drl delete mode 100644 drools-test-coverage/test-compiler-integration/src/test/resources/org/drools/mvel/compiler/compiler/xml/changeset/changeset1Test.xml delete mode 100644 drools-test-coverage/test-compiler-integration/src/test/resources/org/drools/mvel/compiler/compiler/xml/changeset/changeset2Test.drl delete mode 100644 kie-api/src/main/resources/change-set-1.0.0.xsd delete mode 100644 kie-api/src/main/resources/change-set.xsd diff --git a/.rat-excludes b/.rat-excludes index 67155c8d5d2..124cf995ed0 100644 --- a/.rat-excludes +++ b/.rat-excludes @@ -12,16 +12,10 @@ ComplexWorkbook.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 diff --git a/drools-core/src/test/resources/org/drools/core/xml/test-change-set.xml b/drools-core/src/test/resources/org/drools/core/xml/test-change-set.xml deleted file mode 100644 index b16fd5533c4..00000000000 --- a/drools-core/src/test/resources/org/drools/core/xml/test-change-set.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - - - - - diff --git a/drools-decisiontables/src/test/resources/org/drools/decisiontable/changeSetTestCSV.drl.csv b/drools-decisiontables/src/test/resources/org/drools/decisiontable/changeSetTestCSV.drl.csv deleted file mode 100644 index cef622f4cd5..00000000000 --- a/drools-decisiontables/src/test/resources/org/drools/decisiontable/changeSetTestCSV.drl.csv +++ /dev/null @@ -1,13 +0,0 @@ -, -"RuleSet","org.drools.decisiontable" -"Import","org.drools.decisiontable.Person" -"Notes", -, -"RuleTable Age change", -"CONDITION","ACTION" -"person:Person","person" -"age == $param","setAge($param)" -"age","new Age" -0,1 -1,2 -2,3 diff --git a/drools-decisiontables/src/test/resources/org/drools/decisiontable/changeSetTestCSV.xml b/drools-decisiontables/src/test/resources/org/drools/decisiontable/changeSetTestCSV.xml deleted file mode 100644 index 564c5f98bd7..00000000000 --- a/drools-decisiontables/src/test/resources/org/drools/decisiontable/changeSetTestCSV.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - - diff --git a/drools-decisiontables/src/test/resources/org/drools/decisiontable/changeSetTestCSV2.drl.csv b/drools-decisiontables/src/test/resources/org/drools/decisiontable/changeSetTestCSV2.drl.csv deleted file mode 100644 index 8008cef8f5c..00000000000 --- a/drools-decisiontables/src/test/resources/org/drools/decisiontable/changeSetTestCSV2.drl.csv +++ /dev/null @@ -1,12 +0,0 @@ -, -"RuleSet","org.drools.decisiontable" -"Import","org.drools.decisiontable.Person" -"Notes", -, -"RuleTable Age change", -"CONDITION","ACTION" -"person:Person","person" -"age == $param","setAge($param)" -"age","new Age" -0,1 -1,2 diff --git a/drools-decisiontables/src/test/resources/org/drools/decisiontable/changeset1Test.drl b/drools-decisiontables/src/test/resources/org/drools/decisiontable/changeset1Test.drl deleted file mode 100644 index 214d04f7fc1..00000000000 --- a/drools-decisiontables/src/test/resources/org/drools/decisiontable/changeset1Test.drl +++ /dev/null @@ -1,29 +0,0 @@ -/** - * 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.kie.test - -global java.util.List list; - -rule "rule1" - salience 10 -when -then - list.add( "rule1" ); -end diff --git a/drools-decisiontables/src/test/resources/org/drools/decisiontable/changeset1Test.xml b/drools-decisiontables/src/test/resources/org/drools/decisiontable/changeset1Test.xml deleted file mode 100644 index 549cb25cce5..00000000000 --- a/drools-decisiontables/src/test/resources/org/drools/decisiontable/changeset1Test.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - - - - - diff --git a/drools-decisiontables/src/test/resources/org/drools/decisiontable/changeset2Test.drl b/drools-decisiontables/src/test/resources/org/drools/decisiontable/changeset2Test.drl deleted file mode 100644 index 512277ab1b1..00000000000 --- a/drools-decisiontables/src/test/resources/org/drools/decisiontable/changeset2Test.drl +++ /dev/null @@ -1,29 +0,0 @@ -/** - * 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.kie.test - -global java.util.List list; - -rule "rule2" - salience 5 -when -then - list.add( "rule2" ); -end diff --git a/drools-decisiontables/src/test/resources/org/drools/decisiontable/multipleSheets.drl.xls b/drools-decisiontables/src/test/resources/org/drools/decisiontable/multipleSheets.drl.xls deleted file mode 100644 index 25c7f4691184fbdafada063db80a1afa3163008d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 24064 zcmeHPeQX@Zb)P*RspFBNNJ@-iM^Z*-+4>+wSydZ5vTTW#WQU1F$`YNAHc7MO?eR|9 zyQOZIq8X?y?ZnL=bg$L->dyrJtX%ID{exl$l)fEhxF(%Pf;GP^*Nj|yaJAH*OPzlf z$Zlw+zeA~|U;7HHp+dVgf*DXywsKW07X_|f?gsTpUArCD1lr7FCKhqu4Nb}XPW3E1 zff&ypR)2(yl*tF}Yf!&{x{mUdR%5u&;m)~Dd?jFvYDiC)Rm1S6Td@Y2R^R)m2hAvq zI2+~H*4~utR*!Rqx%cqc;o~DmHYGdMA9LgmT$DBBarM(Bjs8X9oF*Lk2L9Ue;AEZP ziIr~#C)P&guV47%;HhT!!VvL!(C}d~4&UAcKGX!hqY1pTA-oeZ(TM-;A{*M6A3~C$ z)4*YS(5$!wu9eysf>mvKz>hS6yCFRJ+iNIqMkZ0-9T-R@Q%RLfZLEWzy{`_gK)>+w z)_VM%p#MG#c;2jsr=xzk1APYnt}f!Qz|Y>-814?-*Q9(MyuvrPFT@k;*I6;(D*dX^ zKl2Xoke?MgWB9A>_V$5iz;F6hg-7(%!eQ%ux)FZ>KO2=d^cy_bdsN^tJTbVT6LNC4 zKjg!=S6BH=_+|_Ig!%gi>+0eC4dAe4EBFTmPnV1%@HC_!<@bf{R`^Ca$yD)F;M9SH zhkUDp?*N{V4-ZQ zW6$-bx-D@R;9C%}gdU%DofA%g?bivf=;+B=zff{~U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ty0i7>RQ6Y?vDB3wrK?cY%tZ045(ghanzFl8HEw}tJ~Zdh*r$*)&JWbJTY o_29nBUs5<|JGer6Zhsg3=Q|(j;;R*|l>fEg-@O_%{9oGtU+W`>GXMYp diff --git a/drools-decisiontables/src/test/resources/org/drools/decisiontable/multipleSheetsChangeSet.xml b/drools-decisiontables/src/test/resources/org/drools/decisiontable/multipleSheetsChangeSet.xml deleted file mode 100644 index 8b0b87fc0a0..00000000000 --- a/drools-decisiontables/src/test/resources/org/drools/decisiontable/multipleSheetsChangeSet.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - - - - - diff --git a/drools-decisiontables/src/test/resources/org/drools/decisiontable/scannerChangeSetTestCSV.drl.csv b/drools-decisiontables/src/test/resources/org/drools/decisiontable/scannerChangeSetTestCSV.drl.csv deleted file mode 100644 index cef622f4cd5..00000000000 --- a/drools-decisiontables/src/test/resources/org/drools/decisiontable/scannerChangeSetTestCSV.drl.csv +++ /dev/null @@ -1,13 +0,0 @@ -, -"RuleSet","org.drools.decisiontable" -"Import","org.drools.decisiontable.Person" -"Notes", -, -"RuleTable Age change", -"CONDITION","ACTION" -"person:Person","person" -"age == $param","setAge($param)" -"age","new Age" -0,1 -1,2 -2,3 diff --git a/drools-decisiontables/src/test/resources/org/drools/decisiontable/scannerChangeSetTestCSV.xml b/drools-decisiontables/src/test/resources/org/drools/decisiontable/scannerChangeSetTestCSV.xml deleted file mode 100644 index cb638d57c97..00000000000 --- a/drools-decisiontables/src/test/resources/org/drools/decisiontable/scannerChangeSetTestCSV.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - - diff --git a/drools-test-coverage/test-compiler-integration/src/test/resources/org/drools/mvel/compiler/compiler/xml/changeset/changeset1Test.drl b/drools-test-coverage/test-compiler-integration/src/test/resources/org/drools/mvel/compiler/compiler/xml/changeset/changeset1Test.drl deleted file mode 100644 index dfa480c6b68..00000000000 --- a/drools-test-coverage/test-compiler-integration/src/test/resources/org/drools/mvel/compiler/compiler/xml/changeset/changeset1Test.drl +++ /dev/null @@ -1,28 +0,0 @@ -/** - * 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.compiler.test - -global java.util.List list; - -rule "rule1" -when -then - list.add( "rule1" ); -end \ No newline at end of file diff --git a/drools-test-coverage/test-compiler-integration/src/test/resources/org/drools/mvel/compiler/compiler/xml/changeset/changeset1Test.xml b/drools-test-coverage/test-compiler-integration/src/test/resources/org/drools/mvel/compiler/compiler/xml/changeset/changeset1Test.xml deleted file mode 100644 index 3598ab25b0e..00000000000 --- a/drools-test-coverage/test-compiler-integration/src/test/resources/org/drools/mvel/compiler/compiler/xml/changeset/changeset1Test.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - - diff --git a/drools-test-coverage/test-compiler-integration/src/test/resources/org/drools/mvel/compiler/compiler/xml/changeset/changeset2Test.drl b/drools-test-coverage/test-compiler-integration/src/test/resources/org/drools/mvel/compiler/compiler/xml/changeset/changeset2Test.drl deleted file mode 100644 index b15b4e58e1a..00000000000 --- a/drools-test-coverage/test-compiler-integration/src/test/resources/org/drools/mvel/compiler/compiler/xml/changeset/changeset2Test.drl +++ /dev/null @@ -1,28 +0,0 @@ -/** - * 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.compiler.test - -global java.util.List list; - -rule "rule2" -when -then - list.add( "rule2" ); -end \ No newline at end of file diff --git a/kie-api/src/main/resources/change-set-1.0.0.xsd b/kie-api/src/main/resources/change-set-1.0.0.xsd deleted file mode 100644 index 87d6f7e747d..00000000000 --- a/kie-api/src/main/resources/change-set-1.0.0.xsd +++ /dev/null @@ -1,71 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/kie-api/src/main/resources/change-set.xsd b/kie-api/src/main/resources/change-set.xsd deleted file mode 100644 index c58579bae6e..00000000000 --- a/kie-api/src/main/resources/change-set.xsd +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/kie-internal/src/main/java/org/kie/internal/builder/CompositeKnowledgeBuilder.java b/kie-internal/src/main/java/org/kie/internal/builder/CompositeKnowledgeBuilder.java index ee7e28a9e51..911f836c1a6 100644 --- a/kie-internal/src/main/java/org/kie/internal/builder/CompositeKnowledgeBuilder.java +++ b/kie-internal/src/main/java/org/kie/internal/builder/CompositeKnowledgeBuilder.java @@ -56,7 +56,7 @@ public interface CompositeKnowledgeBuilder { /** * Add a resource of the given ResourceType, using the provided ResourceConfiguration. * Resources can be created by calling any of the "newX" factory methods of - * ResourceFactory. The kind of resource (DRL, XDRL, DSL,... CHANGE_SET) must be + * ResourceFactory. The kind of resource (DRL, XDRL, DSL,... ) must be * indicated by the second argument. * * @param resource the Resource to add diff --git a/kie-internal/src/main/java/org/kie/internal/builder/KnowledgeBuilder.java b/kie-internal/src/main/java/org/kie/internal/builder/KnowledgeBuilder.java index 315e5eb2bca..542079f9811 100644 --- a/kie-internal/src/main/java/org/kie/internal/builder/KnowledgeBuilder.java +++ b/kie-internal/src/main/java/org/kie/internal/builder/KnowledgeBuilder.java @@ -95,34 +95,6 @@ * log.exception( kbuilder.getErrors().toString() ) * } * - * - *

- * The KnowledgeBuilder can also be built from a configuration using the XML change-set format and - * the ResourceType.CHANGE_SET value. While change-set supports add, remove, and modify as elements. - * KnowledgeBuilder will only process add. If the resource element provided points to a directory, all - * files found in that directory will be added. Currently the knowledge type is not derived from the - * file extension and must be explicitly set in the XML for the resource. It is expected that all - * resources in a directory given resource are of the specified type. - *

- *
- * <change-set xmlns='http://drools.org/drools-5.0/change-set'
- *             xmlns:xs='http://www.w3.org/2001/XMLSchema-instance'
- *             xs:schemaLocation='http://drools.org/drools-5.0/change-set http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-api/src/main/resources/change-set-1.0.0.xsd' >
- *  <add>
- *       <resource source='http:org/domain/myrules.drl' type='DRL' />
- *       <resource source='classpath:data/IntegrationExampleTest.xls' type="DTABLE">
- *           <decisiontable-conf input-type="XLS" worksheet-name="Tables_2" />
- *       </resource>
- *       <resource source='file:org/drools/decisiontable/myflow.drf' type='DRF' />
- *   </add>
- * </change-set>
- * 
- * - *
- * KnowledgeAgent kagent = KnowledgeAgentFactory.newKnowledgeAgent( "test agent", // the name of the agent
- *                                                                  kaconf );
- * kagent.applyChangeSet( ResourceFactory.newUrlResource( url ) ); // resource to the change-set xml for the resources to add
- * 
*/ public interface KnowledgeBuilder extends @@ -142,7 +114,7 @@ void add(Resource resource, /** * Add a resource of the given ResourceType, using the provided ResourceConfiguration. * Resources can be created by calling any of the "newX" factory methods of - * ResourceFactory. The kind of resource (DRL, XDRL, DSL,... CHANGE_SET) must be + * ResourceFactory. The kind of resource (DRL, XDRL, DSL,... ) must be * indicated by the second argument. * * @param resource the Resource to add