You can subscribe to this list here.
2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(233) |
Sep
(199) |
Oct
(206) |
Nov
(185) |
Dec
(270) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2006 |
Jan
(232) |
Feb
(426) |
Mar
(623) |
Apr
(592) |
May
(506) |
Jun
(389) |
Jul
(160) |
Aug
(3) |
Sep
(1) |
Oct
(1) |
Nov
(2) |
Dec
(5) |
2007 |
Jan
(1) |
Feb
(1) |
Mar
(2) |
Apr
(2) |
May
(4) |
Jun
(2) |
Jul
|
Aug
(3) |
Sep
(5) |
Oct
(9) |
Nov
(6) |
Dec
(6) |
2008 |
Jan
(3) |
Feb
|
Mar
(1) |
Apr
(3) |
May
(3) |
Jun
(5) |
Jul
(10) |
Aug
(2) |
Sep
(12) |
Oct
(10) |
Nov
(54) |
Dec
(49) |
2009 |
Jan
(19) |
Feb
(13) |
Mar
(20) |
Apr
(24) |
May
(44) |
Jun
(29) |
Jul
(32) |
Aug
(10) |
Sep
(7) |
Oct
(10) |
Nov
(4) |
Dec
(17) |
2010 |
Jan
(14) |
Feb
(5) |
Mar
(23) |
Apr
(50) |
May
(31) |
Jun
(9) |
Jul
(5) |
Aug
(4) |
Sep
(7) |
Oct
(5) |
Nov
(2) |
Dec
(3) |
2011 |
Jan
(12) |
Feb
(5) |
Mar
(5) |
Apr
(3) |
May
(4) |
Jun
(3) |
Jul
(2) |
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
2012 |
Jan
(1) |
Feb
(2) |
Mar
|
Apr
(1) |
May
(1) |
Jun
(2) |
Jul
(4) |
Aug
(1) |
Sep
|
Oct
(1) |
Nov
|
Dec
|
2013 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(2) |
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
2014 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(3) |
Sep
|
Oct
|
Nov
|
Dec
(1) |
2015 |
Jan
|
Feb
|
Mar
(2) |
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2016 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: <jbo...@li...> - 2006-04-20 17:56:43
|
Author: dam...@jb... Date: 2006-04-20 13:56:33 -0400 (Thu, 20 Apr 2006) New Revision: 3853 Added: labs/shotoku/trunk/shotoku-base/src/java/org/jboss/shotoku/tools/PropertiesElementValue.java Log: Extracting Shotoku from Forge. Copied: labs/shotoku/trunk/shotoku-base/src/java/org/jboss/shotoku/tools/PropertiesElementValue.java (from rev 3852, labs/jbosslabs/branches/qa/jbosslabs/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/elements/PropertiesElementValue.java) |
From: <jbo...@li...> - 2006-04-20 15:56:18
|
Author: dam...@jb... Date: 2006-04-20 11:56:09 -0400 (Thu, 20 Apr 2006) New Revision: 3852 Added: labs/shotoku/trunk/shotoku-feeds/lib/ labs/shotoku/trunk/shotoku-feeds/lib/informa/ labs/shotoku/trunk/shotoku-feeds/lib/informa/jars/ labs/shotoku/trunk/shotoku-feeds/lib/informa/jars/informa-0.6.0.jar Modified: labs/shotoku/trunk/shotoku-feeds/maven.xml labs/shotoku/trunk/shotoku-feeds/project.properties labs/shotoku/trunk/shotoku-feeds/src/java/org/jboss/shotoku/feeds/FeedsDescriptor.java Log: Added informa and a few changes from project to site. Added: labs/shotoku/trunk/shotoku-feeds/lib/informa/jars/informa-0.6.0.jar =================================================================== (Binary files differ) Property changes on: labs/shotoku/trunk/shotoku-feeds/lib/informa/jars/informa-0.6.0.jar ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Modified: labs/shotoku/trunk/shotoku-feeds/maven.xml =================================================================== --- labs/shotoku/trunk/shotoku-feeds/maven.xml 2006-04-20 14:25:28 UTC (rev 3851) +++ labs/shotoku/trunk/shotoku-feeds/maven.xml 2006-04-20 15:56:09 UTC (rev 3852) @@ -6,19 +6,23 @@ <project xmlns:j="jelly:core" xmlns:ant="jelly:ant" xmlns:u="jelly:util"> <!-- Default war-project goals --> - <goal name="all"> - <attainGoal name="prj-all" /> - </goal> <goal name="build"> - <attainGoal name="prj-war-build" /> + <attainGoal name="war" /> </goal> <goal name="deploy"> - <attainGoal name="prj-war-deploy" /> + <ant:copy + file="target/shotoku-feeds.war" + todir="${local.deploy.dir}" /> </goal> <goal name="clean"> <attainGoal name="prj-clean" /> </goal> + <goal name="all"> + <attainGoal name="clean" /> + <attainGoal name="build" /> + <attainGoal name="deploy" /> + </goal> </project> Modified: labs/shotoku/trunk/shotoku-feeds/project.properties =================================================================== --- labs/shotoku/trunk/shotoku-feeds/project.properties 2006-04-20 14:25:28 UTC (rev 3851) +++ labs/shotoku/trunk/shotoku-feeds/project.properties 2006-04-20 15:56:09 UTC (rev 3852) @@ -1,3 +1,4 @@ maven.repo.remote=http://repository.atlassian.com,http://www.ibiblio.org/maven,http://dist.codehaus.org/ maven.junit.fork=yes maven.war.src=${basedir}/src/web +maven.jar.informa=lib/informa/jars/informa-0.6.0.jar Modified: labs/shotoku/trunk/shotoku-feeds/src/java/org/jboss/shotoku/feeds/FeedsDescriptor.java =================================================================== --- labs/shotoku/trunk/shotoku-feeds/src/java/org/jboss/shotoku/feeds/FeedsDescriptor.java 2006-04-20 14:25:28 UTC (rev 3851) +++ labs/shotoku/trunk/shotoku-feeds/src/java/org/jboss/shotoku/feeds/FeedsDescriptor.java 2006-04-20 15:56:09 UTC (rev 3852) @@ -124,6 +124,11 @@ */ private Map<String, String> feedDisplayNames; + /** + * <code>siteDisplayNames</code> - map: site name -> site display name. + */ + private Map<String, String> siteDisplayNames; + private DelegateContext context; private String baseServerAddress; @@ -133,8 +138,8 @@ String feedsBaseDir = ContentManager.getProperty(FEEDS_BASEDIR); if (feedsBaseDir == null) - throw new RuntimeException(FEEDS_BASEDIR" property missing from "+ - "shotoku.properties. Shotoku feeds needs"+ + throw new RuntimeException(FEEDS_BASEDIR+" property missing from "+ + "shotoku.properties. Shotoku Feeds needs"+ " this to know where to load the feeds "+ "descriptor files."); @@ -145,6 +150,7 @@ feeds = new HashMap<String, Map<String, Feed>>(); feedGroups = new LinkedHashMap<String, Set<String>>(); feedDisplayNames = new HashMap<String, String>(); + siteDisplayNames = new HashMap<String, String>(); // Preparing maps which will hold feed definitions. Map<String, Node> remoteFeedDefs = new HashMap<String, Node>(); @@ -212,7 +218,7 @@ * @return An array of site ids for this shotoku feeds instance. */ private String[] getSiteIds() { - if (FeedsHelper.getSiteIds() != null) { + if (FeedsHelper.getSiteIds() != null) return FeedsHelper.getSiteIds(); else return new String[] { "" }; @@ -465,7 +471,7 @@ newFeed.generate(new URL(address)); addFeed(feedNameReplaced, type, newFeed); } catch (Exception e) { - log.debug("Can't add feeed " + address + " : " + type + log.debug("Can't add feed " + address + " : " + type + ".", e); } } @@ -662,28 +668,36 @@ /** * Adds definitions of feeds to the given map, placing child nodes of * the given node in the appropriate map. - * @param feedDefinitions - * @param node + * @param feedDefinitions A map into which feeds will be added. + * @param node The node of the feeds descriptor file. * @throws SAXException * @throws IOException */ private void addFeedDefinitions(Map<String, Map<String, Node>> feedDefinitions, org.jboss.shotoku.Node node) throws SAXException, IOException { DOMParser parser = new DOMParser(); + // Parse the descriptor at the given Shotoku node. parser.parse(new InputSource(node.getContentInputStream())); + // Get the XML document element of the feed descriptor file. Node root = parser.getDocument().getDocumentElement(); Node n; NodeList nodes = root.getChildNodes(); Set<String> feedGroup = new LinkedHashSet<String>(); + // Each feed descriptor file has one feed group. + // Get the name of the feed group for this file. feedGroups.put(XmlTools.getAttributeValue(root, "display-name"), feedGroup); + // Iterate through the rest of the feed descriptor + // file to load all feeds for a given feed group. for (int i = 0; i < nodes.getLength(); i++) { n = nodes.item(i); if (feedDefinitions.get(n.getNodeName()) != null) { + // Get the name of the feed. String feedName = XmlTools.getAttributeValue(n, "name"); + // Add the feeds in the file to the group. addFeedNamesToGroup(feedGroup, feedName, n); feedDefinitions.get(n.getNodeName()).put(feedName, n); } |
From: <jbo...@li...> - 2006-04-20 12:33:58
|
Author: KrisVerlaenen Date: 2006-04-20 08:33:49 -0400 (Thu, 20 Apr 2006) New Revision: 3850 Modified: labs/jbossrules/trunk/drools-ide/.classpath labs/jbossrules/trunk/drools-ide/src/main/java/org/drools/ide/editors/DRLRuleEditor.java labs/jbossrules/trunk/drools-ide/src/main/java/org/drools/ide/editors/completion/RuleCompletionProcessor.java Log: updated completion to cache dsl and imports Modified: labs/jbossrules/trunk/drools-ide/.classpath =================================================================== --- labs/jbossrules/trunk/drools-ide/.classpath 2006-04-20 12:21:33 UTC (rev 3849) +++ labs/jbossrules/trunk/drools-ide/.classpath 2006-04-20 12:33:49 UTC (rev 3850) @@ -10,6 +10,6 @@ <classpathentry kind="lib" path="lib/commons-lang-2.1.jar"/> <classpathentry kind="lib" path="lib/antlr3-3.0ea8.jar"/> <classpathentry kind="lib" path="lib/junit-3.8.1.jar"/> - <classpathentry kind="lib" path="D:/dev/jbossrules/drools-ide/lib/jci-SNAPSHOT-378493+patch4.jar"/> + <classpathentry kind="lib" path="lib/jci-SNAPSHOT-378493+patch4.jar"/> <classpathentry kind="output" path="bin"/> </classpath> Modified: labs/jbossrules/trunk/drools-ide/src/main/java/org/drools/ide/editors/DRLRuleEditor.java =================================================================== --- labs/jbossrules/trunk/drools-ide/src/main/java/org/drools/ide/editors/DRLRuleEditor.java 2006-04-20 12:21:33 UTC (rev 3849) +++ labs/jbossrules/trunk/drools-ide/src/main/java/org/drools/ide/editors/DRLRuleEditor.java 2006-04-20 12:33:49 UTC (rev 3850) @@ -1,7 +1,9 @@ package org.drools.ide.editors; +import java.util.List; + +import org.drools.ide.editors.outline.RuleContentOutlinePage; import org.drools.ide.editors.scanners.RuleEditorMessages; -import org.drools.ide.editors.outline.RuleContentOutlinePage; import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jface.action.IAction; import org.eclipse.jface.text.source.ISourceViewer; @@ -19,6 +21,7 @@ //used to provide additional content assistance/popups when DSLs are used. private DSLAdapter dslAdapter; + private List imports; private RuleContentOutlinePage ruleContentOutline = null; @@ -30,7 +33,7 @@ public void dispose() { super.dispose(); } - + /** For user triggered content assistance */ protected void createActions() { super.createActions(); @@ -60,6 +63,14 @@ public void setDSLAdapter(DSLAdapter adapter) { dslAdapter = adapter; } + + public void setImports(List imports) { + this.imports = imports; + } + + public List getImports() { + return imports; + } public Object getAdapter(Class adapter) { if ( adapter.equals( IContentOutlinePage.class ) ) { @@ -78,7 +89,11 @@ public void doSave(IProgressMonitor monitor) { super.doSave( monitor ); - if ( ruleContentOutline != null ) ruleContentOutline.update(); + if ( ruleContentOutline != null ) { + ruleContentOutline.update(); + } + dslAdapter = null; + imports = null; } } Modified: labs/jbossrules/trunk/drools-ide/src/main/java/org/drools/ide/editors/completion/RuleCompletionProcessor.java =================================================================== --- labs/jbossrules/trunk/drools-ide/src/main/java/org/drools/ide/editors/completion/RuleCompletionProcessor.java 2006-04-20 12:21:33 UTC (rev 3849) +++ labs/jbossrules/trunk/drools-ide/src/main/java/org/drools/ide/editors/completion/RuleCompletionProcessor.java 2006-04-20 12:33:49 UTC (rev 3850) @@ -8,6 +8,7 @@ import java.util.regex.Pattern; import org.drools.compiler.DrlParser; +import org.drools.compiler.DroolsParserException; import org.drools.ide.DroolsIDEPlugin; import org.drools.ide.DroolsPluginImages; import org.drools.ide.builder.DroolsBuilder; @@ -16,6 +17,7 @@ import org.drools.lang.descr.PackageDescr; import org.drools.semantics.java.ClassTypeResolver; import org.drools.util.asm.ClassFieldInspector; +import org.eclipse.core.runtime.CoreException; import org.eclipse.jface.text.IDocument; import org.eclipse.jface.text.ITextViewer; import org.eclipse.swt.graphics.Image; @@ -125,11 +127,7 @@ prop.setImage(image); list.add(prop); - String content = viewer.getDocument().get(); - Reader dslReader = DSLAdapter.getDSLContent(content, ((FileEditorInput) getEditor().getEditorInput()).getFile()); - DrlParser parser = new DrlParser(); - PackageDescr descr = DroolsBuilder.parsePackage(content, parser, dslReader); - List imports = descr.getImports(); + List imports = getImports(viewer); iterator = imports.iterator(); while (iterator.hasNext()) { String name = (String) iterator.next(); @@ -189,19 +187,30 @@ // TODO: cache DSL adapter in plugin, and reset when dsl file saved // retrieve dsl name always (might have changed) and try retrieving // cached dsl from plugin first - return new DSLAdapter(viewer.getDocument().get(), ((FileEditorInput) getEditor().getEditorInput()).getFile()); -// DSLAdapter adapter = getDRLEditor().getDSLAdapter(); -// if (adapter == null) { -// String content = viewer.getDocument().get(); -// adapter = new DSLAdapter(content, ((FileEditorInput) getEditor().getEditorInput()).getFile()); -// if (adapter.isValid()) { -// getDRLEditor().setDSLAdapter(adapter); -// } -// } -// return adapter; +// return new DSLAdapter(viewer.getDocument().get(), ((FileEditorInput) getEditor().getEditorInput()).getFile()); + DSLAdapter adapter = getDRLEditor().getDSLAdapter(); + if (adapter == null) { + String content = viewer.getDocument().get(); + adapter = new DSLAdapter(content, ((FileEditorInput) getEditor().getEditorInput()).getFile()); + if (adapter.isValid()) { + getDRLEditor().setDSLAdapter(adapter); + } + } + return adapter; } - + private List getImports(ITextViewer viewer) throws CoreException, DroolsParserException { + List imports = getDRLEditor().getImports(); + if (imports == null) { + String content = viewer.getDocument().get(); + Reader dslReader = DSLAdapter.getDSLContent(content, ((FileEditorInput) getEditor().getEditorInput()).getFile()); + DrlParser parser = new DrlParser(); + PackageDescr descr = DroolsBuilder.parsePackage(content, parser, dslReader); + imports = descr.getImports(); + getDRLEditor().setImports(imports); + } + return imports; + } } |
From: <jbo...@li...> - 2006-04-20 12:21:42
|
Author: mfrandsen Date: 2006-04-20 08:21:33 -0400 (Thu, 20 Apr 2006) New Revision: 3849 Removed: labs/jbossrules/trunk/repository/jsr94/jsr94-tck/1.0.2/ Log: TCK 1.0.2 removed |
From: <jbo...@li...> - 2006-04-20 12:19:36
|
Author: mfrandsen Date: 2006-04-20 08:19:28 -0400 (Thu, 20 Apr 2006) New Revision: 3848 Added: labs/jbossrules/trunk/repository/jsr94/jsr94-tck/1.0.3/ labs/jbossrules/trunk/repository/jsr94/jsr94-tck/1.0.3/jsr94-tck-1.0.3.jar labs/jbossrules/trunk/repository/jsr94/jsr94-tck/1.0.3/jsr94-tck-1.0.3.pom Log: new TCK Added: labs/jbossrules/trunk/repository/jsr94/jsr94-tck/1.0.3/jsr94-tck-1.0.3.jar =================================================================== (Binary files differ) Property changes on: labs/jbossrules/trunk/repository/jsr94/jsr94-tck/1.0.3/jsr94-tck-1.0.3.jar ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: labs/jbossrules/trunk/repository/jsr94/jsr94-tck/1.0.3/jsr94-tck-1.0.3.pom =================================================================== --- labs/jbossrules/trunk/repository/jsr94/jsr94-tck/1.0.3/jsr94-tck-1.0.3.pom 2006-04-20 12:18:02 UTC (rev 3847) +++ labs/jbossrules/trunk/repository/jsr94/jsr94-tck/1.0.3/jsr94-tck-1.0.3.pom 2006-04-20 12:19:28 UTC (rev 3848) @@ -0,0 +1,7 @@ +<project> + <modelVersion>4.0.0</modelVersion> + <groupId>jsr94-tck</groupId> + <artifactId>jsr94-tck</artifactId> + <version>1.0.3</version> + <dependencies/> +</project> |
From: <jbo...@li...> - 2006-04-20 12:18:17
|
Author: mfrandsen Date: 2006-04-20 08:18:02 -0400 (Thu, 20 Apr 2006) New Revision: 3847 Modified: labs/jbossrules/trunk/drools-jsr94/pom.xml Log: TCK changed to 1.0.3 Modified: labs/jbossrules/trunk/drools-jsr94/pom.xml =================================================================== --- labs/jbossrules/trunk/drools-jsr94/pom.xml 2006-04-20 12:17:33 UTC (rev 3846) +++ labs/jbossrules/trunk/drools-jsr94/pom.xml 2006-04-20 12:18:02 UTC (rev 3847) @@ -35,7 +35,7 @@ <dependency> <groupId>jsr94</groupId> <artifactId>jsr94-tck</artifactId> - <version>1.0.2</version> + <version>1.0.3</version> </dependency> <dependency> |
From: <jbo...@li...> - 2006-04-20 12:17:40
|
Author: mfrandsen Date: 2006-04-20 08:17:33 -0400 (Thu, 20 Apr 2006) New Revision: 3846 Modified: labs/jbossrules/trunk/drools-jsr94/src/test/java/org/jcp/jsr94/tck/AllTests.java Log: ClassLoaderTest activated Modified: labs/jbossrules/trunk/drools-jsr94/src/test/java/org/jcp/jsr94/tck/AllTests.java =================================================================== --- labs/jbossrules/trunk/drools-jsr94/src/test/java/org/jcp/jsr94/tck/AllTests.java 2006-04-20 12:16:47 UTC (rev 3845) +++ labs/jbossrules/trunk/drools-jsr94/src/test/java/org/jcp/jsr94/tck/AllTests.java 2006-04-20 12:17:33 UTC (rev 3846) @@ -34,8 +34,7 @@ TestSuite suite = new TestSuite( "JSR 94 Test Compatability Kit" ); suite.addTestSuite( ApiSignatureTest.class ); - //JBRULES-139 TCK-TestCaseUtil needs to be fixed - //suite.addTestSuite( ClassLoaderTest.class ); + suite.addTestSuite( ClassLoaderTest.class ); suite.addTestSuite( ConfigurationExceptionTest.class ); suite.addTestSuite( HandleTest.class ); suite.addTestSuite( InvalidHandleExceptionTest.class ); |
From: <jbo...@li...> - 2006-04-20 12:16:54
|
Author: mfrandsen Date: 2006-04-20 08:16:47 -0400 (Thu, 20 Apr 2006) New Revision: 3845 Modified: labs/jbossrules/trunk/drools-jsr94/src/test/resources/org/drools/jsr94/tck/tck.conf Log: tck.conf property changed to jar RC2, but property seems not to be used, yet Modified: labs/jbossrules/trunk/drools-jsr94/src/test/resources/org/drools/jsr94/tck/tck.conf =================================================================== --- labs/jbossrules/trunk/drools-jsr94/src/test/resources/org/drools/jsr94/tck/tck.conf 2006-04-20 10:15:24 UTC (rev 3844) +++ labs/jbossrules/trunk/drools-jsr94/src/test/resources/org/drools/jsr94/tck/tck.conf 2006-04-20 12:16:47 UTC (rev 3845) @@ -4,7 +4,7 @@ <test-factory>org.jcp.jsr94.tck.util.TestFactory</test-factory> <rule-service-provider>org.drools.jsr94.rules.RuleServiceProviderImpl</rule-service-provider> - <rule-service-provider-jar-url>file:drools-jsr94/target/drools-jsr94-3.0-beta-1.jar</rule-service-provider-jar-url> + <rule-service-provider-jar-url>file:drools-jsr94/target/drools-jsr94-3.0-RC-2.jar</rule-service-provider-jar-url> <rule-execution-set-location>drools-jsr94/target/test-classes/org/drools/jsr94/tck</rule-execution-set-location> </tck-configuration> |
From: <jbo...@li...> - 2006-04-20 10:15:35
|
Author: arvinder Date: 2006-04-20 06:15:24 -0400 (Thu, 20 Apr 2006) New Revision: 3844 Modified: labs/jbossesb/branches/JBESB-13/build.xml Log: Added additional tasks Modified: labs/jbossesb/branches/JBESB-13/build.xml =================================================================== --- labs/jbossesb/branches/JBESB-13/build.xml 2006-04-20 10:11:01 UTC (rev 3843) +++ labs/jbossesb/branches/JBESB-13/build.xml 2006-04-20 10:15:24 UTC (rev 3844) @@ -1,130 +1,345 @@ <project name="JBESB" default="org.jboss.esb.jar" basedir="."> - <!-- class path behaviour --> - <property name="build.sysclasspath" value="last"/> + <!-- class path behaviour --> + <property name="build.sysclasspath" value="last"/> - <!-- Set module name --> - <property name="org.jboss.esb.internal.modulename" value="jbesb"/> + <!-- Set module name --> + <property name="org.jboss.esb.internal.modulename" value="jbesb"/> - <!-- Load Build Properties File --> - <property file="${org.jboss.esb.properties}"/> + <!-- Load Build Properties File --> + <property file="${org.jboss.esb.properties}"/> - <!-- Set internal property defaults --> + <!-- Set internal property defaults --> + <property environment="env"/> + <property name="jboss.home" value="${env.JBOSS_HOME}"/> + <property name="standalone.esb.config.name" value="esb"/> + <property name="relative.sar.location" value="lib/dependency/jboss-jms"/> + <property name="messaging.sar.name" value="jboss-messaging-scoped.sar"/> - <property name="org.jboss.esb.installationdirectory" value="build/install"/> - - <!-- Path names --> - <property name="org.jboss.esb.internal.src" value="ESBCore/classes"/> - <property name="org.jboss.esb.internal.dest.root" value="build"/> - <property name="org.jboss.esb.internal.dest" value="build/classes"/> - <property name="org.jboss.esb.internal.jar.dest" value="lib"/> - <property name="org.jboss.esb.internal.javadocs.dest" - value="javadocs"/> - <!-- Initialisation --> - <target name="org.jboss.esb.internal.init"> - <!-- Define default build properties --> - <tstamp> - <format property="org.jboss.esb.date" pattern="yyyy/mm/dd hh:mm aa"/> - </tstamp> - <!-- Make the destination directory --> - <mkdir dir="${org.jboss.esb.internal.dest}"/> - </target> + <property name="org.jboss.esb.installationdirectory" value="build/install"/> - <!-- Compilation targets --> - <target name="org.jboss.esb.compile" - depends="org.jboss.esb.internal.compile, org.jboss.esb.javadocs"/> + <!-- Path names --> + <property name="org.jboss.esb.internal.src" value="ESBCore/classes"/> + <property name="org.jboss.esb.internal.etc" value="ESBCore/etc"/> + <property name="org.jboss.esb.internal.dest.root" value="build"/> + <property name="org.jboss.esb.internal.dest" value="build/classes"/> + <property name="org.jboss.esb.internal.assemble" value="build/assemble"/> + <property name="org.jboss.esb.internal.jar.dest" value="lib"/> + <property name="org.jboss.esb.internal.javadocs.dest" value="javadocs"/> - <target name="org.jboss.esb.internal.compile" depends="org.jboss.esb.internal.init"> - <echo message="Compiling module"/> - <javac srcdir="${org.jboss.esb.internal.src}" - destdir="${org.jboss.esb.internal.dest}" - excludes="${org.jboss.esb.internal.compile.excludes}" - debug="yes" - > - <classpath> - <path path="${org.jboss.esb.internal.src}"/> - </classpath> - </javac> + <!-- Initialisation --> + <target name="org.jboss.esb.internal.init"> + <!-- Define default build properties --> + <tstamp> + <format property="org.jboss.esb.date" pattern="yyyy/mm/dd hh:mm aa"/> + </tstamp> + <!-- Make the destination directory --> + <mkdir dir="${org.jboss.esb.internal.dest}"/> + </target> - </target> + <!-- compile deps --> + <path id="compile.classpath"> + <fileset dir="lib"> + <include name="**/**/*.jar"/> + </fileset> + <fileset dir="${jboss.home}/lib"> + <include name="*.jar"/> + </fileset> + <pathelement path="${org.jboss.esb.internal.src}"/> + </path> - <!-- javadocs paths --> - <path id="org.jboss.esb.javadocs.path"> - <pathelement path="ESBCore/classes"/> - </path> - <property name="org.jboss.esb.javadocs.list" - value="org.jboss.soa.*"/> + <!-- Compilation targets --> + <target name="org.jboss.esb.compile" + depends="org.jboss.esb.internal.compile, org.jboss.esb.javadocs"/> - <!-- Jar targets --> - <target name="org.jboss.esb.jar" depends="org.jboss.esb.compile"> - <echo message="Building jar file"/> - <mkdir dir="${org.jboss.esb.internal.jar.dest}"/> - <jar jarfile="${org.jboss.esb.internal.jar.dest}/${org.jboss.esb.internal.modulename}.jar" basedir="${org.jboss.esb.internal.dest}"/> - </target> + <target name="org.jboss.esb.internal.compile" depends="org.jboss.esb.internal.init"> + <echo message="Compiling module"/> + <javac srcdir="${org.jboss.esb.internal.src}" + destdir="${org.jboss.esb.internal.dest}" + excludes="${org.jboss.esb.internal.compile.excludes}" + debug="yes" + > + <classpath refid="compile.classpath"/> + </javac> - <target name="org.jboss.esb.javadocs" - depends="org.jboss.esb.internal.init"> - <echo message="Building javadocs "/> - <mkdir dir="${org.jboss.esb.internal.javadocs.dest}"/> - <path id="org.jboss.esb.internal.javadocs.path"> - <path refid="org.jboss.esb.javadocs.path"/> - </path> + </target> - <javadoc - sourcepathref="org.jboss.esb.internal.javadocs.path" - destdir="${org.jboss.esb.internal.javadocs.dest}" - packagenames="${org.jboss.esb.javadocs.list}" - > - <classpath> - <path path="${org.jboss.esb.internal.src}"/> - </classpath> - </javadoc> - </target> + <!-- javadocs paths --> + <path id="org.jboss.esb.javadocs.path"> + <pathelement path="ESBCore/classes"/> + </path> - <target name="install" depends="org.jboss.esb.jar"> + <property name="org.jboss.esb.javadocs.list" + value="org.jboss.soa.*"/> - <echo message="Installation directory : ${org.jboss.esb.installationdirectory}"/> + <!-- Jar targets --> + <target name="org.jboss.esb.jar" depends="org.jboss.esb.compile"> + <echo message="Building jar file"/> + <mkdir dir="${org.jboss.esb.internal.jar.dest}"/> + <jar jarfile="${org.jboss.esb.internal.jar.dest}/${org.jboss.esb.internal.modulename}.jar" + basedir="${org.jboss.esb.internal.dest}"/> + </target> - <echo message="Installing jar files"/> - <mkdir dir="${org.jboss.esb.installationdirectory}/lib"/> - <copy - todir="${org.jboss.esb.installationdirectory}/lib" - > - <fileset dir="lib"> - <include name="*.jar"/> - </fileset> - </copy> + <!-- Sar targets --> + <target name="org.jboss.esb.sar" depends="org.jboss.esb.jar"> + <echo message="Building sar file"/> - <echo message="Installing xml"/> - <mkdir dir="${org.jboss.esb.installationdirectory}/xml"/> - <copy - todir="${org.jboss.esb.installationdirectory}/xml" - > - <fileset dir="xml"/> - </copy> + <!-- assemble/prepare the sar --> + <mkdir dir="${org.jboss.esb.internal.assemble}/META-INF"/> + <mkdir dir="${org.jboss.esb.internal.assemble}/xmdesc"/> + <copy todir="${org.jboss.esb.internal.assemble}" flatten="true"> + <fileset dir="lib" includes="**/**/*.jar"/> + </copy> + <copy todir="${org.jboss.esb.internal.assemble}/META-INF"> + <fileset dir="${org.jboss.esb.internal.etc}/server/default/deploy" includes="*.xml"/> + </copy> + <copy todir="${org.jboss.esb.internal.assemble}/xmdesc"> + <fileset dir="${org.jboss.esb.internal.etc}/xmdesc" includes="*.xml"/> + </copy> - <echo message="Installing javadocs"/> - <mkdir dir="${org.jboss.esb.installationdirectory}/javadocs"/> - <copy - todir="${org.jboss.esb.installationdirectory}/javadocs" - > - <fileset dir="javadocs"/> - </copy> - </target> + <jar jarfile="${org.jboss.esb.internal.jar.dest}/${org.jboss.esb.internal.modulename}.sar" + basedir="${org.jboss.esb.internal.assemble}"/> + </target> - <!-- Clean targets --> - <target name="org.jboss.esb.clean"> - <echo message="Cleaning module"/> - <delete dir="${org.jboss.esb.internal.dest}"/> - <delete dir="${org.jboss.esb.internal.dest.root}"/> - <delete dir="${org.jboss.esb.internal.javadocs.dest}"/> - <delete dir="${org.jboss.esb.internal.jar.dest}"/> - </target> + <target name="org.jboss.esb.javadocs" + depends="org.jboss.esb.internal.init"> + <echo message="Building javadocs "/> + <mkdir dir="${org.jboss.esb.internal.javadocs.dest}"/> + <path id="org.jboss.esb.internal.javadocs.path"> + <path refid="org.jboss.esb.javadocs.path"/> + </path> - <!-- Short target names --> - <target name="compile" depends="org.jboss.esb.compile"/> - <target name="jar" depends="org.jboss.esb.jar"/> - <target name="clean" depends="org.jboss.esb.clean"/> + <javadoc + sourcepathref="org.jboss.esb.internal.javadocs.path" + destdir="${org.jboss.esb.internal.javadocs.dest}" + packagenames="${org.jboss.esb.javadocs.list}" + > + <classpath> + <path path="${org.jboss.esb.internal.src}"/> + </classpath> + </javadoc> + </target> + + <!-- + I am presuming, the install dir for now is just a place holder + for the final build artifacts. + --> + <target name="install" depends="org.jboss.esb.jar,org.jboss.esb.sar"> + + <echo message="Installation directory : ${org.jboss.esb.installationdirectory}"/> + + <echo message="Installing jar files"/> + <copy + todir="${org.jboss.esb.installationdirectory}/lib" + > + <fileset dir="lib"> + <include name="*.jar"/> + <include name="*.sar"/> + </fileset> + </copy> + + <echo message="Installing xml"/> + <mkdir dir="${org.jboss.esb.installationdirectory}/xml"/> + <copy + todir="${org.jboss.esb.installationdirectory}/xml" + > + <fileset dir="xml"/> + </copy> + + <echo message="Installing javadocs"/> + <mkdir dir="${org.jboss.esb.installationdirectory}/javadocs"/> + <copy + todir="${org.jboss.esb.installationdirectory}/javadocs" + > + <fileset dir="javadocs"/> + </copy> + + </target> + + <!-- + Deploy the config files and the sar to the server + --> + <target name="deploy" depends="sar"> + + <echo message="Deploying conf to : ${jboss.home}/server/${standalone.esb.config.name}/conf"/> + <copy todir="${jboss.home}/server/${standalone.esb.config.name}/conf"> + <fileset dir="${org.jboss.esb.internal.etc}/server/default/config"/> + </copy> + <echo message="Deploying sar to : ${jboss.home}/server/${standalone.esb.config.name}/deploy"/> + <copy file="${org.jboss.esb.internal.jar.dest}/${org.jboss.esb.internal.modulename}.sar" todir="${jboss.home}/server/${standalone.esb.config.name}/deploy"/> + + </target> + + + <!-- + These tasks create a slimmed down standalone messaging server + instance and are taken from ovidiu work, + see jboss-jms/util/release-admin.xml + --> + <target name="validate-jboss"> + <fail unless="jboss.home" message="JBOSS_HOME environment variable not set! Set it and try again."/> + <available property="default-config" type="dir" file="${jboss.home}/server/default"/> + <fail unless="default-config" message="${jboss.home}/server/default not found!"/> + </target> + + <target name="standalone" depends="validate-jboss"> + <echo message="Creating Standalone Messaging configuration '${standalone.esb.config.name}' for ${jboss.home} based on ${messaging.sar.name}"/> + <mkdir dir="${jboss.home}/server/${standalone.esb.config.name}/conf"/> + <mkdir dir="${jboss.home}/server/${standalone.esb.config.name}/lib"/> + <mkdir dir="${jboss.home}/server/${standalone.esb.config.name}/deploy"/> + <copy todir="${jboss.home}/server/${standalone.esb.config.name}/conf"> + <fileset dir="${jboss.home}/server/default/conf"> + <include name="jboss-service.xml"/> + <include name="jndi.properties"/> + <include name="log4j.xml"/> + <include name="login-config.xml"/> + <include name="props/**"/> + <include name="xmdesc/**"/> + </fileset> + </copy> + <copy todir="${jboss.home}/server/${standalone.esb.config.name}/deploy"> + <fileset dir="${jboss.home}/server/default/deploy"> + <include name="hsqldb-ds.xml"/> + <include name="jboss-local-jdbc.rar"/> + <include name="jbossjca-service.xml"/> + <include name="jbossweb-tomcat55.sar/**"/> + <include name="jmx-console.war/**"/> + <include name="jmx-invoker-service.xml"/> + <include name="management/**"/> + <include name="properties-service.xml"/> + </fileset> + </copy> + <copy todir="${jboss.home}/server/${standalone.esb.config.name}/lib"> + <fileset dir="${jboss.home}/server/default/lib"> + <include name="commons*.jar"/> + <include name="hsqldb*.jar"/> + <include name="javax.servlet*.jar"/> + <include name="jboss-common-jdbc-wrapper.jar"/> + <include name="jboss-j2ee.jar"/> + <include name="jboss-jca.jar"/> + <include name="jboss-management.jar"/> + <include name="jboss-monitoring.jar"/> + <include name="jboss-transaction.jar"/> + <include name="jboss.jar"/> + <include name="jbosssx.jar"/> + <include name="jmx-adaptor-plugin.jar"/> + <include name="jnpserver.jar"/> + <include name="log4j.jar"/> + <include name="properties-plugin.jar"/> + </fileset> + </copy> + <!-- slim down jboss-service.xml --> + <replaceregexp file="${jboss.home}/server/${standalone.esb.config.name}/conf/jboss-service.xml" flags="s"> + <regexp pattern="(\x3cmbean code=\x22org.jboss.management.j2ee.LocalJBossServerDomain\x22.*jboss:service=CorbaORB\x3c/attribute\x3e[ \t\n\r]*\x3c/mbean\x3e)"/> + <substitution expression=""/> + </replaceregexp> + <replaceregexp file="${jboss.home}/server/${standalone.esb.config.name}/conf/jboss-service.xml" flags="s"> + <regexp pattern="(\x3cmbean code=\x22org.jboss.util.property.jmx.SystemPropertyClassValue\x22.*org.jboss.system.JBossRMIClassLoader\x3c/attribute\x3e[ \t\n\r]*\x3c/mbean\x3e)"/> + <substitution expression=""/> + </replaceregexp> + <replaceregexp file="${jboss.home}/server/${standalone.esb.config.name}/conf/jboss-service.xml" flags="s"> + <regexp pattern="(\x3cmbean code=\x22org.jboss.web.WebService\x22.*\x3cdepends optional-attribute-name=\x22ThreadPool\x22[ \t\n\r]*proxy-type=\x22attribute\x22\x3ejboss.system:service=ThreadPool\x3c/depends\x3e[ \t\n\r]*\x3c/mbean\x3e)"/> + <substitution expression=""/> + </replaceregexp> + <replaceregexp file="${jboss.home}/server/${standalone.esb.config.name}/conf/jboss-service.xml" flags="s"> + <regexp pattern="(\x3cmbean code=\x22org.jboss.tm.usertx.server.ClientUserTransactionService\x22.*\x3cdepends\x3ejboss:service=invoker,type=jrmp\x3c/depends\x3e[ \t\n\r]*\x3c/mbean\x3e[ \t\n\r]*\x3c/depends\x3e[ \t\n\r]*\x3c/mbean\x3e)"/> + <substitution expression=""/> + </replaceregexp> + <replaceregexp file="${jboss.home}/server/${standalone.esb.config.name}/conf/jboss-service.xml" flags="s"> + <regexp pattern="(\x3cmbean code=\x22org.jboss.invocation.pooled.server.PooledInvoker\x22.*\x3cdepends optional-attribute-name=\x22TransactionManagerService\x22\x3ejboss:service=TransactionManager\x3c/depends\x3e[ \t\n\r]*\x3c/mbean\x3e)"/> + <substitution expression=""/> + </replaceregexp> + <replaceregexp file="${jboss.home}/server/${standalone.esb.config.name}/conf/jboss-service.xml" flags="s"> + <regexp pattern="(\x3cmbean code=\x22org.jboss.ejb.plugins.cmp.jdbc.metadata.MetaDataLibrary\x22.*name=\x22jboss.jdbc:service=metadata\x22/\x3e)"/> + <substitution expression=""/> + </replaceregexp> + <!-- customize login-config.xml --> + <replaceregexp file="${jboss.home}/server/${standalone.esb.config.name}/conf/login-config.xml" flags="s"> + <regexp pattern="(\x3cpolicy\x3e)"/> + <substitution expression="\1 <application-policy name = "messaging"> + <authentication><login-module code = "org.jboss.security.auth.spi.UsersRolesLoginModule" + flag = "required" > + <module-option name = "unauthenticatedIdentity">guest</module-option> + <module-option name = "usersProperties">messaging-users.properties</module-option> + <module-option name = "rolesProperties">messaging-roles.properties</module-option> + </login-module></authentication></application-policy>"/> + </replaceregexp> + <replaceregexp file="${jboss.home}/server/${standalone.esb.config.name}/conf/login-config.xml" flags="s"> + <regexp pattern="(\x3cpolicy\x3e)"/> + <substitution expression="\1 <application-policy name = "messaging"> + <authentication><login-module code = "org.jboss.security.auth.spi.UsersRolesLoginModule" + flag = "required" > + <module-option name = "unauthenticatedIdentity">guest</module-option> + <module-option name = "usersProperties">messaging-users.properties</module-option> + <module-option name = "rolesProperties">messaging-roles.properties</module-option> + </login-module></authentication></application-policy>"/> + </replaceregexp> + <replaceregexp file="${jboss.home}/server/${standalone.esb.config.name}/conf/login-config.xml" flags="s"> + <regexp pattern="(\x3capplication-policy name = \x22jbossmq\x22\x3e.*FROM JMS_ROLES WHERE USERID=.\x3c/module-option\x3e[ \t\n\r]*\x3c/login-module\x3e[ \t\n\r]*\x3c/authentication\x3e[ \t\n\r]*\x3c/application-policy\x3e)"/> + <substitution expression=""/> + </replaceregexp> + <replaceregexp file="${jboss.home}/server/${standalone.esb.config.name}/conf/login-config.xml" flags="s"> + <regexp pattern="(\x3capplication-policy name = \x22jbossmq\x22\x3e.*jboss.mq:service=StateManager\x3c/module-option\x3e[ \t\n\r]*\x3c/login-module\x3e[ \t\n\r]*\x3c/authentication\x3e[ \t\n\r]*\x3c/application-policy\x3e)"/> + <substitution expression=""/> + </replaceregexp> + <replaceregexp file="${jboss.home}/server/${standalone.esb.config.name}/conf/login-config.xml" flags="s"> + <regexp pattern="(\x3capplication-policy name=\x22JBossWS\x22\x3e.*\x3cmodule-option name=\x22unauthenticatedIdentity\x22\x3eanonymous\x3c/module-option\x3e[ \t\n\r]*\x3c/login-module\x3e[ \t\n\r]*\x3c/authentication\x3e[ \t\n\r]*\x3c/application-policy\x3e)"/> + <substitution expression=""/> + </replaceregexp> + <!-- customize hsqldb-ds.xml --> + <replaceregexp file="${jboss.home}/server/${standalone.esb.config.name}/deploy/hsqldb-ds.xml" flags="s"> + <regexp pattern="(\x3cmetadata\x3e[ \t\n\r]*\x3ctype-mapping\x3eHypersonic SQL\x3c/type-mapping\x3e[ \t\n\r]*\x3c/metadata\x3e)"/> + <substitution expression=""/> + </replaceregexp> + <!-- get rid of the AJP connector --> + <replaceregexp file="${jboss.home}/server/${standalone.esb.config.name}/deploy/jbossweb-tomcat55.sar/server.xml" + flags="s"> + <regexp pattern="(\x3cConnector port=\x228009\x22.*protocol=\x22AJP/1.3\x22/\x3e)"/> + <substitution expression=""/> + </replaceregexp> + <!-- deploy exploded messaging --> + <unjar src="${relative.sar.location}/${messaging.sar.name}" + dest="${jboss.home}/server/${standalone.esb.config.name}/deploy/jboss-messaging.sar"> + </unjar> + <!-- un-scope the deployment --> + <move todir="${jboss.home}/server/${standalone.esb.config.name}/lib"> + <fileset dir="${jboss.home}/server/${standalone.esb.config.name}/deploy/jboss-messaging.sar"> + <include name="javassist.jar"/> + <include name="jboss-aop.jar"/> + <include name="jboss-aspect-library.jar"/> + <include name="jboss-common-softvaluehashmap.jar"/> + <include name="jboss-common-stream.jar"/> + <include name="jboss-remoting.jar"/> + <include name="jboss-serialization.jar"/> + <include name="jboss-unified-invocation.jar"/> + <include name="trove.jar"/> + </fileset> + </move> + <replaceregexp + file="${jboss.home}/server/${standalone.esb.config.name}/deploy/jboss-messaging.sar/META-INF/jboss-service.xml" + flags="s"> + <regexp pattern="(\x3cloader-repository\x3e.*\x3c/loader-repository\x3e)"/> + <substitution expression=""/> + </replaceregexp> + <delete file="${jboss.home}/server/${standalone.esb.config.name}/deploy/jboss-messaging.sar/jms-ds.xml"/> + </target> + + + <!-- Clean targets --> + <target name="org.jboss.esb.clean"> + <echo message="Cleaning module"/> + <delete dir="${org.jboss.esb.internal.dest}"/> + <delete dir="${org.jboss.esb.internal.dest.root}"/> + <delete dir="${org.jboss.esb.internal.javadocs.dest}"/> + <delete file="${org.jboss.esb.internal.jar.dest}/${org.jboss.esb.internal.modulename}.jar"/> + <delete file="${org.jboss.esb.internal.jar.dest}/${org.jboss.esb.internal.modulename}.sar"/> + </target> + + <!-- Short target names --> + <target name="compile" depends="org.jboss.esb.compile"/> + <target name="jar" depends="org.jboss.esb.jar"/> + <target name="sar" depends="org.jboss.esb.sar"/> + <target name="clean" depends="org.jboss.esb.clean"/> </project> |
From: <jbo...@li...> - 2006-04-20 10:13:35
|
Author: arvinder Date: 2006-04-20 06:11:01 -0400 (Thu, 20 Apr 2006) New Revision: 3843 Added: labs/jbossesb/branches/JBESB-13/lib/dependency/ labs/jbossesb/branches/JBESB-13/lib/dependency/jboss-jms/ labs/jbossesb/branches/JBESB-13/lib/dependency/jboss-jms/jboss-messaging-scoped.sar labs/jbossesb/branches/JBESB-13/lib/dependency/microcontainer/ labs/jbossesb/branches/JBESB-13/lib/dependency/microcontainer/jboss-container.jar labs/jbossesb/branches/JBESB-13/lib/dependency/microcontainer/jboss-dependency.jar labs/jbossesb/branches/JBESB-13/lib/dependency/microcontainer/jboss-microcontainer.jar labs/jbossesb/branches/JBESB-13/lib/dependency/microcontainer/jboss-xml-binding.jar labs/jbossesb/branches/JBESB-13/lib/dependency/microcontainer/namespace.jar labs/jbossesb/branches/JBESB-13/lib/dependency/microcontainer/xercesImpl.jar labs/jbossesb/branches/JBESB-13/lib/dependency/microcontainer/xml-apis.jar Log: Added: labs/jbossesb/branches/JBESB-13/lib/dependency/jboss-jms/jboss-messaging-scoped.sar =================================================================== (Binary files differ) Property changes on: labs/jbossesb/branches/JBESB-13/lib/dependency/jboss-jms/jboss-messaging-scoped.sar ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: labs/jbossesb/branches/JBESB-13/lib/dependency/microcontainer/jboss-container.jar =================================================================== (Binary files differ) Property changes on: labs/jbossesb/branches/JBESB-13/lib/dependency/microcontainer/jboss-container.jar ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: labs/jbossesb/branches/JBESB-13/lib/dependency/microcontainer/jboss-dependency.jar =================================================================== (Binary files differ) Property changes on: labs/jbossesb/branches/JBESB-13/lib/dependency/microcontainer/jboss-dependency.jar ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: labs/jbossesb/branches/JBESB-13/lib/dependency/microcontainer/jboss-microcontainer.jar =================================================================== (Binary files differ) Property changes on: labs/jbossesb/branches/JBESB-13/lib/dependency/microcontainer/jboss-microcontainer.jar ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: labs/jbossesb/branches/JBESB-13/lib/dependency/microcontainer/jboss-xml-binding.jar =================================================================== (Binary files differ) Property changes on: labs/jbossesb/branches/JBESB-13/lib/dependency/microcontainer/jboss-xml-binding.jar ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: labs/jbossesb/branches/JBESB-13/lib/dependency/microcontainer/namespace.jar =================================================================== (Binary files differ) Property changes on: labs/jbossesb/branches/JBESB-13/lib/dependency/microcontainer/namespace.jar ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: labs/jbossesb/branches/JBESB-13/lib/dependency/microcontainer/xercesImpl.jar =================================================================== (Binary files differ) Property changes on: labs/jbossesb/branches/JBESB-13/lib/dependency/microcontainer/xercesImpl.jar ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: labs/jbossesb/branches/JBESB-13/lib/dependency/microcontainer/xml-apis.jar =================================================================== (Binary files differ) Property changes on: labs/jbossesb/branches/JBESB-13/lib/dependency/microcontainer/xml-apis.jar ___________________________________________________________________ Name: svn:mime-type + application/octet-stream |
From: <jbo...@li...> - 2006-04-20 10:09:49
|
Author: arvinder Date: 2006-04-20 06:09:38 -0400 (Thu, 20 Apr 2006) New Revision: 3842 Modified: labs/jbossesb/branches/JBESB-13/ESBCore/classes/org/jboss/soa/esbcore/deploy/bootstrap/container/JBossESBKernel.java Log: Modified: labs/jbossesb/branches/JBESB-13/ESBCore/classes/org/jboss/soa/esbcore/deploy/bootstrap/container/JBossESBKernel.java =================================================================== --- labs/jbossesb/branches/JBESB-13/ESBCore/classes/org/jboss/soa/esbcore/deploy/bootstrap/container/JBossESBKernel.java 2006-04-20 08:19:43 UTC (rev 3841) +++ labs/jbossesb/branches/JBESB-13/ESBCore/classes/org/jboss/soa/esbcore/deploy/bootstrap/container/JBossESBKernel.java 2006-04-20 10:09:38 UTC (rev 3842) @@ -132,7 +132,7 @@ log.info("Deploying " + url); KernelDeployment deployment = deployer.deploy(url); if(log.isTraceEnabled()) { - log.trace("KernelDeployment:BeanFactories=" + deployment.getBeanFactories()); + //log.trace("KernelDeployment:BeanFactories=" + deployment.getBeanFactories()); log.trace("KernelDeployment:Bean =" + deployment.getBeans()); log.trace("KernelDeployment:ClassLoader =" + deployment.getClassLoader()); log.trace("KernelDeployment:InstalledCtxs=" + deployment.getInstalledContexts()); |
From: <jbo...@li...> - 2006-04-20 08:19:54
|
Author: mic...@jb... Date: 2006-04-20 04:19:43 -0400 (Thu, 20 Apr 2006) New Revision: 3841 Modified: labs/jbossrules/trunk/documentation/manual/en/Chapter-Rule_Language/Section-DSL.xml Log: more goodness Modified: labs/jbossrules/trunk/documentation/manual/en/Chapter-Rule_Language/Section-DSL.xml =================================================================== --- labs/jbossrules/trunk/documentation/manual/en/Chapter-Rule_Language/Section-DSL.xml 2006-04-20 07:20:38 UTC (rev 3840) +++ labs/jbossrules/trunk/documentation/manual/en/Chapter-Rule_Language/Section-DSL.xml 2006-04-20 08:19:43 UTC (rev 3841) @@ -3,11 +3,10 @@ <title>Domain Specific Languages</title> <para>As mentioned previously, <indexterm> - <primary>Domain Specific Languages</primary> - </indexterm>(or DSLs) are a way - of extending the rule language to your problem domain. They are wired in to - the rule language for you, and can make use of all the underlying rule - langauge and engine features.</para> + <primary>Domain Specific Languages</primary> + </indexterm>(or DSLs) are a way of extending the rule language to your + problem domain. They are wired in to the rule language for you, and can make + use of all the underlying rule langauge and engine features.</para> <section> <title>When to use a DSL</title> @@ -31,43 +30,78 @@ <title>Creating and editing a DSL</title> <para>A DSL's configuration like most things is stored in plain text. If - you use the IDE, you get a nice graphical editor, but the format of the - file is quite simple, and is basically a properties file.</para> + you use the IDE, you get a nice graphical editor (with some validation), + but the format of the file is quite simple, and is basically a properties + file.</para> <example> - <title>Example <indexterm><primary>DSL</primary></indexterm> mapping</title> + <title>Example <indexterm> + <primary>DSL</primary> + </indexterm> mapping</title> <programlisting>[when]This is {something}=Something(something=={something})</programlisting> </example> - - <para>Refering to the above example, the [when] refers to the scope of the - expression: ie does it belong on the LHS or the RHS of a rule. The part - after the [scope] is the expression that you use in the rule (typically a - natural language expression, but it doesn't have to be). The part on the - right of the "=" is the mapping into the rule language (of course the form - of this depends on if you are talking about the RHS or the LHS).</para> + <para>Refering to the above example, the [when] refers to the scope of the + expression: ie does it belong on the LHS or the RHS of a rule. The part + after the [scope] is the expression that you use in the rule (typically a + natural language expression, but it doesn't have to be). The part on the + right of the "=" is the mapping into the rule language (of course the form + of this depends on if you are talking about the RHS or the LHS - if its + the LHS, then its the normal LHS syntax, if its the RHS then its fragments + of java code for instance).</para> - <para>The parser will take the expression you specify, and extract the - values that match where the {something} appear in the input. The values are - then interpolated with the corresponding {something} on the right hand side - of the mapping.</para> + <para>The parser will take the expression you specify, and extract the + values that match where the {something} (named Tokens) appear in the + input. The values that match the tokens are then interpolated with the + corresponding {something} (named Tokens) on the right hand side of the + mapping (the target expression).</para> - <para> - It is important to note that the DSL expressions are processed one line at a time. This means that in the above example, all the text after "There is " will be included as the value for "{something}" when it is interpolated into the target string. This may not be exactly what you want, as you may want to "chain" together different - </para> + <para>It is important to note that the DSL expressions are processed one + line at a time. This means that in the above example, all the text after + "There is " will be included as the value for "{something}" when it is + interpolated into the target string. This may not be exactly what you + want, as you may want to "chain" together different DSL expressions to + generate a target expression. The best way around this is to make sure + that the {tokens} are enclosed with characters or words. This means that + the parser will scan along the sentence, and pluck out the value BETWEEN + the characters (in the example below they are doublequotes). Note that the + characters that surrount the token are not included in when interpolating, + just the contents between them (rather then all the way to the end of the + line, as would otherwise be the case).</para> - <example> + <para>As a rule of thumb, use quotes for textual data that a rule editor + may want to enter. You can also wrap words around the {tokens} to make + sure you enclose the data you want to capture (see other example).</para> + + <example> <title>Example with quotes</title> - <programlisting>[when]This is "{something}" and "{another}"=Something(something=="{something}", another="{another}")</programlisting> + <programlisting>[when]This is "{something}" and "{another}"=Something(something=="{something}", another=="{another}") +[when]This is {also} valid=Another(something=="{also}")</programlisting> </example> - <para> - - </para> -</section> + <para>It is a good idea to try and avoid punctuation in your DSL + expressions where possible, other then quotes and the like - keep it + simple it things will be easier. Using a DSL can make debugging slightly + harder when you are first building rules, but it can make the maintenance + easier.</para> + <para>Don't forget that if you are capturing strings from users, you will + also need the quotes on the right hand side of the mapping, just like a + normal rule.</para> + + <example> + <title>Some more examples</title> + + <programlisting>#This is a comment to be ignored. +[when]There is a Person with name of "{name}"=Person(name=="{name}") +[when]Person is at least {age} years old and lives in "{location}"=Person(age > {age}, location=="{location}") +[then]Log "{message}"=System.out.println("{message}"); +</programlisting> + </example> + </section> + <section> <title>Using a DSL in your rules</title> @@ -102,6 +136,6 @@ <section> <title>How it works</title> - <para /> + <para></para> </section> </section> \ No newline at end of file |
From: <jbo...@li...> - 2006-04-20 07:20:48
|
Author: mic...@jb... Date: 2006-04-20 03:20:38 -0400 (Thu, 20 Apr 2006) New Revision: 3840 Modified: labs/jbossrules/trunk/documentation/manual/en/Chapter-Install/Section-Setup.xml labs/jbossrules/trunk/documentation/manual/en/Chapter-Rule_Language/Section-DSL.xml labs/jbossrules/trunk/documentation/manual/en/Chapter-Rule_Language/Section-Query.xml labs/jbossrules/trunk/documentation/manual/en/Chapter-Rule_Language/Section-Rule.xml Log: more goodness Modified: labs/jbossrules/trunk/documentation/manual/en/Chapter-Install/Section-Setup.xml =================================================================== --- labs/jbossrules/trunk/documentation/manual/en/Chapter-Install/Section-Setup.xml 2006-04-20 07:15:02 UTC (rev 3839) +++ labs/jbossrules/trunk/documentation/manual/en/Chapter-Install/Section-Setup.xml 2006-04-20 07:20:38 UTC (rev 3840) @@ -15,7 +15,7 @@ <listitem> <para><indexterm> <primary>eclipse</primary> - </indexterm>Eclipse 3.2M5</para> + </indexterm>Eclipse 3.2</para> <para>http://www.eclipse.org/</para> </listitem> @@ -43,7 +43,7 @@ <listitem> <para><indexterm> - <primary>naven</primary> + <primary>Maven</primary> </indexterm>Maven 2</para> <para>http://maven.apache.org</para> Modified: labs/jbossrules/trunk/documentation/manual/en/Chapter-Rule_Language/Section-DSL.xml =================================================================== --- labs/jbossrules/trunk/documentation/manual/en/Chapter-Rule_Language/Section-DSL.xml 2006-04-20 07:15:02 UTC (rev 3839) +++ labs/jbossrules/trunk/documentation/manual/en/Chapter-Rule_Language/Section-DSL.xml 2006-04-20 07:20:38 UTC (rev 3840) @@ -2,7 +2,9 @@ <section> <title>Domain Specific Languages</title> - <para>As mentioned previously, Domain Specific Languages (or DSLs) are a way + <para>As mentioned previously, <indexterm> + <primary>Domain Specific Languages</primary> + </indexterm>(or DSLs) are a way of extending the rule language to your problem domain. They are wired in to the rule language for you, and can make use of all the underlying rule langauge and engine features.</para> @@ -20,29 +22,51 @@ in a template. You wish to hide away your implementation details, and focus on the business rule. You want to provide a controlled means of editing rules based on pre-defined templates.</para> + + <para>DSLs have no impact on the rules at runtime, they are just a + parse/compile time feature.</para> </section> <section> - <title>Creating a DSL</title> + <title>Creating and editing a DSL</title> - <para>A DSL's configuration like most things is stored in plain text. If you use the IDE, you get a nice graphical editor, but the format - of the file is quite simple, and is basically a properties file.</para> + <para>A DSL's configuration like most things is stored in plain text. If + you use the IDE, you get a nice graphical editor, but the format of the + file is quite simple, and is basically a properties file.</para> <example> - <title>Example DSL mapping</title> + <title>Example <indexterm><primary>DSL</primary></indexterm> mapping</title> <programlisting>[when]This is {something}=Something(something=={something})</programlisting> </example> - </section> + + <para>Refering to the above example, the [when] refers to the scope of the + expression: ie does it belong on the LHS or the RHS of a rule. The part + after the [scope] is the expression that you use in the rule (typically a + natural language expression, but it doesn't have to be). The part on the + right of the "=" is the mapping into the rule language (of course the form + of this depends on if you are talking about the RHS or the LHS).</para> + + <para>The parser will take the expression you specify, and extract the + values that match where the {something} appear in the input. The values are + then interpolated with the corresponding {something} on the right hand side + of the mapping.</para> + + <para> + It is important to note that the DSL expressions are processed one line at a time. This means that in the above example, all the text after "There is " will be included as the value for "{something}" when it is interpolated into the target string. This may not be exactly what you want, as you may want to "chain" together different + </para> + + <example> + <title>Example with quotes</title> + + <programlisting>[when]This is "{something}" and "{another}"=Something(something=="{something}", another="{another}")</programlisting> + </example> + <para> - Refering to the above example, the [when] refers to the scope of the expression: ie does it belong on the LHS or the RHS of a rule. - The part after the [scope] is the expression that you use in the rule (typically a natural language expression, but it doesn't have to be). - The part on the right of the "=" is the mapping into the rule language (of course the form of this depends on if you are talking about the RHS or the LHS). + </para> - <para> - The parser will take the expression you specify, and extract the values that match where the {something} appear in the input. The values are then interpolated with the corresponding {something} on the right hand side of the mapping. - </para> +</section> <section> <title>Using a DSL in your rules</title> @@ -78,6 +102,6 @@ <section> <title>How it works</title> - <para></para> + <para /> </section> </section> \ No newline at end of file Modified: labs/jbossrules/trunk/documentation/manual/en/Chapter-Rule_Language/Section-Query.xml =================================================================== --- labs/jbossrules/trunk/documentation/manual/en/Chapter-Rule_Language/Section-Query.xml 2006-04-20 07:15:02 UTC (rev 3839) +++ labs/jbossrules/trunk/documentation/manual/en/Chapter-Rule_Language/Section-Query.xml 2006-04-20 07:20:38 UTC (rev 3840) @@ -21,7 +21,5 @@ for facts that match the conditions stated. </para> <para>You use WorkingMemory.getQueryResults("name") by using the query name. - This will return a list of Tuple instances. Each Tuple instance has one or - more FactHandles. To get to the original Fact object, use - WorkingMemory.getObject(factHandle).</para> + This will return a QueryResults object. This contains a list of query results, which allow you to to get to the objects that matched the query.</para> </section> \ No newline at end of file Modified: labs/jbossrules/trunk/documentation/manual/en/Chapter-Rule_Language/Section-Rule.xml =================================================================== --- labs/jbossrules/trunk/documentation/manual/en/Chapter-Rule_Language/Section-Rule.xml 2006-04-20 07:15:02 UTC (rev 3839) +++ labs/jbossrules/trunk/documentation/manual/en/Chapter-Rule_Language/Section-Rule.xml 2006-04-20 07:20:38 UTC (rev 3840) @@ -427,7 +427,7 @@ <example> <title>Boolean Literal Constraint</title> - <programlisting>Cheese( smelly = true )</programlisting> + <programlisting>Cheese( smelly == true )</programlisting> </example> </simplesect> |
From: <jbo...@li...> - 2006-04-20 07:15:13
|
Author: mic...@jb... Date: 2006-04-20 03:15:02 -0400 (Thu, 20 Apr 2006) New Revision: 3839 Added: labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/compiler/PackageBuilderConfigurationTest.java Modified: labs/jbossrules/trunk/drools-compiler/src/main/java/org/drools/compiler/PackageBuilderConfiguration.java Log: added drools.compiler system property option Modified: labs/jbossrules/trunk/drools-compiler/src/main/java/org/drools/compiler/PackageBuilderConfiguration.java =================================================================== --- labs/jbossrules/trunk/drools-compiler/src/main/java/org/drools/compiler/PackageBuilderConfiguration.java 2006-04-20 06:25:34 UTC (rev 3838) +++ labs/jbossrules/trunk/drools-compiler/src/main/java/org/drools/compiler/PackageBuilderConfiguration.java 2006-04-20 07:15:02 UTC (rev 3839) @@ -19,12 +19,25 @@ import org.apache.commons.jci.compilers.JavaCompilerFactory; import org.drools.RuntimeDroolsException; +/** + * This class configures the package compiler. + * There are options to use various flavours of runtime compilers. + * Apache JCI is used as the interface to all the runtime compilers. + * You may also use this class to override the class loader defaults that are otherwise used. + * Normally you will not need to look at this class, unless you want to override the defaults. + * + * You can also use the system property "drools.compiler" to set the desired compiler. + * The valid values are "ECLIPSE" and "JANINO" only. + */ public class PackageBuilderConfiguration { - public static final int ECLIPSE = 0; - public static final int JANINO = 1; + public static final int ECLIPSE = JavaCompilerFactory.ECLIPSE; + public static final int JANINO = JavaCompilerFactory.JANINO; + + /** This will be only setup once. It tries to look for a system property */ + private static final int CONFIGURED_COMPILER = getDefaultCompiler(); + + private int compiler = CONFIGURED_COMPILER; - private int compiler = JavaCompilerFactory.ECLIPSE; - private ClassLoader classLoader; public PackageBuilderConfiguration() { @@ -39,6 +52,10 @@ return this.compiler; } + /** + * Set the compiler to be used when building the rules semantic code blocks. + * This overrides the default, and even what was set as a system property. + */ public void setCompiler(int compiler) { switch ( compiler ) { case PackageBuilderConfiguration.ECLIPSE : @@ -56,9 +73,32 @@ return this.classLoader; } + /** Use this to override the classloader that will be used for the rules. */ public void setClassLoader(ClassLoader classLoader) { if ( classLoader != null ) { this.classLoader = classLoader; } } + + /** + * This will attempt to read the System property to work out what default to set. + * This should only be done once when the class is loaded. After that point, you will have + * to programmatically override it. + */ + static int getDefaultCompiler() { + try { + String prop = System.getProperty( "drools.compiler", "ECLIPSE" ); + if (prop.equals( "ECLIPSE".intern() )) { + return ECLIPSE; + } else if (prop.equals( "JANINO" )) { + return JANINO; + } else { + System.err.println("Drools config: unable to use the drools.compiler property. Using default. It was set to:" + prop); + return ECLIPSE; + } + } catch (SecurityException e) { + System.err.println("Drools config: unable to read the drools.compiler property. Using default."); + return ECLIPSE; + } + } } \ No newline at end of file Added: labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/compiler/PackageBuilderConfigurationTest.java =================================================================== --- labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/compiler/PackageBuilderConfigurationTest.java 2006-04-20 06:25:34 UTC (rev 3838) +++ labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/compiler/PackageBuilderConfigurationTest.java 2006-04-20 07:15:02 UTC (rev 3839) @@ -0,0 +1,32 @@ +package org.drools.compiler; + +import junit.framework.TestCase; + +public class PackageBuilderConfigurationTest extends TestCase { + + public void testSystemProperty() { + PackageBuilderConfiguration cfg = new PackageBuilderConfiguration(); + assertEquals(cfg.getCompiler(), PackageBuilderConfiguration.getDefaultCompiler()); + + System.setProperty( "drools.compiler", "JANINO" ); + assertEquals(PackageBuilderConfiguration.JANINO, PackageBuilderConfiguration.getDefaultCompiler()); + + PackageBuilderConfiguration cfg2 = new PackageBuilderConfiguration(); + assertEquals(cfg.getCompiler(), cfg2.getCompiler()); + + System.setProperty( "drools.compiler", "ECLIPSE" ); + assertEquals(PackageBuilderConfiguration.ECLIPSE, PackageBuilderConfiguration.getDefaultCompiler()); + + cfg2.setCompiler( PackageBuilderConfiguration.ECLIPSE ); + assertEquals(PackageBuilderConfiguration.ECLIPSE, cfg2.getCompiler()); + + cfg2.setCompiler( PackageBuilderConfiguration.JANINO ); + assertEquals(PackageBuilderConfiguration.JANINO, cfg2.getCompiler()); + + PackageBuilderConfiguration cfg3 = new PackageBuilderConfiguration(); + + assertEquals(cfg.getCompiler(), cfg3.getCompiler()); + + } + +} Property changes on: labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/compiler/PackageBuilderConfigurationTest.java ___________________________________________________________________ Name: svn:eol-style + native |
From: <jbo...@li...> - 2006-04-20 06:25:43
|
Author: mic...@jb... Date: 2006-04-20 02:25:34 -0400 (Thu, 20 Apr 2006) New Revision: 3838 Modified: labs/jbossrules/trunk/drools-compiler/src/test/resources/org/drools/integrationtests/test_FunctionInConsequence.drl Log: changed to be OK with janino... wierd Modified: labs/jbossrules/trunk/drools-compiler/src/test/resources/org/drools/integrationtests/test_FunctionInConsequence.drl =================================================================== --- labs/jbossrules/trunk/drools-compiler/src/test/resources/org/drools/integrationtests/test_FunctionInConsequence.drl 2006-04-20 05:09:19 UTC (rev 3837) +++ labs/jbossrules/trunk/drools-compiler/src/test/resources/org/drools/integrationtests/test_FunctionInConsequence.drl 2006-04-20 06:25:34 UTC (rev 3838) @@ -16,5 +16,5 @@ then addFive( list ); // Calling methods does not mess with function calls - String tmp = list.toString(); + System.out.println(list); end \ No newline at end of file |
From: <jbo...@li...> - 2006-04-20 05:09:26
|
Author: mic...@jb... Date: 2006-04-20 01:09:19 -0400 (Thu, 20 Apr 2006) New Revision: 3837 Modified: labs/jbossrules/trunk/documentation/manual/en/Chapter-Rule_Engine/Section-Why_use_a_Rule_Engine.xml Log: Modified: labs/jbossrules/trunk/documentation/manual/en/Chapter-Rule_Engine/Section-Why_use_a_Rule_Engine.xml =================================================================== --- labs/jbossrules/trunk/documentation/manual/en/Chapter-Rule_Engine/Section-Why_use_a_Rule_Engine.xml 2006-04-20 04:07:27 UTC (rev 3836) +++ labs/jbossrules/trunk/documentation/manual/en/Chapter-Rule_Engine/Section-Why_use_a_Rule_Engine.xml 2006-04-20 05:09:19 UTC (rev 3837) @@ -47,4 +47,20 @@ <para>Tool Integration</para> </listitem> </itemizedlist> + + <section> + <title>When not to use a rule engine</title> + <para> + To quote a Drools mailing list regular (Dave Hamu): + "It seems to me that in the excitement of working +with rules engines, that people forget that a rules engine is only one +piece of a complex application or solution. Rules engines are not +really intended to handle workflow or process executions nor are +workflow engines or process management tools designed to do rules. Use +the right tool for the job. Sure, a pair of pliers can be used as a +hammering tool in a pinch, but that's not what it's designed for." + + </para> + </section> + </section> \ No newline at end of file |
From: <jbo...@li...> - 2006-04-20 04:06:43
|
Author: woolfel Date: 2006-04-20 00:06:39 -0400 (Thu, 20 Apr 2006) New Revision: 3835 Added: labs/jbossrules/trunk/drools-examples/src/java/com/sample/benchmark/RuleSetLoad.java labs/jbossrules/trunk/drools-examples/src/java/com/sample/benchmark/RuleSetPerformance.java Removed: labs/jbossrules/trunk/drools-examples/src/java/com/sample/benchmark/RuleSetBenchmark.java Modified: labs/jbossrules/trunk/drools-examples/src/java/com/sample/benchmark/GenerateRuleSet.java Log: I renamed the RulesetBenchmark to RulesetLoad and added another unit test to measure assert/fire performance. peter Modified: labs/jbossrules/trunk/drools-examples/src/java/com/sample/benchmark/GenerateRuleSet.java =================================================================== --- labs/jbossrules/trunk/drools-examples/src/java/com/sample/benchmark/GenerateRuleSet.java 2006-04-20 04:05:10 UTC (rev 3834) +++ labs/jbossrules/trunk/drools-examples/src/java/com/sample/benchmark/GenerateRuleSet.java 2006-04-20 04:06:39 UTC (rev 3835) @@ -39,8 +39,8 @@ for (int idx=0; idx < count; idx++) { buf.append("rule rule" + idx + "" + linebreak); buf.append(" when" + linebreak); - buf.append(" $acc : Account(status == \"standard\", title == \"mr\")" - + linebreak); + buf.append(" $acc : Account(status == \"standard\", title == \"mr\", accountId == \"acc" + idx + + "\")" + linebreak); buf.append(" then" + linebreak); buf.append(" System.out.println(\"rule" + idx + " fired\");" + linebreak); buf.append("end" + linebreak + linebreak); Deleted: labs/jbossrules/trunk/drools-examples/src/java/com/sample/benchmark/RuleSetBenchmark.java =================================================================== --- labs/jbossrules/trunk/drools-examples/src/java/com/sample/benchmark/RuleSetBenchmark.java 2006-04-20 04:05:10 UTC (rev 3834) +++ labs/jbossrules/trunk/drools-examples/src/java/com/sample/benchmark/RuleSetBenchmark.java 2006-04-20 04:06:39 UTC (rev 3835) @@ -1,67 +0,0 @@ -package com.sample.benchmark; - -import junit.framework.TestCase; - -import java.io.IOException; -import java.io.InputStreamReader; -import java.io.Reader; - -import org.drools.PackageIntegrationException; -import org.drools.RuleBase; -import org.drools.RuleIntegrationException; -import org.drools.WorkingMemory; -import org.drools.compiler.DrlParser; -import org.drools.compiler.DroolsParserException; -import org.drools.compiler.PackageBuilder; -import org.drools.lang.descr.PackageDescr; -import org.drools.reteoo.RuleBaseImpl; -import org.drools.rule.InvalidPatternException; -import org.drools.rule.Package; - -/** - * @author Peter Lin - * - */ -public class RuleSetBenchmark extends TestCase { - public RuleSetBenchmark() { - super(); - } - - public void setUp() { - - } - - public void tearDown() { - - } - - private static RuleBase readRule() throws IOException, DroolsParserException, RuleIntegrationException, PackageIntegrationException, InvalidPatternException { - //read in the source - Reader reader = new InputStreamReader( RuleSetBenchmark.class.getResourceAsStream( "1000_rules.drl" ) ); - DrlParser parser = new DrlParser(); - PackageDescr packageDescr = parser.parse( reader ); - - //pre build the package - PackageBuilder builder = new PackageBuilder(); - builder.addPackage( packageDescr ); - Package pkg = builder.getPackage(); - - //add the package to a rulebase - RuleBaseImpl ruleBase = new RuleBaseImpl(); - ruleBase.addPackage( pkg ); - return ruleBase; - } - - public void testOneThousand() { - try { - long loadStart = System.currentTimeMillis(); - RuleBase ruleBase = readRule(); - long loadEnd = System.currentTimeMillis(); - System.out.println("time to load 1000 rules " + - (loadEnd - loadStart) + "ms"); - WorkingMemory workingMemory = ruleBase.newWorkingMemory(); - } catch (Exception e) { - e.printStackTrace(); - } - } -} Added: labs/jbossrules/trunk/drools-examples/src/java/com/sample/benchmark/RuleSetLoad.java =================================================================== --- labs/jbossrules/trunk/drools-examples/src/java/com/sample/benchmark/RuleSetLoad.java 2006-04-20 04:05:10 UTC (rev 3834) +++ labs/jbossrules/trunk/drools-examples/src/java/com/sample/benchmark/RuleSetLoad.java 2006-04-20 04:06:39 UTC (rev 3835) @@ -0,0 +1,89 @@ +package com.sample.benchmark; + +import junit.framework.TestCase; + +import java.io.IOException; +import java.io.InputStreamReader; +import java.io.Reader; +import java.util.ArrayList; +import java.util.Iterator; + +import org.drools.PackageIntegrationException; +import org.drools.RuleBase; +import org.drools.RuleIntegrationException; +import org.drools.WorkingMemory; +import org.drools.compiler.DrlParser; +import org.drools.compiler.DroolsParserException; +import org.drools.compiler.PackageBuilder; +import org.drools.lang.descr.PackageDescr; +import org.drools.reteoo.RuleBaseImpl; +import org.drools.rule.InvalidPatternException; +import org.drools.rule.Package; + +import com.sample.benchmark.models.Account; + +/** + * @author Peter Lin + * + */ +public class RuleSetLoad extends TestCase { + public RuleSetLoad() { + super(); + } + + public void setUp() { + + } + + public void tearDown() { + + } + + private static RuleBase readRule(String file) throws IOException, DroolsParserException, RuleIntegrationException, PackageIntegrationException, InvalidPatternException { + //read in the source + Reader reader = + new InputStreamReader( + RuleSetLoad.class.getResourceAsStream( file ) ); + DrlParser parser = new DrlParser(); + PackageDescr packageDescr = parser.parse( reader ); + + //pre build the package + PackageBuilder builder = new PackageBuilder(); + builder.addPackage( packageDescr ); + Package pkg = builder.getPackage(); + + //add the package to a rulebase + RuleBaseImpl ruleBase = new RuleBaseImpl(); + ruleBase.addPackage( pkg ); + return ruleBase; + } + + public void testOneThousandLoad() { + try { + String file = "1000_rules.drl"; + long loadStart = System.currentTimeMillis(); + RuleBase ruleBase = readRule(file); + long loadEnd = System.currentTimeMillis(); + System.out.println("time to load " + file + + " " + (loadEnd - loadStart) + "ms"); + WorkingMemory workingMemory = ruleBase.newWorkingMemory(); + } catch (Exception e) { + e.printStackTrace(); + } + } + + public void testFourThousandLoad() { + try { + String file = "4000_rules.drl"; + long loadStart = System.currentTimeMillis(); + RuleBase ruleBase = readRule(file); + long loadEnd = System.currentTimeMillis(); + System.out.println("time to load " + file + + " " + (loadEnd - loadStart) + "ms"); + WorkingMemory workingMemory = ruleBase.newWorkingMemory(); + } catch (Exception e) { + e.printStackTrace(); + } + } + +} Added: labs/jbossrules/trunk/drools-examples/src/java/com/sample/benchmark/RuleSetPerformance.java =================================================================== --- labs/jbossrules/trunk/drools-examples/src/java/com/sample/benchmark/RuleSetPerformance.java 2006-04-20 04:05:10 UTC (rev 3834) +++ labs/jbossrules/trunk/drools-examples/src/java/com/sample/benchmark/RuleSetPerformance.java 2006-04-20 04:06:39 UTC (rev 3835) @@ -0,0 +1,237 @@ +package com.sample.benchmark; + +import junit.framework.TestCase; + +import java.io.IOException; +import java.io.InputStreamReader; +import java.io.Reader; +import java.util.ArrayList; +import java.util.Iterator; + +import org.drools.PackageIntegrationException; +import org.drools.RuleBase; +import org.drools.RuleIntegrationException; +import org.drools.WorkingMemory; +import org.drools.compiler.DrlParser; +import org.drools.compiler.DroolsParserException; +import org.drools.compiler.PackageBuilder; +import org.drools.lang.descr.PackageDescr; +import org.drools.reteoo.RuleBaseImpl; +import org.drools.rule.InvalidPatternException; +import org.drools.rule.Package; + +import com.sample.benchmark.models.Account; + +/** + * @author Peter Lin + * + */ +public class RuleSetPerformance extends TestCase { + public RuleSetPerformance() { + super(); + } + + public void setUp() { + + } + + public void tearDown() { + + } + + private static RuleBase readRule(String file) throws IOException, DroolsParserException, RuleIntegrationException, PackageIntegrationException, InvalidPatternException { + //read in the source + Reader reader = + new InputStreamReader( + RuleSetPerformance.class.getResourceAsStream( file ) ); + DrlParser parser = new DrlParser(); + PackageDescr packageDescr = parser.parse( reader ); + + //pre build the package + PackageBuilder builder = new PackageBuilder(); + builder.addPackage( packageDescr ); + Package pkg = builder.getPackage(); + + //add the package to a rulebase + RuleBaseImpl ruleBase = new RuleBaseImpl(); + ruleBase.addPackage( pkg ); + return ruleBase; + } + + /** + * test the performance with 50 facts and 5 rules. The test measures + * the load, assert and fire time. + */ + public void testFiveRuleFire() { + try { + int factCount = 50000; + String file = "5_rules.drl"; + int loop = 5; + long totalload = 0; + long totalassert = 0; + long totalfire = 0; + for (int c=0; c < loop; c++) { + long loadStart = System.currentTimeMillis(); + RuleBase ruleBase = readRule(file); + long loadEnd = System.currentTimeMillis(); + long loadet = loadEnd - loadStart; + totalload += loadet; + System.out.println("time to load " + file + + " " + loadet + "ms"); + WorkingMemory workingMemory = ruleBase.newWorkingMemory(); + ArrayList objects = new ArrayList(); + // create the objects + for (int idx=0; idx < factCount; idx++) { + Account acc = new Account(); + acc.setAccountId("acc"+idx); + acc.setTitle("mr"); + acc.setStatus("standard"); + objects.add(acc); + } + Iterator itr = objects.iterator(); + long assertStart = System.currentTimeMillis(); + while( itr.hasNext() ) { + workingMemory.assertObject(itr.next()); + } + long assertEnd = System.currentTimeMillis(); + long assertet = assertEnd - assertStart; + totalassert += assertet; + System.out.println("time to assert " + assertet + + " ms"); + long fireStart = System.currentTimeMillis(); + workingMemory.fireAllRules(); + long fireEnd = System.currentTimeMillis(); + long fireet = fireEnd - fireStart; + totalfire += fireet; + System.out.println("time to fireAllRules " + fireet + + " ms"); + workingMemory.dispose(); + } + System.out.println(file); + System.out.println("number of objects asserted " + factCount); + System.out.println("average load " + (totalload/loop) + " ms"); + System.out.println("average assert " + (totalassert/loop) + " ms"); + System.out.println("average fire " + (totalfire/loop) + " ms"); + } catch (Exception e) { + e.printStackTrace(); + } + } + + /** + * + * + */ + public void testFiftyRuleFire() { + try { + int factCount = 50000; + String file = "50_rules.drl"; + int loop = 5; + long totalload = 0; + long totalassert = 0; + long totalfire = 0; + for (int c=0; c < loop; c++) { + long loadStart = System.currentTimeMillis(); + RuleBase ruleBase = readRule(file); + long loadEnd = System.currentTimeMillis(); + long loadet = loadEnd - loadStart; + totalload += loadet; + System.out.println("time to load " + file + + " " + loadet + "ms"); + WorkingMemory workingMemory = ruleBase.newWorkingMemory(); + ArrayList objects = new ArrayList(); + // create the objects + for (int idx=0; idx < factCount; idx++) { + Account acc = new Account(); + acc.setAccountId("acc"+idx); + acc.setTitle("mr"); + acc.setStatus("standard"); + objects.add(acc); + } + Iterator itr = objects.iterator(); + long assertStart = System.currentTimeMillis(); + while( itr.hasNext() ) { + workingMemory.assertObject(itr.next()); + } + long assertEnd = System.currentTimeMillis(); + long assertet = assertEnd - assertStart; + totalassert += assertet; + System.out.println("time to assert " + assertet + + " ms"); + long fireStart = System.currentTimeMillis(); + workingMemory.fireAllRules(); + long fireEnd = System.currentTimeMillis(); + long fireet = fireEnd - fireStart; + totalfire += fireet; + System.out.println("time to fireAllRules " + fireet + + " ms"); + workingMemory.dispose(); + } + System.out.println(file); + System.out.println("number of objects asserted " + factCount); + System.out.println("average load " + (totalload/loop) + " ms"); + System.out.println("average assert " + (totalassert/loop) + " ms"); + System.out.println("average fire " + (totalfire/loop) + " ms"); + } catch (Exception e) { + e.printStackTrace(); + } + } + + /** + * + * + */ + public void testFiveHundredRuleFire() { + try { + int factCount = 50000; + String file = "500_rules.drl"; + int loop = 5; + long totalload = 0; + long totalassert = 0; + long totalfire = 0; + for (int c=0; c < loop; c++) { + long loadStart = System.currentTimeMillis(); + RuleBase ruleBase = readRule(file); + long loadEnd = System.currentTimeMillis(); + long loadet = loadEnd - loadStart; + totalload += loadet; + System.out.println("time to load " + file + + " " + loadet + "ms"); + WorkingMemory workingMemory = ruleBase.newWorkingMemory(); + ArrayList objects = new ArrayList(); + // create the objects + for (int idx=0; idx < factCount; idx++) { + Account acc = new Account(); + acc.setAccountId("acc"+idx); + acc.setTitle("mr"); + acc.setStatus("standard"); + objects.add(acc); + } + Iterator itr = objects.iterator(); + long assertStart = System.currentTimeMillis(); + while( itr.hasNext() ) { + workingMemory.assertObject(itr.next()); + } + long assertEnd = System.currentTimeMillis(); + long assertet = assertEnd - assertStart; + totalassert += assertet; + System.out.println("time to assert " + assertet + + " ms"); + long fireStart = System.currentTimeMillis(); + workingMemory.fireAllRules(); + long fireEnd = System.currentTimeMillis(); + long fireet = fireEnd - fireStart; + totalfire += fireet; + System.out.println("time to fireAllRules " + fireet + + " ms"); + workingMemory.dispose(); + } + System.out.println(file); + System.out.println("number of objects asserted " + factCount); + System.out.println("average load " + (totalload/loop) + " ms"); + System.out.println("average assert " + (totalassert/loop) + " ms"); + System.out.println("average fire " + (totalfire/loop) + " ms"); + } catch (Exception e) { + e.printStackTrace(); + } + } +} |
From: <jbo...@li...> - 2006-04-20 04:05:12
|
Author: woolfel Date: 2006-04-20 00:05:10 -0400 (Thu, 20 Apr 2006) New Revision: 3834 Added: labs/jbossrules/trunk/drools-examples/src/resources/com/sample/benchmark/500_rules.drl labs/jbossrules/trunk/drools-examples/src/resources/com/sample/benchmark/50_rules.drl labs/jbossrules/trunk/drools-examples/src/resources/com/sample/benchmark/5_rules.drl Log: adding 5 rule files for testing performance as ruleset increases peter Added: labs/jbossrules/trunk/drools-examples/src/resources/com/sample/benchmark/500_rules.drl =================================================================== --- labs/jbossrules/trunk/drools-examples/src/resources/com/sample/benchmark/500_rules.drl 2006-04-20 04:00:10 UTC (rev 3833) +++ labs/jbossrules/trunk/drools-examples/src/resources/com/sample/benchmark/500_rules.drl 2006-04-20 04:05:10 UTC (rev 3834) @@ -0,0 +1,3503 @@ +package org.drools.samples +import com.sample.benchmark.models.Account; + +rule rule0 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc0") + then + System.out.println("rule0 fired"); +end + +rule rule1 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc1") + then + System.out.println("rule1 fired"); +end + +rule rule2 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc2") + then + System.out.println("rule2 fired"); +end + +rule rule3 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc3") + then + System.out.println("rule3 fired"); +end + +rule rule4 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc4") + then + System.out.println("rule4 fired"); +end + +rule rule5 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc5") + then + System.out.println("rule5 fired"); +end + +rule rule6 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc6") + then + System.out.println("rule6 fired"); +end + +rule rule7 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc7") + then + System.out.println("rule7 fired"); +end + +rule rule8 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc8") + then + System.out.println("rule8 fired"); +end + +rule rule9 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc9") + then + System.out.println("rule9 fired"); +end + +rule rule10 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc10") + then + System.out.println("rule10 fired"); +end + +rule rule11 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc11") + then + System.out.println("rule11 fired"); +end + +rule rule12 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc12") + then + System.out.println("rule12 fired"); +end + +rule rule13 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc13") + then + System.out.println("rule13 fired"); +end + +rule rule14 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc14") + then + System.out.println("rule14 fired"); +end + +rule rule15 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc15") + then + System.out.println("rule15 fired"); +end + +rule rule16 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc16") + then + System.out.println("rule16 fired"); +end + +rule rule17 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc17") + then + System.out.println("rule17 fired"); +end + +rule rule18 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc18") + then + System.out.println("rule18 fired"); +end + +rule rule19 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc19") + then + System.out.println("rule19 fired"); +end + +rule rule20 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc20") + then + System.out.println("rule20 fired"); +end + +rule rule21 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc21") + then + System.out.println("rule21 fired"); +end + +rule rule22 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc22") + then + System.out.println("rule22 fired"); +end + +rule rule23 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc23") + then + System.out.println("rule23 fired"); +end + +rule rule24 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc24") + then + System.out.println("rule24 fired"); +end + +rule rule25 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc25") + then + System.out.println("rule25 fired"); +end + +rule rule26 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc26") + then + System.out.println("rule26 fired"); +end + +rule rule27 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc27") + then + System.out.println("rule27 fired"); +end + +rule rule28 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc28") + then + System.out.println("rule28 fired"); +end + +rule rule29 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc29") + then + System.out.println("rule29 fired"); +end + +rule rule30 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc30") + then + System.out.println("rule30 fired"); +end + +rule rule31 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc31") + then + System.out.println("rule31 fired"); +end + +rule rule32 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc32") + then + System.out.println("rule32 fired"); +end + +rule rule33 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc33") + then + System.out.println("rule33 fired"); +end + +rule rule34 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc34") + then + System.out.println("rule34 fired"); +end + +rule rule35 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc35") + then + System.out.println("rule35 fired"); +end + +rule rule36 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc36") + then + System.out.println("rule36 fired"); +end + +rule rule37 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc37") + then + System.out.println("rule37 fired"); +end + +rule rule38 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc38") + then + System.out.println("rule38 fired"); +end + +rule rule39 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc39") + then + System.out.println("rule39 fired"); +end + +rule rule40 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc40") + then + System.out.println("rule40 fired"); +end + +rule rule41 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc41") + then + System.out.println("rule41 fired"); +end + +rule rule42 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc42") + then + System.out.println("rule42 fired"); +end + +rule rule43 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc43") + then + System.out.println("rule43 fired"); +end + +rule rule44 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc44") + then + System.out.println("rule44 fired"); +end + +rule rule45 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc45") + then + System.out.println("rule45 fired"); +end + +rule rule46 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc46") + then + System.out.println("rule46 fired"); +end + +rule rule47 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc47") + then + System.out.println("rule47 fired"); +end + +rule rule48 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc48") + then + System.out.println("rule48 fired"); +end + +rule rule49 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc49") + then + System.out.println("rule49 fired"); +end + +rule rule50 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc50") + then + System.out.println("rule50 fired"); +end + +rule rule51 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc51") + then + System.out.println("rule51 fired"); +end + +rule rule52 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc52") + then + System.out.println("rule52 fired"); +end + +rule rule53 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc53") + then + System.out.println("rule53 fired"); +end + +rule rule54 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc54") + then + System.out.println("rule54 fired"); +end + +rule rule55 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc55") + then + System.out.println("rule55 fired"); +end + +rule rule56 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc56") + then + System.out.println("rule56 fired"); +end + +rule rule57 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc57") + then + System.out.println("rule57 fired"); +end + +rule rule58 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc58") + then + System.out.println("rule58 fired"); +end + +rule rule59 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc59") + then + System.out.println("rule59 fired"); +end + +rule rule60 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc60") + then + System.out.println("rule60 fired"); +end + +rule rule61 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc61") + then + System.out.println("rule61 fired"); +end + +rule rule62 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc62") + then + System.out.println("rule62 fired"); +end + +rule rule63 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc63") + then + System.out.println("rule63 fired"); +end + +rule rule64 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc64") + then + System.out.println("rule64 fired"); +end + +rule rule65 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc65") + then + System.out.println("rule65 fired"); +end + +rule rule66 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc66") + then + System.out.println("rule66 fired"); +end + +rule rule67 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc67") + then + System.out.println("rule67 fired"); +end + +rule rule68 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc68") + then + System.out.println("rule68 fired"); +end + +rule rule69 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc69") + then + System.out.println("rule69 fired"); +end + +rule rule70 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc70") + then + System.out.println("rule70 fired"); +end + +rule rule71 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc71") + then + System.out.println("rule71 fired"); +end + +rule rule72 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc72") + then + System.out.println("rule72 fired"); +end + +rule rule73 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc73") + then + System.out.println("rule73 fired"); +end + +rule rule74 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc74") + then + System.out.println("rule74 fired"); +end + +rule rule75 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc75") + then + System.out.println("rule75 fired"); +end + +rule rule76 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc76") + then + System.out.println("rule76 fired"); +end + +rule rule77 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc77") + then + System.out.println("rule77 fired"); +end + +rule rule78 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc78") + then + System.out.println("rule78 fired"); +end + +rule rule79 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc79") + then + System.out.println("rule79 fired"); +end + +rule rule80 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc80") + then + System.out.println("rule80 fired"); +end + +rule rule81 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc81") + then + System.out.println("rule81 fired"); +end + +rule rule82 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc82") + then + System.out.println("rule82 fired"); +end + +rule rule83 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc83") + then + System.out.println("rule83 fired"); +end + +rule rule84 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc84") + then + System.out.println("rule84 fired"); +end + +rule rule85 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc85") + then + System.out.println("rule85 fired"); +end + +rule rule86 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc86") + then + System.out.println("rule86 fired"); +end + +rule rule87 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc87") + then + System.out.println("rule87 fired"); +end + +rule rule88 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc88") + then + System.out.println("rule88 fired"); +end + +rule rule89 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc89") + then + System.out.println("rule89 fired"); +end + +rule rule90 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc90") + then + System.out.println("rule90 fired"); +end + +rule rule91 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc91") + then + System.out.println("rule91 fired"); +end + +rule rule92 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc92") + then + System.out.println("rule92 fired"); +end + +rule rule93 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc93") + then + System.out.println("rule93 fired"); +end + +rule rule94 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc94") + then + System.out.println("rule94 fired"); +end + +rule rule95 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc95") + then + System.out.println("rule95 fired"); +end + +rule rule96 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc96") + then + System.out.println("rule96 fired"); +end + +rule rule97 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc97") + then + System.out.println("rule97 fired"); +end + +rule rule98 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc98") + then + System.out.println("rule98 fired"); +end + +rule rule99 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc99") + then + System.out.println("rule99 fired"); +end + +rule rule100 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc100") + then + System.out.println("rule100 fired"); +end + +rule rule101 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc101") + then + System.out.println("rule101 fired"); +end + +rule rule102 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc102") + then + System.out.println("rule102 fired"); +end + +rule rule103 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc103") + then + System.out.println("rule103 fired"); +end + +rule rule104 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc104") + then + System.out.println("rule104 fired"); +end + +rule rule105 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc105") + then + System.out.println("rule105 fired"); +end + +rule rule106 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc106") + then + System.out.println("rule106 fired"); +end + +rule rule107 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc107") + then + System.out.println("rule107 fired"); +end + +rule rule108 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc108") + then + System.out.println("rule108 fired"); +end + +rule rule109 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc109") + then + System.out.println("rule109 fired"); +end + +rule rule110 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc110") + then + System.out.println("rule110 fired"); +end + +rule rule111 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc111") + then + System.out.println("rule111 fired"); +end + +rule rule112 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc112") + then + System.out.println("rule112 fired"); +end + +rule rule113 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc113") + then + System.out.println("rule113 fired"); +end + +rule rule114 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc114") + then + System.out.println("rule114 fired"); +end + +rule rule115 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc115") + then + System.out.println("rule115 fired"); +end + +rule rule116 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc116") + then + System.out.println("rule116 fired"); +end + +rule rule117 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc117") + then + System.out.println("rule117 fired"); +end + +rule rule118 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc118") + then + System.out.println("rule118 fired"); +end + +rule rule119 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc119") + then + System.out.println("rule119 fired"); +end + +rule rule120 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc120") + then + System.out.println("rule120 fired"); +end + +rule rule121 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc121") + then + System.out.println("rule121 fired"); +end + +rule rule122 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc122") + then + System.out.println("rule122 fired"); +end + +rule rule123 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc123") + then + System.out.println("rule123 fired"); +end + +rule rule124 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc124") + then + System.out.println("rule124 fired"); +end + +rule rule125 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc125") + then + System.out.println("rule125 fired"); +end + +rule rule126 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc126") + then + System.out.println("rule126 fired"); +end + +rule rule127 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc127") + then + System.out.println("rule127 fired"); +end + +rule rule128 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc128") + then + System.out.println("rule128 fired"); +end + +rule rule129 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc129") + then + System.out.println("rule129 fired"); +end + +rule rule130 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc130") + then + System.out.println("rule130 fired"); +end + +rule rule131 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc131") + then + System.out.println("rule131 fired"); +end + +rule rule132 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc132") + then + System.out.println("rule132 fired"); +end + +rule rule133 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc133") + then + System.out.println("rule133 fired"); +end + +rule rule134 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc134") + then + System.out.println("rule134 fired"); +end + +rule rule135 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc135") + then + System.out.println("rule135 fired"); +end + +rule rule136 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc136") + then + System.out.println("rule136 fired"); +end + +rule rule137 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc137") + then + System.out.println("rule137 fired"); +end + +rule rule138 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc138") + then + System.out.println("rule138 fired"); +end + +rule rule139 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc139") + then + System.out.println("rule139 fired"); +end + +rule rule140 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc140") + then + System.out.println("rule140 fired"); +end + +rule rule141 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc141") + then + System.out.println("rule141 fired"); +end + +rule rule142 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc142") + then + System.out.println("rule142 fired"); +end + +rule rule143 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc143") + then + System.out.println("rule143 fired"); +end + +rule rule144 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc144") + then + System.out.println("rule144 fired"); +end + +rule rule145 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc145") + then + System.out.println("rule145 fired"); +end + +rule rule146 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc146") + then + System.out.println("rule146 fired"); +end + +rule rule147 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc147") + then + System.out.println("rule147 fired"); +end + +rule rule148 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc148") + then + System.out.println("rule148 fired"); +end + +rule rule149 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc149") + then + System.out.println("rule149 fired"); +end + +rule rule150 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc150") + then + System.out.println("rule150 fired"); +end + +rule rule151 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc151") + then + System.out.println("rule151 fired"); +end + +rule rule152 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc152") + then + System.out.println("rule152 fired"); +end + +rule rule153 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc153") + then + System.out.println("rule153 fired"); +end + +rule rule154 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc154") + then + System.out.println("rule154 fired"); +end + +rule rule155 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc155") + then + System.out.println("rule155 fired"); +end + +rule rule156 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc156") + then + System.out.println("rule156 fired"); +end + +rule rule157 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc157") + then + System.out.println("rule157 fired"); +end + +rule rule158 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc158") + then + System.out.println("rule158 fired"); +end + +rule rule159 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc159") + then + System.out.println("rule159 fired"); +end + +rule rule160 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc160") + then + System.out.println("rule160 fired"); +end + +rule rule161 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc161") + then + System.out.println("rule161 fired"); +end + +rule rule162 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc162") + then + System.out.println("rule162 fired"); +end + +rule rule163 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc163") + then + System.out.println("rule163 fired"); +end + +rule rule164 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc164") + then + System.out.println("rule164 fired"); +end + +rule rule165 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc165") + then + System.out.println("rule165 fired"); +end + +rule rule166 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc166") + then + System.out.println("rule166 fired"); +end + +rule rule167 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc167") + then + System.out.println("rule167 fired"); +end + +rule rule168 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc168") + then + System.out.println("rule168 fired"); +end + +rule rule169 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc169") + then + System.out.println("rule169 fired"); +end + +rule rule170 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc170") + then + System.out.println("rule170 fired"); +end + +rule rule171 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc171") + then + System.out.println("rule171 fired"); +end + +rule rule172 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc172") + then + System.out.println("rule172 fired"); +end + +rule rule173 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc173") + then + System.out.println("rule173 fired"); +end + +rule rule174 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc174") + then + System.out.println("rule174 fired"); +end + +rule rule175 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc175") + then + System.out.println("rule175 fired"); +end + +rule rule176 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc176") + then + System.out.println("rule176 fired"); +end + +rule rule177 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc177") + then + System.out.println("rule177 fired"); +end + +rule rule178 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc178") + then + System.out.println("rule178 fired"); +end + +rule rule179 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc179") + then + System.out.println("rule179 fired"); +end + +rule rule180 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc180") + then + System.out.println("rule180 fired"); +end + +rule rule181 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc181") + then + System.out.println("rule181 fired"); +end + +rule rule182 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc182") + then + System.out.println("rule182 fired"); +end + +rule rule183 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc183") + then + System.out.println("rule183 fired"); +end + +rule rule184 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc184") + then + System.out.println("rule184 fired"); +end + +rule rule185 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc185") + then + System.out.println("rule185 fired"); +end + +rule rule186 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc186") + then + System.out.println("rule186 fired"); +end + +rule rule187 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc187") + then + System.out.println("rule187 fired"); +end + +rule rule188 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc188") + then + System.out.println("rule188 fired"); +end + +rule rule189 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc189") + then + System.out.println("rule189 fired"); +end + +rule rule190 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc190") + then + System.out.println("rule190 fired"); +end + +rule rule191 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc191") + then + System.out.println("rule191 fired"); +end + +rule rule192 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc192") + then + System.out.println("rule192 fired"); +end + +rule rule193 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc193") + then + System.out.println("rule193 fired"); +end + +rule rule194 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc194") + then + System.out.println("rule194 fired"); +end + +rule rule195 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc195") + then + System.out.println("rule195 fired"); +end + +rule rule196 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc196") + then + System.out.println("rule196 fired"); +end + +rule rule197 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc197") + then + System.out.println("rule197 fired"); +end + +rule rule198 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc198") + then + System.out.println("rule198 fired"); +end + +rule rule199 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc199") + then + System.out.println("rule199 fired"); +end + +rule rule200 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc200") + then + System.out.println("rule200 fired"); +end + +rule rule201 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc201") + then + System.out.println("rule201 fired"); +end + +rule rule202 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc202") + then + System.out.println("rule202 fired"); +end + +rule rule203 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc203") + then + System.out.println("rule203 fired"); +end + +rule rule204 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc204") + then + System.out.println("rule204 fired"); +end + +rule rule205 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc205") + then + System.out.println("rule205 fired"); +end + +rule rule206 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc206") + then + System.out.println("rule206 fired"); +end + +rule rule207 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc207") + then + System.out.println("rule207 fired"); +end + +rule rule208 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc208") + then + System.out.println("rule208 fired"); +end + +rule rule209 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc209") + then + System.out.println("rule209 fired"); +end + +rule rule210 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc210") + then + System.out.println("rule210 fired"); +end + +rule rule211 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc211") + then + System.out.println("rule211 fired"); +end + +rule rule212 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc212") + then + System.out.println("rule212 fired"); +end + +rule rule213 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc213") + then + System.out.println("rule213 fired"); +end + +rule rule214 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc214") + then + System.out.println("rule214 fired"); +end + +rule rule215 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc215") + then + System.out.println("rule215 fired"); +end + +rule rule216 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc216") + then + System.out.println("rule216 fired"); +end + +rule rule217 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc217") + then + System.out.println("rule217 fired"); +end + +rule rule218 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc218") + then + System.out.println("rule218 fired"); +end + +rule rule219 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc219") + then + System.out.println("rule219 fired"); +end + +rule rule220 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc220") + then + System.out.println("rule220 fired"); +end + +rule rule221 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc221") + then + System.out.println("rule221 fired"); +end + +rule rule222 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc222") + then + System.out.println("rule222 fired"); +end + +rule rule223 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc223") + then + System.out.println("rule223 fired"); +end + +rule rule224 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc224") + then + System.out.println("rule224 fired"); +end + +rule rule225 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc225") + then + System.out.println("rule225 fired"); +end + +rule rule226 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc226") + then + System.out.println("rule226 fired"); +end + +rule rule227 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc227") + then + System.out.println("rule227 fired"); +end + +rule rule228 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc228") + then + System.out.println("rule228 fired"); +end + +rule rule229 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc229") + then + System.out.println("rule229 fired"); +end + +rule rule230 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc230") + then + System.out.println("rule230 fired"); +end + +rule rule231 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc231") + then + System.out.println("rule231 fired"); +end + +rule rule232 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc232") + then + System.out.println("rule232 fired"); +end + +rule rule233 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc233") + then + System.out.println("rule233 fired"); +end + +rule rule234 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc234") + then + System.out.println("rule234 fired"); +end + +rule rule235 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc235") + then + System.out.println("rule235 fired"); +end + +rule rule236 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc236") + then + System.out.println("rule236 fired"); +end + +rule rule237 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc237") + then + System.out.println("rule237 fired"); +end + +rule rule238 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc238") + then + System.out.println("rule238 fired"); +end + +rule rule239 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc239") + then + System.out.println("rule239 fired"); +end + +rule rule240 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc240") + then + System.out.println("rule240 fired"); +end + +rule rule241 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc241") + then + System.out.println("rule241 fired"); +end + +rule rule242 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc242") + then + System.out.println("rule242 fired"); +end + +rule rule243 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc243") + then + System.out.println("rule243 fired"); +end + +rule rule244 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc244") + then + System.out.println("rule244 fired"); +end + +rule rule245 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc245") + then + System.out.println("rule245 fired"); +end + +rule rule246 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc246") + then + System.out.println("rule246 fired"); +end + +rule rule247 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc247") + then + System.out.println("rule247 fired"); +end + +rule rule248 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc248") + then + System.out.println("rule248 fired"); +end + +rule rule249 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc249") + then + System.out.println("rule249 fired"); +end + +rule rule250 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc250") + then + System.out.println("rule250 fired"); +end + +rule rule251 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc251") + then + System.out.println("rule251 fired"); +end + +rule rule252 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc252") + then + System.out.println("rule252 fired"); +end + +rule rule253 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc253") + then + System.out.println("rule253 fired"); +end + +rule rule254 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc254") + then + System.out.println("rule254 fired"); +end + +rule rule255 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc255") + then + System.out.println("rule255 fired"); +end + +rule rule256 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc256") + then + System.out.println("rule256 fired"); +end + +rule rule257 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc257") + then + System.out.println("rule257 fired"); +end + +rule rule258 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc258") + then + System.out.println("rule258 fired"); +end + +rule rule259 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc259") + then + System.out.println("rule259 fired"); +end + +rule rule260 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc260") + then + System.out.println("rule260 fired"); +end + +rule rule261 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc261") + then + System.out.println("rule261 fired"); +end + +rule rule262 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc262") + then + System.out.println("rule262 fired"); +end + +rule rule263 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc263") + then + System.out.println("rule263 fired"); +end + +rule rule264 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc264") + then + System.out.println("rule264 fired"); +end + +rule rule265 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc265") + then + System.out.println("rule265 fired"); +end + +rule rule266 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc266") + then + System.out.println("rule266 fired"); +end + +rule rule267 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc267") + then + System.out.println("rule267 fired"); +end + +rule rule268 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc268") + then + System.out.println("rule268 fired"); +end + +rule rule269 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc269") + then + System.out.println("rule269 fired"); +end + +rule rule270 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc270") + then + System.out.println("rule270 fired"); +end + +rule rule271 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc271") + then + System.out.println("rule271 fired"); +end + +rule rule272 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc272") + then + System.out.println("rule272 fired"); +end + +rule rule273 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc273") + then + System.out.println("rule273 fired"); +end + +rule rule274 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc274") + then + System.out.println("rule274 fired"); +end + +rule rule275 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc275") + then + System.out.println("rule275 fired"); +end + +rule rule276 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc276") + then + System.out.println("rule276 fired"); +end + +rule rule277 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc277") + then + System.out.println("rule277 fired"); +end + +rule rule278 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc278") + then + System.out.println("rule278 fired"); +end + +rule rule279 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc279") + then + System.out.println("rule279 fired"); +end + +rule rule280 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc280") + then + System.out.println("rule280 fired"); +end + +rule rule281 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc281") + then + System.out.println("rule281 fired"); +end + +rule rule282 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc282") + then + System.out.println("rule282 fired"); +end + +rule rule283 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc283") + then + System.out.println("rule283 fired"); +end + +rule rule284 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc284") + then + System.out.println("rule284 fired"); +end + +rule rule285 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc285") + then + System.out.println("rule285 fired"); +end + +rule rule286 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc286") + then + System.out.println("rule286 fired"); +end + +rule rule287 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc287") + then + System.out.println("rule287 fired"); +end + +rule rule288 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc288") + then + System.out.println("rule288 fired"); +end + +rule rule289 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc289") + then + System.out.println("rule289 fired"); +end + +rule rule290 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc290") + then + System.out.println("rule290 fired"); +end + +rule rule291 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc291") + then + System.out.println("rule291 fired"); +end + +rule rule292 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc292") + then + System.out.println("rule292 fired"); +end + +rule rule293 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc293") + then + System.out.println("rule293 fired"); +end + +rule rule294 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc294") + then + System.out.println("rule294 fired"); +end + +rule rule295 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc295") + then + System.out.println("rule295 fired"); +end + +rule rule296 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc296") + then + System.out.println("rule296 fired"); +end + +rule rule297 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc297") + then + System.out.println("rule297 fired"); +end + +rule rule298 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc298") + then + System.out.println("rule298 fired"); +end + +rule rule299 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc299") + then + System.out.println("rule299 fired"); +end + +rule rule300 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc300") + then + System.out.println("rule300 fired"); +end + +rule rule301 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc301") + then + System.out.println("rule301 fired"); +end + +rule rule302 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc302") + then + System.out.println("rule302 fired"); +end + +rule rule303 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc303") + then + System.out.println("rule303 fired"); +end + +rule rule304 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc304") + then + System.out.println("rule304 fired"); +end + +rule rule305 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc305") + then + System.out.println("rule305 fired"); +end + +rule rule306 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc306") + then + System.out.println("rule306 fired"); +end + +rule rule307 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc307") + then + System.out.println("rule307 fired"); +end + +rule rule308 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc308") + then + System.out.println("rule308 fired"); +end + +rule rule309 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc309") + then + System.out.println("rule309 fired"); +end + +rule rule310 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc310") + then + System.out.println("rule310 fired"); +end + +rule rule311 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc311") + then + System.out.println("rule311 fired"); +end + +rule rule312 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc312") + then + System.out.println("rule312 fired"); +end + +rule rule313 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc313") + then + System.out.println("rule313 fired"); +end + +rule rule314 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc314") + then + System.out.println("rule314 fired"); +end + +rule rule315 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc315") + then + System.out.println("rule315 fired"); +end + +rule rule316 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc316") + then + System.out.println("rule316 fired"); +end + +rule rule317 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc317") + then + System.out.println("rule317 fired"); +end + +rule rule318 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc318") + then + System.out.println("rule318 fired"); +end + +rule rule319 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc319") + then + System.out.println("rule319 fired"); +end + +rule rule320 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc320") + then + System.out.println("rule320 fired"); +end + +rule rule321 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc321") + then + System.out.println("rule321 fired"); +end + +rule rule322 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc322") + then + System.out.println("rule322 fired"); +end + +rule rule323 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc323") + then + System.out.println("rule323 fired"); +end + +rule rule324 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc324") + then + System.out.println("rule324 fired"); +end + +rule rule325 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc325") + then + System.out.println("rule325 fired"); +end + +rule rule326 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc326") + then + System.out.println("rule326 fired"); +end + +rule rule327 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc327") + then + System.out.println("rule327 fired"); +end + +rule rule328 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc328") + then + System.out.println("rule328 fired"); +end + +rule rule329 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc329") + then + System.out.println("rule329 fired"); +end + +rule rule330 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc330") + then + System.out.println("rule330 fired"); +end + +rule rule331 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc331") + then + System.out.println("rule331 fired"); +end + +rule rule332 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc332") + then + System.out.println("rule332 fired"); +end + +rule rule333 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc333") + then + System.out.println("rule333 fired"); +end + +rule rule334 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc334") + then + System.out.println("rule334 fired"); +end + +rule rule335 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc335") + then + System.out.println("rule335 fired"); +end + +rule rule336 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc336") + then + System.out.println("rule336 fired"); +end + +rule rule337 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc337") + then + System.out.println("rule337 fired"); +end + +rule rule338 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc338") + then + System.out.println("rule338 fired"); +end + +rule rule339 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc339") + then + System.out.println("rule339 fired"); +end + +rule rule340 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc340") + then + System.out.println("rule340 fired"); +end + +rule rule341 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc341") + then + System.out.println("rule341 fired"); +end + +rule rule342 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc342") + then + System.out.println("rule342 fired"); +end + +rule rule343 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc343") + then + System.out.println("rule343 fired"); +end + +rule rule344 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc344") + then + System.out.println("rule344 fired"); +end + +rule rule345 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc345") + then + System.out.println("rule345 fired"); +end + +rule rule346 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc346") + then + System.out.println("rule346 fired"); +end + +rule rule347 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc347") + then + System.out.println("rule347 fired"); +end + +rule rule348 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc348") + then + System.out.println("rule348 fired"); +end + +rule rule349 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc349") + then + System.out.println("rule349 fired"); +end + +rule rule350 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc350") + then + System.out.println("rule350 fired"); +end + +rule rule351 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc351") + then + System.out.println("rule351 fired"); +end + +rule rule352 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc352") + then + System.out.println("rule352 fired"); +end + +rule rule353 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc353") + then + System.out.println("rule353 fired"); +end + +rule rule354 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc354") + then + System.out.println("rule354 fired"); +end + +rule rule355 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc355") + then + System.out.println("rule355 fired"); +end + +rule rule356 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc356") + then + System.out.println("rule356 fired"); +end + +rule rule357 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc357") + then + System.out.println("rule357 fired"); +end + +rule rule358 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc358") + then + System.out.println("rule358 fired"); +end + +rule rule359 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc359") + then + System.out.println("rule359 fired"); +end + +rule rule360 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc360") + then + System.out.println("rule360 fired"); +end + +rule rule361 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc361") + then + System.out.println("rule361 fired"); +end + +rule rule362 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc362") + then + System.out.println("rule362 fired"); +end + +rule rule363 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc363") + then + System.out.println("rule363 fired"); +end + +rule rule364 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc364") + then + System.out.println("rule364 fired"); +end + +rule rule365 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc365") + then + System.out.println("rule365 fired"); +end + +rule rule366 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc366") + then + System.out.println("rule366 fired"); +end + +rule rule367 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc367") + then + System.out.println("rule367 fired"); +end + +rule rule368 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc368") + then + System.out.println("rule368 fired"); +end + +rule rule369 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc369") + then + System.out.println("rule369 fired"); +end + +rule rule370 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc370") + then + System.out.println("rule370 fired"); +end + +rule rule371 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc371") + then + System.out.println("rule371 fired"); +end + +rule rule372 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc372") + then + System.out.println("rule372 fired"); +end + +rule rule373 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc373") + then + System.out.println("rule373 fired"); +end + +rule rule374 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc374") + then + System.out.println("rule374 fired"); +end + +rule rule375 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc375") + then + System.out.println("rule375 fired"); +end + +rule rule376 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc376") + then + System.out.println("rule376 fired"); +end + +rule rule377 + when + $acc : Account(status == "standard", title == "mr", accountId == "acc377") + then + System.out.println("rule377 fired"); +end + +... [truncated message content] |
From: <jbo...@li...> - 2006-04-20 04:00:16
|
Author: mar...@jb... Date: 2006-04-20 00:00:10 -0400 (Thu, 20 Apr 2006) New Revision: 3833 Modified: labs/jbossrules/trunk/drools-ide/.classpath Log: -fixed .classpath Modified: labs/jbossrules/trunk/drools-ide/.classpath =================================================================== --- labs/jbossrules/trunk/drools-ide/.classpath 2006-04-20 03:54:35 UTC (rev 3832) +++ labs/jbossrules/trunk/drools-ide/.classpath 2006-04-20 04:00:10 UTC (rev 3833) @@ -10,6 +10,6 @@ <classpathentry kind="lib" path="lib/commons-lang-2.1.jar"/> <classpathentry kind="lib" path="lib/antlr3-3.0ea8.jar"/> <classpathentry kind="lib" path="lib/junit-3.8.1.jar"/> - <classpathentry kind="lib" path="lib/jci-SNAPSHOT-378493+patch3.jar"/> + <classpathentry kind="lib" path="D:/dev/jbossrules/drools-ide/lib/jci-SNAPSHOT-378493+patch4.jar"/> <classpathentry kind="output" path="bin"/> </classpath> |
From: <jbo...@li...> - 2006-04-20 03:54:41
|
Author: mar...@jb... Date: 2006-04-19 23:54:35 -0400 (Wed, 19 Apr 2006) New Revision: 3832 Modified: labs/jbossrules/trunk/drools-core/.classpath Log: Modified: labs/jbossrules/trunk/drools-core/.classpath =================================================================== --- labs/jbossrules/trunk/drools-core/.classpath 2006-04-20 03:54:18 UTC (rev 3831) +++ labs/jbossrules/trunk/drools-core/.classpath 2006-04-20 03:54:35 UTC (rev 3832) @@ -4,13 +4,13 @@ <classpathentry kind="src" path="src/test/resources" output="target/test-classes"/> <classpathentry kind="output" path="target/classes"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> - <classpathentry kind="var" path="M2_REPO/junit/junit/3.8.1/junit-3.8.1.jar"/> + <classpathentry kind="var" path="M2_REPO/xstream/xstream/1.1.3/xstream-1.1.3.jar"/> + <classpathentry kind="var" path="M2_REPO/commons-collections/commons-collections/3.1/commons-collections-3.1.jar"/> + <classpathentry kind="var" path="M2_REPO/colt/colt/1.2.0/colt-1.2.0.jar"/> <classpathentry kind="var" path="M2_REPO/concurrent/concurrent/1.3.4/concurrent-1.3.4.jar"/> <classpathentry kind="var" path="M2_REPO/jung/jung/1.7.2/jung-1.7.2.jar"/> + <classpathentry kind="var" path="M2_REPO/junit/junit/3.8.1/junit-3.8.1.jar"/> + <classpathentry kind="var" path="M2_REPO/drools-asm/drools-asm/2.2.1/drools-asm-2.2.1.jar"/> <classpathentry kind="var" path="M2_REPO/xerces/xercesImpl/2.6.2/xercesImpl-2.6.2.jar"/> - <classpathentry kind="var" path="M2_REPO/colt/colt/1.2.0/colt-1.2.0.jar"/> - <classpathentry kind="var" path="M2_REPO/commons-collections/commons-collections/3.1/commons-collections-3.1.jar"/> - <classpathentry kind="var" path="M2_REPO/xstream/xstream/1.1.3/xstream-1.1.3.jar"/> - <classpathentry kind="var" path="M2_REPO/drools-asm/drools-asm/2.2.1/drools-asm-2.2.1.jar"/> - <classpathentry kind="var" path="M2_REPO/xpp/xpp/3-1.1.3.4.O/xpp-3-1.1.3.4.O.jar"/> + <classpathentry kind="var" path="M2_REPO/xpp3/xpp3/1.1.3.4.O/xpp3-1.1.3.4.O.jar"/> </classpath> \ No newline at end of file |
From: <jbo...@li...> - 2006-04-20 03:54:22
|
Author: mar...@jb... Date: 2006-04-19 23:54:18 -0400 (Wed, 19 Apr 2006) New Revision: 3831 Modified: labs/jbossrules/trunk/drools-compiler/.classpath labs/jbossrules/trunk/drools-compiler/pom.xml labs/jbossrules/trunk/drools-compiler/src/main/java/org/drools/compiler/PackageBuilderConfiguration.java Log: -Set back to JDT Modified: labs/jbossrules/trunk/drools-compiler/.classpath =================================================================== --- labs/jbossrules/trunk/drools-compiler/.classpath 2006-04-20 03:53:54 UTC (rev 3830) +++ labs/jbossrules/trunk/drools-compiler/.classpath 2006-04-20 03:54:18 UTC (rev 3831) @@ -1,26 +1,26 @@ -<?xml version="1.0" encoding="UTF-8"?> -<classpath> - <classpathentry kind="src" path="src/main/java"/> - <classpathentry kind="src" path="src/main/resources"/> - <classpathentry output="target/test-classes" kind="src" path="src/test/java"/> - <classpathentry output="target/test-classes" kind="src" path="src/test/resources"/> - <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> - <classpathentry kind="var" path="M2_REPO/junit/junit/3.8.1/junit-3.8.1.jar"/> - <classpathentry kind="var" path="M2_REPO/concurrent/concurrent/1.3.4/concurrent-1.3.4.jar"/> - <classpathentry kind="var" path="M2_REPO/xerces/xercesImpl/2.6.2/xercesImpl-2.6.2.jar"/> - <classpathentry kind="var" path="M2_REPO/antlr/antlr/2.7.6/antlr-2.7.6.jar"/> - <classpathentry kind="var" path="M2_REPO/commons-lang/commons-lang/2.1/commons-lang-2.1.jar"/> - <classpathentry kind="var" path="M2_REPO/xstream/xstream/1.1.3/xstream-1.1.3.jar"/> - <classpathentry kind="var" path="M2_REPO/drools-asm/drools-asm/2.2.1/drools-asm-2.2.1.jar"/> - <classpathentry kind="var" path="M2_REPO/commons-collections/commons-collections/3.1/commons-collections-3.1.jar"/> - <classpathentry kind="var" path="M2_REPO/commons-logging/commons-logging-api/1.0.4/commons-logging-api-1.0.4.jar"/> - <classpathentry kind="var" path="M2_REPO/xpp/xpp/3-1.1.3.4.O/xpp-3-1.1.3.4.O.jar"/> - <classpathentry kind="var" path="M2_REPO/antlr/stringtemplate/2.3b6/stringtemplate-2.3b6.jar"/> - <classpathentry kind="src" path="/drools-core"/> - <classpathentry kind="var" path="M2_REPO/colt/colt/1.2.0/colt-1.2.0.jar"/> - <classpathentry kind="var" path="M2_REPO/jung/jung/1.7.2/jung-1.7.2.jar"/> - <classpathentry kind="var" path="M2_REPO/antlr/antlr3/3.0ea8/antlr3-3.0ea8.jar"/> - <classpathentry kind="var" path="M2_REPO/eclipse/jdtcore/3.2.0.v_653/jdtcore-3.2.0.v_653.jar"/> - <classpathentry combineaccessrules="false" kind="src" path="/commons-jci"/> - <classpathentry kind="output" path="target/classes"/> -</classpath> +<classpath> + <classpathentry kind="src" path="src/main/java"/> + <classpathentry kind="src" path="src/main/resources"/> + <classpathentry kind="src" path="src/test/java" output="target/test-classes"/> + <classpathentry kind="src" path="src/test/resources" output="target/test-classes"/> + <classpathentry kind="output" path="target/classes"/> + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> + <classpathentry kind="var" path="M2_REPO/commons-logging/commons-logging-api/1.0.4/commons-logging-api-1.0.4.jar"/> + <classpathentry kind="var" path="M2_REPO/eclipse/jdtcore/3.2.0.v_658/jdtcore-3.2.0.v_658.jar"/> + <classpathentry kind="var" path="M2_REPO/colt/colt/1.2.0/colt-1.2.0.jar"/> + <classpathentry kind="var" path="M2_REPO/drools-asm/drools-asm/2.2.1/drools-asm-2.2.1.jar"/> + <classpathentry kind="var" path="M2_REPO/commons-collections/commons-collections/3.1/commons-collections-3.1.jar"/> + <classpathentry kind="var" path="M2_REPO/antlr/stringtemplate/2.3b6/stringtemplate-2.3b6.jar"/> + <classpathentry kind="var" path="M2_REPO/xstream/xstream/1.1.3/xstream-1.1.3.jar"/> + <classpathentry kind="var" path="M2_REPO/commons-lang/commons-lang/2.1/commons-lang-2.1.jar"/> + <classpathentry kind="var" path="M2_REPO/xerces/xercesImpl/2.6.2/xercesImpl-2.6.2.jar"/> + <classpathentry kind="var" path="M2_REPO/jci/jci/SNAPSHOT-378493+patch4/jci-SNAPSHOT-378493+patch4.jar"/> + <classpathentry kind="var" path="M2_REPO/concurrent/concurrent/1.3.4/concurrent-1.3.4.jar"/> + <classpathentry kind="var" path="M2_REPO/jung/jung/1.7.2/jung-1.7.2.jar"/> + <classpathentry kind="src" path="/drools-core"/> + <classpathentry kind="var" path="M2_REPO/xpp3/xpp3/1.1.3.4.O/xpp3-1.1.3.4.O.jar"/> + <classpathentry kind="var" path="M2_REPO/antlr/antlr3/3.0ea8/antlr3-3.0ea8.jar"/> + <classpathentry kind="var" path="M2_REPO/antlr/antlr/2.7.6/antlr-2.7.6.jar"/> + <classpathentry kind="var" path="M2_REPO/junit/junit/3.8.1/junit-3.8.1.jar"/> + <classpathentry kind="var" path="M2_REPO/janino/janino/2.4.1/janino-2.4.1.jar"/> +</classpath> \ No newline at end of file Modified: labs/jbossrules/trunk/drools-compiler/pom.xml =================================================================== --- labs/jbossrules/trunk/drools-compiler/pom.xml 2006-04-20 03:53:54 UTC (rev 3830) +++ labs/jbossrules/trunk/drools-compiler/pom.xml 2006-04-20 03:54:18 UTC (rev 3831) @@ -73,7 +73,7 @@ <dependency> <groupId>eclipse</groupId> <artifactId>jdtcore</artifactId> - <version>3.2.0.v_653</version> + <version>3.2.0.v_658</version> </dependency> Modified: labs/jbossrules/trunk/drools-compiler/src/main/java/org/drools/compiler/PackageBuilderConfiguration.java =================================================================== --- labs/jbossrules/trunk/drools-compiler/src/main/java/org/drools/compiler/PackageBuilderConfiguration.java 2006-04-20 03:53:54 UTC (rev 3830) +++ labs/jbossrules/trunk/drools-compiler/src/main/java/org/drools/compiler/PackageBuilderConfiguration.java 2006-04-20 03:54:18 UTC (rev 3831) @@ -1,4 +1,5 @@ package org.drools.compiler; + /* * Copyright 2005 JBoss Inc * @@ -15,51 +16,49 @@ * limitations under the License. */ - - import org.apache.commons.jci.compilers.JavaCompilerFactory; import org.drools.RuntimeDroolsException; -public class PackageBuilderConfiguration { - public static final int ECLIPSE = 0; - public static final int JANINO = 1; - - private int compiler = JavaCompilerFactory.ECLIPSE; - - private ClassLoader classLoader; - - public PackageBuilderConfiguration(){ +public class PackageBuilderConfiguration { + public static final int ECLIPSE = 0; + public static final int JANINO = 1; + + private int compiler = JavaCompilerFactory.ECLIPSE; + + private ClassLoader classLoader; + + public PackageBuilderConfiguration() { ClassLoader classLoader = Thread.currentThread().getContextClassLoader(); if ( classLoader == null ) { classLoader = this.getClass().getClassLoader(); } - this.classLoader = classLoader; - } - + this.classLoader = classLoader; + } + public int getCompiler() { return this.compiler; } - + public void setCompiler(int compiler) { switch ( compiler ) { case PackageBuilderConfiguration.ECLIPSE : this.compiler = JavaCompilerFactory.ECLIPSE; break; - case PackageBuilderConfiguration.JANINO: + case PackageBuilderConfiguration.JANINO : this.compiler = JavaCompilerFactory.JANINO; break; - default: + default : throw new RuntimeDroolsException( "value '" + compiler + "' is not a valid compiler" ); } } - + public ClassLoader getClassLoader() { return this.classLoader; } - - public void setClassLoader( ClassLoader classLoader ) { + + public void setClassLoader(ClassLoader classLoader) { if ( classLoader != null ) { this.classLoader = classLoader; } - } + } } \ No newline at end of file |
From: <jbo...@li...> - 2006-04-20 03:53:57
|
Author: mar...@jb... Date: 2006-04-19 23:53:54 -0400 (Wed, 19 Apr 2006) New Revision: 3830 Modified: labs/jbossrules/trunk/drools-ide/META-INF/MANIFEST.MF Log: -Updated deps Modified: labs/jbossrules/trunk/drools-ide/META-INF/MANIFEST.MF =================================================================== --- labs/jbossrules/trunk/drools-ide/META-INF/MANIFEST.MF 2006-04-20 03:48:59 UTC (rev 3829) +++ labs/jbossrules/trunk/drools-ide/META-INF/MANIFEST.MF 2006-04-20 03:53:54 UTC (rev 3830) @@ -40,11 +40,11 @@ lib/drools-asm-2.2.1.jar, lib/drools-compiler.jar, lib/drools-core.jar, - lib/jci-SNAPSHOT-378493+patch3.jar, - lib/jdtcore-3.2.0.v_653.jar, lib/jung-1.7.2.jar, lib/stringtemplate-2.3b6.jar, lib/xercesImpl-2.6.2.jar, lib/xstream-1.1.3.jar, lib/xpp-3-1.1.3.4.O.jar, - lib/xml-apis-1.0.b2.jar + lib/xml-apis-1.0.b2.jar, + lib/jci-SNAPSHOT-378493+patch4.jar, + lib/jdtcore-3.2.0.v_658.jar |
From: <jbo...@li...> - 2006-04-20 03:49:05
|
Author: mar...@jb... Date: 2006-04-19 23:48:59 -0400 (Wed, 19 Apr 2006) New Revision: 3829 Modified: labs/jbossrules/trunk/drools-compiler/src/main/java/org/drools/compiler/PackageBuilderConfiguration.java Log: -Make JDT default Modified: labs/jbossrules/trunk/drools-compiler/src/main/java/org/drools/compiler/PackageBuilderConfiguration.java =================================================================== --- labs/jbossrules/trunk/drools-compiler/src/main/java/org/drools/compiler/PackageBuilderConfiguration.java 2006-04-20 03:46:37 UTC (rev 3828) +++ labs/jbossrules/trunk/drools-compiler/src/main/java/org/drools/compiler/PackageBuilderConfiguration.java 2006-04-20 03:48:59 UTC (rev 3829) @@ -24,7 +24,7 @@ public static final int ECLIPSE = 0; public static final int JANINO = 1; - private int compiler = JavaCompilerFactory.JANINO; + private int compiler = JavaCompilerFactory.ECLIPSE; private ClassLoader classLoader; |
From: <jbo...@li...> - 2006-04-20 03:46:43
|
Author: mar...@jb... Date: 2006-04-19 23:46:37 -0400 (Wed, 19 Apr 2006) New Revision: 3828 Modified: labs/jbossrules/trunk/drools-core/src/test/java/org/drools/rule/GroupElementTest.java Log: -Added dummy test Modified: labs/jbossrules/trunk/drools-core/src/test/java/org/drools/rule/GroupElementTest.java =================================================================== --- labs/jbossrules/trunk/drools-core/src/test/java/org/drools/rule/GroupElementTest.java 2006-04-20 03:45:24 UTC (rev 3827) +++ labs/jbossrules/trunk/drools-core/src/test/java/org/drools/rule/GroupElementTest.java 2006-04-20 03:46:37 UTC (rev 3828) @@ -3,6 +3,10 @@ import junit.framework.TestCase; public class GroupElementTest extends TestCase { + public void test1() { + //dummy test + assertTrue(true); + } // public void testAddNestedAnd() { // And and1 = new And(); // Column column1 = new Column(0, null); |
From: <jbo...@li...> - 2006-04-20 03:45:30
|
Author: mar...@jb... Date: 2006-04-19 23:45:24 -0400 (Wed, 19 Apr 2006) New Revision: 3827 Modified: labs/jbossrules/trunk/drools-core/src/test/java/org/drools/rule/GroupElementTest.java Log: -removed test until we put this code back in Modified: labs/jbossrules/trunk/drools-core/src/test/java/org/drools/rule/GroupElementTest.java =================================================================== --- labs/jbossrules/trunk/drools-core/src/test/java/org/drools/rule/GroupElementTest.java 2006-04-20 03:42:56 UTC (rev 3826) +++ labs/jbossrules/trunk/drools-core/src/test/java/org/drools/rule/GroupElementTest.java 2006-04-20 03:45:24 UTC (rev 3827) @@ -3,92 +3,92 @@ import junit.framework.TestCase; public class GroupElementTest extends TestCase { - public void testAddNestedAnd() { - And and1 = new And(); - Column column1 = new Column(0, null); - and1.addChild( column1 ); - - Column column2 = new Column(0, null); - and1.addChild( column2 ); - - assertEquals( 2, and1.getChildren().size() ); - assertSame( column1, and1.getChildren().get( 0 ) ); - assertSame( column2, and1.getChildren().get( 1 ) ); - - And and2 = new And(); - and2.addChild( and1 ); - assertEquals( 2, and2.getChildren().size() ); - assertSame( column1, and2.getChildren().get( 0 ) ); - assertSame( column2, and2.getChildren().get( 1 ) ); - } - - public void testAddNestedOr() { - Or or1 = new Or(); - Column column1 = new Column(0, null); - or1.addChild( column1 ); - - Column column2 = new Column(0, null); - or1.addChild( column2 ); - - assertEquals( 2, or1.getChildren().size() ); - assertSame( column1, or1.getChildren().get( 0 ) ); - assertSame( column2, or1.getChildren().get( 1 ) ); - - Or or2 = new Or(); - or2.addChild( or1 ); - assertEquals( 2, or2.getChildren().size() ); - assertSame( column1, or2.getChildren().get( 0 ) ); - assertSame( column2, or2.getChildren().get( 1 ) ); - } - - public void testAddSingleBranchAnd() { - And and1 = new And(); - Column column = new Column(0, null); - and1.addChild( column ); - assertEquals( 1, and1.getChildren().size() ); - assertSame( column, and1.getChildren().get( 0 ) ); - - Or or1= new Or(); - or1.addChild( and1 ); - assertEquals( 1, or1.getChildren().size() ); - assertSame( column, or1.getChildren().get( 0 ) ); - } - - public void testAddSingleBranchOr() { - Or or1 = new Or(); - Column column = new Column(0, null); - or1.addChild( column ); - assertEquals( 1, or1.getChildren().size() ); - assertSame( column, or1.getChildren().get( 0 ) ); - - And and1= new And(); - and1.addChild( or1 ); - assertEquals( 1, and1.getChildren().size() ); - assertSame( column, and1.getChildren().get( 0 ) ); - } - - public void testX() { - Or or1 = new Or(); - Column column1 = new Column(0, null); - or1.addChild( column1 ); - - Column column2 = new Column(0, null); - or1.addChild( column2 ); - - And and1 = new And(); - and1.addChild( or1 ); - assertEquals( 1, and1.getChildren().size() ); - assertSame( or1, and1.getChildren().get( 0 ) ); - - assertSame( column1, or1.getChildren().get( 0 ) ); - assertSame( column2, or1.getChildren().get( 1 ) ); - - Or or2 = new Or(); - or2.addChild( and1 ); - - assertEquals( 2, or1.getChildren().size() ); - assertSame( column1, or1.getChildren().get( 0 ) ); - assertSame( column2, or2.getChildren().get( 1 ) ); - - } +// public void testAddNestedAnd() { +// And and1 = new And(); +// Column column1 = new Column(0, null); +// and1.addChild( column1 ); +// +// Column column2 = new Column(0, null); +// and1.addChild( column2 ); +// +// assertEquals( 2, and1.getChildren().size() ); +// assertSame( column1, and1.getChildren().get( 0 ) ); +// assertSame( column2, and1.getChildren().get( 1 ) ); +// +// And and2 = new And(); +// and2.addChild( and1 ); +// assertEquals( 2, and2.getChildren().size() ); +// assertSame( column1, and2.getChildren().get( 0 ) ); +// assertSame( column2, and2.getChildren().get( 1 ) ); +// } +// +// public void testAddNestedOr() { +// Or or1 = new Or(); +// Column column1 = new Column(0, null); +// or1.addChild( column1 ); +// +// Column column2 = new Column(0, null); +// or1.addChild( column2 ); +// +// assertEquals( 2, or1.getChildren().size() ); +// assertSame( column1, or1.getChildren().get( 0 ) ); +// assertSame( column2, or1.getChildren().get( 1 ) ); +// +// Or or2 = new Or(); +// or2.addChild( or1 ); +// assertEquals( 2, or2.getChildren().size() ); +// assertSame( column1, or2.getChildren().get( 0 ) ); +// assertSame( column2, or2.getChildren().get( 1 ) ); +// } +// +// public void testAddSingleBranchAnd() { +// And and1 = new And(); +// Column column = new Column(0, null); +// and1.addChild( column ); +// assertEquals( 1, and1.getChildren().size() ); +// assertSame( column, and1.getChildren().get( 0 ) ); +// +// Or or1= new Or(); +// or1.addChild( and1 ); +// assertEquals( 1, or1.getChildren().size() ); +// assertSame( column, or1.getChildren().get( 0 ) ); +// } +// +// public void testAddSingleBranchOr() { +// Or or1 = new Or(); +// Column column = new Column(0, null); +// or1.addChild( column ); +// assertEquals( 1, or1.getChildren().size() ); +// assertSame( column, or1.getChildren().get( 0 ) ); +// +// And and1= new And(); +// and1.addChild( or1 ); +// assertEquals( 1, and1.getChildren().size() ); +// assertSame( column, and1.getChildren().get( 0 ) ); +// } +// +// public void testX() { +// Or or1 = new Or(); +// Column column1 = new Column(0, null); +// or1.addChild( column1 ); +// +// Column column2 = new Column(0, null); +// or1.addChild( column2 ); +// +// And and1 = new And(); +// and1.addChild( or1 ); +// assertEquals( 1, and1.getChildren().size() ); +// assertSame( or1, and1.getChildren().get( 0 ) ); +// +// assertSame( column1, or1.getChildren().get( 0 ) ); +// assertSame( column2, or1.getChildren().get( 1 ) ); +// +// Or or2 = new Or(); +// or2.addChild( and1 ); +// +// assertEquals( 2, or1.getChildren().size() ); +// assertSame( column1, or1.getChildren().get( 0 ) ); +// assertSame( column2, or2.getChildren().get( 1 ) ); +// +// } } |