"Paal Hagerup" <[EMAIL PROTECTED]> writes:
> 2.1 have a bug in FileItem.write().
>
> Here is a workaround:
>
> FileItem file = pp.getFileItem( "fileName" );
> if (file.inMemory())
> {
> FileWriter writer = new FileWriter( destination );
> writer.write( file.getString() );
> writer.close(); // Missing in FileItem.writer()
> }
> else
> {
> file.write( destination );
> }
>
> If I only knew how to make a patch I would submit one...
I've added this fix to the HEAD of jakarta-turbine-2. Thanks Paal.
Daniel
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]