[jboss-svn-commits] JBL Code SVN: r24187 - 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
Mon Dec 1 13:05:53 EST 2008
Author: KrisVerlaenen
Date: 2008-12-01 13:05:53 -0500 (Mon, 01 Dec 2008)
New Revision: 24187
Modified:
labs/jbossrules/trunk/drools-eclipse/org.drools.eclipse/src/main/java/org/drools/eclipse/DroolsEclipsePlugin.java
Log:
- fixed bug where package builder errors were not correctly added to the parsed process info
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-01 18:02:51 UTC (rev 24186)
+++ labs/jbossrules/trunk/drools-eclipse/org.drools.eclipse/src/main/java/org/drools/eclipse/DroolsEclipsePlugin.java 2008-12-01 18:05:53 UTC (rev 24187)
@@ -18,13 +18,14 @@
import java.io.Reader;
import java.io.StringReader;
+import java.util.ArrayList;
+import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.MissingResourceException;
import java.util.ResourceBundle;
-import org.drools.compiler.DialectCompiletimeRegistry;
import org.drools.compiler.DrlParser;
import org.drools.compiler.DroolsError;
import org.drools.compiler.DroolsParserException;
@@ -520,7 +521,10 @@
processBuilder.buildProcess( process, resource.getLocation().toString() );
ProcessInfo processInfo = new ProcessInfo( process.getId(),
process );
- processInfo.setErrors( processBuilder.getErrors() );
+ List<DroolsError> errors = new ArrayList<DroolsError>();
+ errors.addAll( processBuilder.getErrors() );
+ errors.addAll( Arrays.asList( packageBuilder.getErrors().getErrors() ) );
+ processInfo.setErrors( errors );
if ( useCachePreference ) {
processInfos.put( resource,
processInfo );
More information about the jboss-svn-commits
mailing list