[jboss-svn-commits] JBL Code SVN: r24264 - in labs/jbossrules/trunk/drools-compiler/src: test/java/org/drools/xml/changeset and 1 other directory.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Sat Dec 6 00:42:04 EST 2008
Author: mark.proctor at jboss.com
Date: 2008-12-06 00:42:04 -0500 (Sat, 06 Dec 2008)
New Revision: 24264
Modified:
labs/jbossrules/trunk/drools-compiler/src/main/java/org/drools/compiler/PackageBuilder.java
labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/xml/changeset/ChangeSetTest.java
Log:
JBRULES-1885 Update KnowledgeAgent to use new Resource api
- only add Resource to KnowledgeDefintions if it has a URL.
JBRULES-1874 Create Resource Framework
Modified: labs/jbossrules/trunk/drools-compiler/src/main/java/org/drools/compiler/PackageBuilder.java
===================================================================
--- labs/jbossrules/trunk/drools-compiler/src/main/java/org/drools/compiler/PackageBuilder.java 2008-12-06 05:25:09 UTC (rev 24263)
+++ labs/jbossrules/trunk/drools-compiler/src/main/java/org/drools/compiler/PackageBuilder.java 2008-12-06 05:42:04 UTC (rev 24264)
@@ -1147,7 +1147,9 @@
this.results.addAll( context.getErrors() );
- context.getRule().setResource( resource );
+ if ( (( InternalResource ) resource).hasURL() ) {
+ context.getRule().setResource( resource );
+ }
context.getDialect().addRule( context );
Modified: labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/xml/changeset/ChangeSetTest.java
===================================================================
--- labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/xml/changeset/ChangeSetTest.java 2008-12-06 05:25:09 UTC (rev 24263)
+++ labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/xml/changeset/ChangeSetTest.java 2008-12-06 05:42:04 UTC (rev 24264)
@@ -9,6 +9,7 @@
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
+import java.util.Set;
import java.util.UUID;
import junit.framework.TestCase;
@@ -352,5 +353,9 @@
kagent.monitorResourceChangeEvents( false );
}
+
+ public static class FileManager {
+ private Set<File> files;
+ }
}
More information about the jboss-svn-commits
mailing list