summaryrefslogtreecommitdiffstats
path: root/weaver
diff options
context:
space:
mode:
authoraclement <aclement>2008-09-27 17:25:59 +0000
committeraclement <aclement>2008-09-27 17:25:59 +0000
commita85c94e29a245a321a233083e3dfb6dacc847edf (patch)
treeaba22205f307f1d78c218c3cab7c2fd196047148 /weaver
parent60144233e56848874235cf31730c8aa91c8cc3a3 (diff)
downloadaspectj-a85c94e29a245a321a233083e3dfb6dacc847edf.tar.gz
aspectj-a85c94e29a245a321a233083e3dfb6dacc847edf.zip
248814: perclassloaderdumpdir
Diffstat (limited to 'weaver')
-rw-r--r--weaver/src/org/aspectj/weaver/tools/WeavingAdaptor.java10
1 files changed, 9 insertions, 1 deletions
diff --git a/weaver/src/org/aspectj/weaver/tools/WeavingAdaptor.java b/weaver/src/org/aspectj/weaver/tools/WeavingAdaptor.java
index 423c8bd3d..7cb43e909 100644
--- a/weaver/src/org/aspectj/weaver/tools/WeavingAdaptor.java
+++ b/weaver/src/org/aspectj/weaver/tools/WeavingAdaptor.java
@@ -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.