[jboss-svn-commits] JBL Code SVN: r24276 - in labs/jbossrules/trunk: drools-core/src/main/java/org/drools/io/impl and 1 other directory.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Sun Dec 7 00:50:07 EST 2008
Author: mark.proctor at jboss.com
Date: 2008-12-07 00:50:07 -0500 (Sun, 07 Dec 2008)
New Revision: 24276
Modified:
labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/agent/KnowledgeAgentTest.java
labs/jbossrules/trunk/drools-core/src/main/java/org/drools/io/impl/UrlResource.java
Log:
JBRULES-1874 Create Resource Framework
-increased wait time before writing, due to linux issue
http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=1&t=019789
Modified: labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/agent/KnowledgeAgentTest.java
===================================================================
--- labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/agent/KnowledgeAgentTest.java 2008-12-07 05:46:51 UTC (rev 24275)
+++ labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/agent/KnowledgeAgentTest.java 2008-12-07 05:50:07 UTC (rev 24276)
@@ -115,6 +115,10 @@
assertTrue( list.contains( "rule2" ) );
list.clear();
+
+ // have to sleep here as linux lastModified does not do milliseconds http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=1&t=019789
+ Thread.sleep( 2000 );
+
rule1 = "";
rule1 += "package org.drools.test\n";
rule1 += "global java.util.List list\n";
Modified: labs/jbossrules/trunk/drools-core/src/main/java/org/drools/io/impl/UrlResource.java
===================================================================
--- labs/jbossrules/trunk/drools-core/src/main/java/org/drools/io/impl/UrlResource.java 2008-12-07 05:46:51 UTC (rev 24275)
+++ labs/jbossrules/trunk/drools-core/src/main/java/org/drools/io/impl/UrlResource.java 2008-12-07 05:50:07 UTC (rev 24276)
@@ -117,7 +117,6 @@
// http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4504473
if ( "file".equals( url.getProtocol() ) ) {
File file = getFile();
- System.out.println( "is file :" + file.lastModified() );
return file.lastModified();
} else {
URLConnection conn = getURL().openConnection();
More information about the jboss-svn-commits
mailing list