[jboss-svn-commits] JBL Code SVN: r14456 - in labs/jbossrules/trunk/drools-ant/src/test: resources and 1 other directories.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Wed Aug 22 20:28:17 EDT 2007
Author: fmeyer
Date: 2007-08-22 20:28:16 -0400 (Wed, 22 Aug 2007)
New Revision: 14456
Added:
labs/jbossrules/trunk/drools-ant/src/test/java/org/drools/contrib/Cheese.java
labs/jbossrules/trunk/drools-ant/src/test/java/org/drools/contrib/Person.java
labs/jbossrules/trunk/drools-ant/src/test/resources/rules/rule.package
Removed:
labs/jbossrules/trunk/drools-ant/src/test/resources/rules/rule.package
Modified:
labs/jbossrules/trunk/drools-ant/src/test/resources/DroolsAntTask.xml
Log:
JBRULES-1028 - added support for brl in ant task
Added: labs/jbossrules/trunk/drools-ant/src/test/java/org/drools/contrib/Cheese.java
===================================================================
--- labs/jbossrules/trunk/drools-ant/src/test/java/org/drools/contrib/Cheese.java (rev 0)
+++ labs/jbossrules/trunk/drools-ant/src/test/java/org/drools/contrib/Cheese.java 2007-08-23 00:28:16 UTC (rev 14456)
@@ -0,0 +1,66 @@
+package org.drools.contrib;
+
+import java.io.Serializable;
+
+public class Cheese
+ implements
+ Serializable {
+ /**
+ *
+ */
+ private static final long serialVersionUID = 400L;
+ private String type;
+ private int price;
+
+ public Cheese() {
+
+ }
+
+ public Cheese(final String type,
+ final int price) {
+ super();
+ this.type = type;
+ this.price = price;
+ }
+
+ public int getPrice() {
+ return this.price;
+ }
+
+ public String getType() {
+ return this.type;
+ }
+
+ public void setType(final String type) {
+ this.type = type;
+ }
+
+ public void setPrice(final int price) {
+ this.price = price;
+ }
+
+ public String toString() {
+ return "Cheese( type='" + this.type + "', price=" + this.price + " )";
+ }
+
+ public int hashCode() {
+ final int PRIME = 31;
+ int result = 1;
+ result = PRIME * result + price;
+ result = PRIME * result + ((type == null) ? 0 : type.hashCode());
+ return result;
+ }
+
+ public boolean equals(Object obj) {
+ if ( this == obj ) return true;
+ if ( obj == null ) return false;
+ if ( getClass() != obj.getClass() ) return false;
+ final Cheese other = (Cheese) obj;
+ if ( price != other.price ) return false;
+ if ( type == null ) {
+ if ( other.type != null ) return false;
+ } else if ( !type.equals( other.type ) ) return false;
+ return true;
+ }
+
+}
\ No newline at end of file
Property changes on: labs/jbossrules/trunk/drools-ant/src/test/java/org/drools/contrib/Cheese.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: labs/jbossrules/trunk/drools-ant/src/test/java/org/drools/contrib/Person.java
===================================================================
--- labs/jbossrules/trunk/drools-ant/src/test/java/org/drools/contrib/Person.java (rev 0)
+++ labs/jbossrules/trunk/drools-ant/src/test/java/org/drools/contrib/Person.java 2007-08-23 00:28:16 UTC (rev 14456)
@@ -0,0 +1,33 @@
+package org.drools.contrib;
+
+public class Person {
+
+ private static final long serialVersionUID = 400L;
+ private String name;
+ private String status;
+ private int age;
+
+ public int getAge() {
+ return age;
+ }
+
+ public void setAge(int age) {
+ this.age = age;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public String getStatus() {
+ return status;
+ }
+
+ public void setStatus(String status) {
+ this.status = status;
+ }
+}
\ No newline at end of file
Property changes on: labs/jbossrules/trunk/drools-ant/src/test/java/org/drools/contrib/Person.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified: labs/jbossrules/trunk/drools-ant/src/test/resources/DroolsAntTask.xml
===================================================================
--- labs/jbossrules/trunk/drools-ant/src/test/resources/DroolsAntTask.xml 2007-08-22 22:02:31 UTC (rev 14455)
+++ labs/jbossrules/trunk/drools-ant/src/test/resources/DroolsAntTask.xml 2007-08-23 00:28:16 UTC (rev 14456)
@@ -1,7 +1,6 @@
<project default="rules">
<property name="eclipsepath" value=""/>
- <!-- enable for eclipse test runner <property name="eclipsepath" value="../../../"/> -->
<path id="cheese.classpath">
<pathelement location="${eclipsepath}lib/cheese.jar"/>
Deleted: labs/jbossrules/trunk/drools-ant/src/test/resources/rules/rule.package
===================================================================
--- labs/jbossrules/trunk/drools-ant/src/test/resources/rules/rule.package 2007-08-22 22:02:31 UTC (rev 14455)
+++ labs/jbossrules/trunk/drools-ant/src/test/resources/rules/rule.package 2007-08-23 00:28:16 UTC (rev 14456)
@@ -1,8 +0,0 @@
-//This is a package configuration file
-//Add imports, globals etc here which will be used by all the rule assets in thise folder.
-
-package org.drools.test;
-
-import org.drools.Person;
-import org.drools.contrib.Cheese;
-
Added: labs/jbossrules/trunk/drools-ant/src/test/resources/rules/rule.package
===================================================================
--- labs/jbossrules/trunk/drools-ant/src/test/resources/rules/rule.package (rev 0)
+++ labs/jbossrules/trunk/drools-ant/src/test/resources/rules/rule.package 2007-08-23 00:28:16 UTC (rev 14456)
@@ -0,0 +1,8 @@
+//This is a package configuration file
+//Add imports, globals etc here which will be used by all the rule assets in thise folder.
+
+package org.drools.test;
+
+import org.drools.contrib.Person;
+import org.drools.contrib.Cheese;
+
More information about the jboss-svn-commits
mailing list