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:[EMAIL PROTECTED]">Carsten Ziegeler</a>
* @author <a href="mailto:[EMAIL PROTECTED]">Giacomo Pati</a>
* @author <a href="mailto:[EMAIL PROTECTED]">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: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]