This is an automated email from the ASF dual-hosted git repository.

tkobayas pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-kie-drools.git


The following commit(s) were added to refs/heads/main by this push:
     new 0b34f1969e [incubator-kie-drools-6163] Clean up leftover of change-set 
support (#6188)
0b34f1969e is described below

commit 0b34f1969ec5a94f5ad2f5ebaf0e5a5fa440901c
Author: Toshiya Kobayashi <[email protected]>
AuthorDate: Fri Dec 13 18:04:43 2024 +0900

    [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 ----------
 .../drools/decisiontable/changeSetTestCSV.drl.csv  |  13 ----
 .../org/drools/decisiontable/changeSetTestCSV.xml  |  30 ---------
 .../drools/decisiontable/changeSetTestCSV2.drl.csv |  12 ----
 .../org/drools/decisiontable/changeset1Test.drl    |  29 ---------
 .../org/drools/decisiontable/changeset1Test.xml    |  33 ----------
 .../org/drools/decisiontable/changeset2Test.drl    |  29 ---------
 .../drools/decisiontable/multipleSheets.drl.xls    | Bin 24064 -> 0 bytes
 .../decisiontable/multipleSheetsChangeSet.xml      |  33 ----------
 .../decisiontable/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 --------
 kie-api/src/main/resources/change-set-1.0.0.xsd    |  71 ---------------------
 kie-api/src/main/resources/change-set.xsd          |  67 -------------------
 .../builder/CompositeKnowledgeBuilder.java         |   2 +-
 .../org/kie/internal/builder/KnowledgeBuilder.java |  30 +--------
 19 files changed, 2 insertions(+), 515 deletions(-)

diff --git a/.rat-excludes b/.rat-excludes
index 67155c8d5d..124cf995ed 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 b16fd5533c..0000000000
--- a/drools-core/src/test/resources/org/drools/core/xml/test-change-set.xml
+++ /dev/null
@@ -1,33 +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.
-
--->
-<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 
change-set-1.0.0.xsd' >
-
-    <add>
-      <resource name="resource1"  
source='classpath:data/IntegrationExampleTest.xls' type="DTABLE">
-          <decisiontable-conf input-type="XLS" worksheet-name="Tables_2" />
-      </resource>
-      <resource name="secureResource" description="some useful description" 
basic-authentication="enabled" username="someUser" password="somePassword" 
type="DRL" source="http://someHost:1234/someDRLResource.drl"/>
-      <resource description="another description" type="DRL" 
source="http://someHost:1234/someOtherDRLResource.drl"/>
-      <resource type="DRL" 
source="http://someHost:1234/someOtherDRLResource2.drl"/>
-    </add>
-</change-set>
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 cef622f4cd..0000000000
--- 
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 564c5f98bd..0000000000
--- 
a/drools-decisiontables/src/test/resources/org/drools/decisiontable/changeSetTestCSV.xml
+++ /dev/null
@@ -1,30 +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.
-
--->
-<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 
change-set-1.0.0.xsd'>
-
-  <add>
-    <resource 
source="classpath:org/drools/decisiontable/changeSetTestCSV.drl.csv" 
type="DTABLE">
-      <decisiontable-conf input-type="CSV" worksheet-name="Tables"/>
-    </resource>
-  </add>
-</change-set>
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 8008cef8f5..0000000000
--- 
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 214d04f7fc..0000000000
--- 
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 549cb25cce..0000000000
--- 
a/drools-decisiontables/src/test/resources/org/drools/decisiontable/changeset1Test.xml
+++ /dev/null
@@ -1,33 +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.
-
--->
-<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 
change-set-1.0.0.xsd' >
-            
-    <add>
-        
-      <resource  
source='classpath:org/drools/decisiontable/changeset1Test.drl' type='DRL' />
-      <resource source='classpath:data/IntegrationExampleTest.drl.xls' 
type="DTABLE">
-          <decisiontable-conf input-type="XLS" worksheet-name="Tables_2" />
-      </resource>
-      <resource source='classpath:org/drools/decisiontable/changeset2Test.drl' 
type='DRL' />
-    </add>
-</change-set>
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 512277ab1b..0000000000
--- 
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 25c7f46911..0000000000
Binary files 
a/drools-decisiontables/src/test/resources/org/drools/decisiontable/multipleSheets.drl.xls
 and /dev/null differ
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 8b0b87fc0a..0000000000
--- 
a/drools-decisiontables/src/test/resources/org/drools/decisiontable/multipleSheetsChangeSet.xml
+++ /dev/null
@@ -1,33 +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.
-
--->
-<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 
change-set-1.0.0.xsd' >
-            
-    <add>
-      <resource 
source="classpath:org/drools/decisiontable/multipleSheets.drl.xls" 
type="DTABLE">
-          <decisiontable-conf input-type="XLS" worksheet-name="Sheet1" />
-      </resource>
-      <resource 
source="classpath:org/drools/decisiontable/multipleSheets.drl.xls" 
type="DTABLE">
-        <decisiontable-conf input-type="XLS" worksheet-name="The 
&quot;extra&quot; sheet" />
-      </resource>
-    </add>
-</change-set>
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 cef622f4cd..0000000000
--- 
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 cb638d57c9..0000000000
--- 
a/drools-decisiontables/src/test/resources/org/drools/decisiontable/scannerChangeSetTestCSV.xml
+++ /dev/null
@@ -1,30 +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.
-
--->
-<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 
change-set-1.0.0.xsd'>
-
-  <add>
-    <resource source="classpath:scannerChangeSetTestCSV.csv" type="DTABLE">
-      <decisiontable-conf input-type="CSV" worksheet-name="Tables"/>
-    </resource>
-  </add>
-</change-set>
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 dfa480c6b6..0000000000
--- 
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 3598ab25b0..0000000000
--- 
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 @@
-<!--
-
-    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.
-
--->
-<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 
change-set-1.0.0.xsd' >
-            
-    <add >
-      <resource 
source='classpath:org/drools/mvel/compiler/compiler/xml/changeset/changeset1Test.drl'
 type='DRL' />
-      <resource 
source='classpath:org/drools/mvel/compiler/compiler/xml/changeset/changeset2Test.drl'
 type='DRL' />
-    </add>
-    
-</change-set>
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 b15b4e58e1..0000000000
--- 
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 87d6f7e747..0000000000
--- a/kie-api/src/main/resources/change-set-1.0.0.xsd
+++ /dev/null
@@ -1,71 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  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.
-  -->
-
-<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema";
-            elementFormDefault="qualified"
-            targetNamespace="http://drools.org/drools-5.0/change-set";
-            xmlns:xs="http://www.w3.org/2001/XMLSchema-instance";
-            xmlns:change-set="http://drools.org/drools-5.0/change-set";>
-  <xsd:import namespace="http://www.w3.org/2001/XMLSchema-instance"/>
-  <xsd:element name="change-set">
-    <xsd:complexType>
-      <xsd:choice>
-        <xsd:element ref="change-set:add"/>
-        <xsd:element ref="change-set:remove"/>
-      </xsd:choice>
-    </xsd:complexType>
-  </xsd:element>
-  <xsd:element name="add">
-    <xsd:complexType mixed="true">
-      <xsd:sequence>
-        <xsd:element minOccurs="0" maxOccurs="unbounded" 
ref="change-set:resource"/>
-      </xsd:sequence>
-    </xsd:complexType>
-  </xsd:element>
-  <xsd:element name="remove">
-    <xsd:complexType mixed="true">
-      <xsd:sequence>
-        <xsd:element minOccurs="0" maxOccurs="unbounded" 
ref="change-set:resource"/>
-      </xsd:sequence>
-    </xsd:complexType>
-  </xsd:element>
-  <xsd:element name="resource">
-    <xsd:complexType>
-      <xsd:sequence>
-        <xsd:any minOccurs="0"/>
-        <xsd:element minOccurs="0" ref="change-set:decisiontable-conf"/>
-      </xsd:sequence>
-      <!-- URL to the resource, can be file based -->
-      <xsd:attribute name="source" use="required" type="xsd:anyURI"/>
-      <!-- for example, DRL, or PKG -->
-      <xsd:attribute name="type" use="required" type="xsd:string"/>
-      <xsd:attribute name="basicAuthentication" type="xsd:string"/>
-      <xsd:attribute name="username" type="xsd:string"/>
-      <xsd:attribute name="password" type="xsd:string"/>
-    </xsd:complexType>
-
-  </xsd:element>
-  <xsd:element name="decisiontable-conf">
-    <xsd:complexType>
-      <xsd:attribute name="input-type" use="required" type="xsd:NCName"/>
-      <xsd:attribute name="worksheet-name" use="required" type="xsd:NCName"/>
-    </xsd:complexType>
-  </xsd:element>
-</xsd:schema>
\ 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 c58579bae6..0000000000
--- a/kie-api/src/main/resources/change-set.xsd
+++ /dev/null
@@ -1,67 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  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.
-  -->
-
-<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
elementFormDefault="qualified" 
targetNamespace="http://drools.org/drools-5.0/change-set"; 
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance"; 
xmlns:change-set="http://drools.org/drools-5.0/change-set";>
-  <xsd:import namespace="http://www.w3.org/2001/XMLSchema-instance"/>
-  <xsd:element name="change-set">
-    <xsd:complexType>
-      <xsd:choice>
-        <xsd:element ref="change-set:add"/>
-        <xsd:element ref="change-set:remove"/>
-      </xsd:choice>
-    </xsd:complexType>
-  </xsd:element>
-  <xsd:element name="add">
-    <xsd:complexType mixed="true">
-      <xsd:sequence>
-        <xsd:element minOccurs="0" maxOccurs="unbounded" 
ref="change-set:resource"/>
-      </xsd:sequence>
-    </xsd:complexType>
-  </xsd:element>
-  <xsd:element name="remove">
-    <xsd:complexType mixed="true">
-      <xsd:sequence>
-        <xsd:element minOccurs="0" maxOccurs="unbounded" 
ref="change-set:resource"/>
-      </xsd:sequence>
-    </xsd:complexType>
-  </xsd:element>
-  <xsd:element name="resource">
-    <xsd:complexType>
-      <xsd:sequence>
-        <xsd:any/>
-        <xsd:element minOccurs="0" ref="change-set:decisiontable-conf"/>
-      </xsd:sequence>
-      <!-- URL to the resource, can be file based -->
-      <xsd:attribute name="source" use="required" type="xsd:anyURI"/>
-      <!-- for example, DRL, or PKG -->
-      <xsd:attribute name="type" use="required" type="xsd:string"/>
-      <xsd:attribute name="basicAuthentication" type="xsd:string"/>
-      <xsd:attribute name="username" type="xsd:string"/>
-      <xsd:attribute name="password" type="xsd:string"/>
-    </xsd:complexType>
-
-  </xsd:element>
-  <xsd:element name="decisiontable-conf">
-    <xsd:complexType>
-      <xsd:attribute name="input-type" use="required" type="xsd:NCName"/>
-      <xsd:attribute name="worksheet-name" use="required" type="xsd:NCName"/>
-    </xsd:complexType>
-  </xsd:element>
-</xsd:schema>
\ 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 ee7e28a9e5..911f836c1a 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 315e5eb2bc..542079f981 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 @@ import org.kie.api.io.ResourceType;
  *     log.exception( kbuilder.getErrors().toString() )
  * }
  * </pre>
- *
- * <p>
- * 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.
- * </p>
- * <pre>
- * &lt;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'
 &gt;
- *  &lt;add&gt;
- *       &lt;resource source='http:org/domain/myrules.drl' type='DRL' /&gt;
- *       &lt;resource source='classpath:data/IntegrationExampleTest.xls' 
type="DTABLE"&gt;
- *           &lt;decisiontable-conf input-type="XLS" worksheet-name="Tables_2" 
/&gt;
- *       &lt;/resource&gt;
- *       &lt;resource source='file:org/drools/decisiontable/myflow.drf' 
type='DRF' /&gt;
- *   &lt;/add&gt;
- * &lt;/change-set&gt;
- * </pre>
- *
- * <pre>
- * 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
- * </pre>
  */
 public interface KnowledgeBuilder
     extends
@@ -142,7 +114,7 @@ public interface KnowledgeBuilder
     /**
      * 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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to