[jboss-svn-commits] JBL Code SVN: r24280 - in labs/jbossrules/trunk/drools-ant/src: test/resources/rules and 1 other directory.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Sun Dec 7 02:25:05 EST 2008
Author: mark.proctor at jboss.com
Date: 2008-12-07 02:25:05 -0500 (Sun, 07 Dec 2008)
New Revision: 24280
Modified:
labs/jbossrules/trunk/drools-ant/src/main/java/org/drools/contrib/DroolsCompilerAntTask.java
labs/jbossrules/trunk/drools-ant/src/test/resources/rules/Person.xml
Log:
-added version .xml version
-now prints out the builder errors to System.err
Modified: labs/jbossrules/trunk/drools-ant/src/main/java/org/drools/contrib/DroolsCompilerAntTask.java
===================================================================
--- labs/jbossrules/trunk/drools-ant/src/main/java/org/drools/contrib/DroolsCompilerAntTask.java 2008-12-07 07:11:00 UTC (rev 24279)
+++ labs/jbossrules/trunk/drools-ant/src/main/java/org/drools/contrib/DroolsCompilerAntTask.java 2008-12-07 07:25:05 UTC (rev 24280)
@@ -149,6 +149,10 @@
// compile rule file and add to the builder
compileAndAddFile(builder, fileNames[i]);
}
+
+ if ( builder.hasErrors() ) {
+ System.err.println( builder.getErrors().toString() );
+ }
// gets the package
org.drools.rule.Package pkg = builder.getPackage();
Modified: labs/jbossrules/trunk/drools-ant/src/test/resources/rules/Person.xml
===================================================================
--- labs/jbossrules/trunk/drools-ant/src/test/resources/rules/Person.xml 2008-12-07 07:11:00 UTC (rev 24279)
+++ labs/jbossrules/trunk/drools-ant/src/test/resources/rules/Person.xml 2008-12-07 07:25:05 UTC (rev 24280)
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<package name="org.drools.test"
- xmlns="http://drools.org/drools-4.0"
+ xmlns="http://drools.org/drools-5.0"
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance"
- xs:schemaLocation="http://drools.org/drools-4.0 drools-4.0.xsd">
+ xs:schemaLocation="http://drools.org/drools-5.0 drools-5.0.xsd">
<import name="org.drools.contrib.Person" />
More information about the jboss-svn-commits
mailing list