Re: modifiable source and .tmp files
FYI, I just committed what we discussed with Jorg as a TeeTransformer component. HTH, Ugo -- Ugo Cei Tech Blog: http://agylen.com/ Source.zone: http://sourcezone.info/ Wine Food Blog: http://www.divinocibo.it/ smime.p7s Description: S/MIME cryptographic signature
Re: modifiable source and .tmp files
Unico Hommes wrote: Close the OutputStream. Jorg Heymans wrote: to why this is happening? When i try to close the outputstream on the modifiable source in recycle() i get Concurrentmodification exceptions That's what i did, close the outputstream. The catch was that i closed it in recycle() and got the exceptions whereas closing it in endDocument() makes the exception go away (thanks Ugo!) Regards Jorg
Re: modifiable source and .tmp files
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Close the OutputStream. Jorg Heymans wrote: Hi, As per [1], i decided to have a go at implementing a SAX based TeeTransformer. Now the code works [2], but cocoon writes a .tmp file instead of the intended file (say myfile.log.tmp instead of myfile.log). Any clues as to why this is happening? When i try to close the outputstream on the modifiable source in recycle() i get Concurrentmodification exceptions on the file itself. Regards Jorg [1] http://article.gmane.org/gmane.text.xml.cocoon.user/49099 [2] http://www.domek.be/TeeTransformer.java -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (Darwin) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCkzufcuec8tVNKAwRAsx+AKCmWgftjUPq8PibO2GIO4SszsKs/QCgn6r2 rrksfbG2ZmNEza2MB+i8/bY= =SOyH -END PGP SIGNATURE-
Re: modifiable source and .tmp files
Unico Hommes wrote: Nice to see you back Unico! -- Reinhard Pötz Independent Consultant, Trainer (IT)-Coach {Software Engineering, Open Source, Web Applications, Apache Cocoon} web(log): http://www.poetz.cc
Re: modifiable source and .tmp files
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Reinhard Poetz wrote: Unico Hommes wrote: Nice to see you back Unico! Thanks Reinhard! Lurker mode is off now, but still have some catching up to do. One of the things I'd been meaning to find out is what is the status of your blocks builder and blocks deployer efforts. Especially, is blocks builder the intented build system for 2.2? I found the wiki documentation on it. - -- Unico -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (Darwin) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCk2KNcuec8tVNKAwRAjHGAJ9ZvfRItNiNZPAdqIkV6CCrcKl74ACfVpGR /jZV3zh3l03uEniETDtKwF4= =pRpf -END PGP SIGNATURE-