[jboss-svn-commits] JBL Code SVN: r24284 - labs/jbossrules/trunk/drools-eclipse/org.drools.eclipse/src/main/java/org/drools/eclipse.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Sun Dec 7 18:01:20 EST 2008
Author: mark.proctor at jboss.com
Date: 2008-12-07 18:01:18 -0500 (Sun, 07 Dec 2008)
New Revision: 24284
Modified:
labs/jbossrules/trunk/drools-eclipse/org.drools.eclipse/src/main/java/org/drools/eclipse/DroolsEclipsePlugin.java
Log:
JBRULES-1885 Update KnowledgeAgent to use new Resource api
-ProcessBuilder needs a UrlResource not a String
Modified: labs/jbossrules/trunk/drools-eclipse/org.drools.eclipse/src/main/java/org/drools/eclipse/DroolsEclipsePlugin.java
===================================================================
--- labs/jbossrules/trunk/drools-eclipse/org.drools.eclipse/src/main/java/org/drools/eclipse/DroolsEclipsePlugin.java 2008-12-07 22:03:36 UTC (rev 24283)
+++ labs/jbossrules/trunk/drools-eclipse/org.drools.eclipse/src/main/java/org/drools/eclipse/DroolsEclipsePlugin.java 2008-12-07 23:01:18 UTC (rev 24284)
@@ -41,6 +41,7 @@
import org.drools.eclipse.editors.AbstractRuleEditor;
import org.drools.eclipse.preferences.IDroolsConstants;
import org.drools.eclipse.util.ProjectClassLoader;
+import org.drools.io.ResourceFactory;
import org.drools.lang.descr.PackageDescr;
import org.drools.process.core.Process;
import org.drools.rule.Package;
@@ -522,7 +523,7 @@
PackageBuilderConfiguration config) {
PackageBuilder packageBuilder = new PackageBuilder( config );
ProcessBuilder processBuilder = new ProcessBuilder( packageBuilder );
- processBuilder.buildProcess( process, resource.getLocation().toString() );
+ processBuilder.buildProcess( process, ResourceFactory.newUrlResource( resource.getLocation().toString() ) );
ProcessInfo processInfo = new ProcessInfo( process.getId(),
process );
List<DroolsError> errors = new ArrayList<DroolsError>();
More information about the jboss-svn-commits
mailing list