<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
"http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title></title>
</head>
<body style="font-family:Arial;font-size:14px">
<p>Hello All,<br>
<br>
I execute, the following code twice. Each time for different classname. However, when I execute them in the same program run the result of the second transform is incorrect.<br>
<br>
<em>PackManager.v().getPack("jtp")</em></p>
<div><em>.add(new Transform("jtp.mainInstrumentation", classname));</em><br>
<br>
When I execute the PackManager twice in 2 different program runs, everything works fine but executing them together creates a null result. I tried to remove the particular phase name before the second execution, but that does not help.<br>
<br>
Just to make it clear, here is what I tried:<br>
<br>
<div><em>PackManager.v().getPack("jtp")</em></div>
<div><em>.add(new Transform("jtp.mainInstrumentation", new XMLConversion()));<br>
PackManager.v().getPack("jtp").remove("jtp.mainInstrumentation");</em><br>
<div><em>PackManager.v().getPack("jtp")</em></div>
<div><em>.add(new Transform("jtp.xmlInstrumentation", new XMLConversion()));</em></div>
</div>
</div>
<p><br>
jtp.mainInstrumentation works fine, but jtp.xmlInstrumentation does not work here. However , if I execute them individually, I get perfect results.<br>
<br>
Please note that I want them to use "jtp" and not "wjtp" or any other packs.<br>
<br>
I would really appreciate if anyone has an idea why this happens in PackManager.<br>
<br>
Thanks,<br>
Pallavi<br></p>
</body>
</html>