[jboss-cvs] JBossAS SVN: r83786 - projects/vfs/trunk/src/main/java/org/jboss/virtual/plugins/context/zip.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Mon Feb 2 12:15:15 EST 2009
Author: alesj
Date: 2009-02-02 12:15:15 -0500 (Mon, 02 Feb 2009)
New Revision: 83786
Modified:
projects/vfs/trunk/src/main/java/org/jboss/virtual/plugins/context/zip/ZipEntryContext.java
Log:
Add stack trace trace log, to be able to see where the new unpack is going on.
Modified: projects/vfs/trunk/src/main/java/org/jboss/virtual/plugins/context/zip/ZipEntryContext.java
===================================================================
--- projects/vfs/trunk/src/main/java/org/jboss/virtual/plugins/context/zip/ZipEntryContext.java 2009-02-02 16:53:32 UTC (rev 83785)
+++ projects/vfs/trunk/src/main/java/org/jboss/virtual/plugins/context/zip/ZipEntryContext.java 2009-02-02 17:15:15 UTC (rev 83786)
@@ -46,6 +46,7 @@
import java.util.Map;
import java.util.TreeMap;
import java.util.UUID;
+import java.util.Arrays;
import java.util.concurrent.ConcurrentHashMap;
import java.util.zip.ZipEntry;
import java.util.zip.ZipInputStream;
@@ -457,6 +458,8 @@
*/
private synchronized void initEntries() throws IOException, URISyntaxException
{
+ boolean trace = log.isTraceEnabled();
+
// we're using a two phase approach - we first select the relevant ones
// then we order these by name and only then we process them
// this way we ensure that parent entries are processed before child entries
@@ -531,6 +534,12 @@
dest = new File(getTempDir() + "/" + getTempFileName(entryName));
dest.deleteOnExit();
+ if (trace)
+ {
+ StackTraceElement[] stackTraceElements = Thread.currentThread().getStackTrace();
+ log.trace("Dest: " + dest + ", Stack-trace:\n" + Arrays.toString(stackTraceElements));
+ }
+
// ensure parent exists
dest.getParentFile().mkdirs();
More information about the jboss-cvs-commits
mailing list