[prev in list] [next in list] [prev in thread] [next in thread]
List: xml-cocoon-dev
Subject: cvs commit: xml-cocoon2/src/org/apache/cocoon/sitemap Handler.java
From: bloritsch () apache ! org
Date: 2001-05-31 19:10:10
[Download RAW message or body]
bloritsch 01/05/31 12:10:10
Modified: src/org/apache/cocoon/sitemap Handler.java
Log:
Fixed the asynchronous regeneration issue.
Can we say brain fart?
Revision Changes Path
1.9 +6 -5 xml-cocoon2/src/org/apache/cocoon/sitemap/Handler.java
Index: Handler.java
===================================================================
RCS file: /home/cvs/xml-cocoon2/src/org/apache/cocoon/sitemap/Handler.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- Handler.java 2001/05/31 19:01:46 1.8
+++ Handler.java 2001/05/31 19:10:08 1.9
@@ -42,7 +42,7 @@
* @author <a href="mailto:cziegeler@apache.org">Carsten Ziegeler</a>
* @author <a href="mailto:Giacomo.Pati@pwr.ch">Giacomo Pati</a>
* @author <a href="mailto:stefano@apache.org">Stefano Mazzocchi</a>
- * @version CVS $Revision: 1.8 $ $Date: 2001/05/31 19:01:46 $
+ * @version CVS $Revision: 1.9 $ $Date: 2001/05/31 19:10:08 $
*/
public class Handler extends AbstractLoggable
implements Runnable, Configurable, Composable, Contextualizable, Processor, Disposable {
@@ -154,15 +154,16 @@
}
}
- protected synchronized void regenerate (Environment environment)
+ protected void regenerate (Environment environment)
throws Exception {
getLogger().debug("Beginning sitemap regeneration");
- if (regeneration == null) {
- this.regenerateAsynchronously(environment);
- } else {
+ this.regenerateAsynchronously(environment);
+
+ if (regeneration != null) {
this.regeneration.join();
}
+
throwEventualException();
}
----------------------------------------------------------------------
In case of troubles, e-mail: webmaster@xml.apache.org
To unsubscribe, e-mail: cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic