Browse Source

248814: perclassloaderdumpdir

tags/V1_6_2
aclement 15 years ago
parent
commit
a85c94e29a
1 changed files with 9 additions and 1 deletions
  1. 9
    1
      weaver/src/org/aspectj/weaver/tools/WeavingAdaptor.java

+ 9
- 1
weaver/src/org/aspectj/weaver/tools/WeavingAdaptor.java View 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.

Loading…
Cancel
Save