]> source.dussan.org Git - aspectj.git/commitdiff
248814: perclassloaderdumpdir
authoraclement <aclement>
Sat, 27 Sep 2008 17:25:59 +0000 (17:25 +0000)
committeraclement <aclement>
Sat, 27 Sep 2008 17:25:59 +0000 (17:25 +0000)
weaver/src/org/aspectj/weaver/tools/WeavingAdaptor.java

index 423c8bd3ddbad5e7d8b36a309cc1aaa633021a0a..7cb43e9098437043cd2238b1d7b1f6c1a8c9849d 100644 (file)
@@ -492,7 +492,8 @@ public class WeavingAdaptor implements IMessageContext {
         * @throws Throwable
         */
        protected void dump(String name, byte[] b, boolean before) {
-               String dirName = "_ajdump";
+               String dirName = getDumpDir();
+               
                if (before) dirName = dirName + File.separator + "_before";
                
            String className = name.replace('.', '/');
@@ -514,6 +515,13 @@ public class WeavingAdaptor implements IMessageContext {
                warn("unable to dump class " + name + " in directory " + dirName,ex);
            }
        }
+       
+       /**
+        * @return the directory in which to dump - default is _ajdump but it 
+        */
+       protected String getDumpDir() {
+               return "_ajdump";
+       }
 
        /**
         * Processes messages arising from weaver operations.