Author: bodewig Date: Wed Oct 19 21:21:07 2005 New Revision: 326804 URL: http://svn.apache.org/viewcvs?rev=326804&view=rev Log: provide more information
Modified: ant/core/trunk/src/main/org/apache/tools/tar/TarOutputStream.java Modified: ant/core/trunk/src/main/org/apache/tools/tar/TarOutputStream.java URL: http://svn.apache.org/viewcvs/ant/core/trunk/src/main/org/apache/tools/tar/TarOutputStream.java?rev=326804&r1=326803&r2=326804&view=diff ============================================================================== --- ant/core/trunk/src/main/org/apache/tools/tar/TarOutputStream.java (original) +++ ant/core/trunk/src/main/org/apache/tools/tar/TarOutputStream.java Wed Oct 19 21:21:07 2005 @@ -44,6 +44,7 @@ protected boolean debug; protected long currSize; + protected String currName; protected long currBytes; protected byte[] oneBuf; protected byte[] recordBuf; @@ -191,6 +192,7 @@ } else { this.currSize = entry.getSize(); } + currName = entry.getName(); } /** @@ -216,7 +218,8 @@ } if (this.currBytes < this.currSize) { - throw new IOException("entry closed at '" + this.currBytes + throw new IOException("entry '" + currName + "' closed at '" + + this.currBytes + "' before the '" + this.currSize + "' bytes specified in the header were written"); } @@ -266,7 +269,8 @@ if ((this.currBytes + numToWrite) > this.currSize) { throw new IOException("request to write '" + numToWrite + "' bytes exceeds size in header of '" - + this.currSize + "' bytes"); + + this.currSize + "' bytes for entry '" + + currName + "'"); // // We have to deal with assembly!!! --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]