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 25c7f469118..00000000000 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 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