[Soot-list] using scene transformer
suraj kath
surajkath108 at gmail.com
Sun Mar 6 15:40:17 EST 2011
i want to use SceneTransformer i have been passing parameters
arg[0]= -process-dir
arg[1]= -w(to activate wjtp package)
arg[2]= e:\classfiles (the path where the classes are stored)
can u please tell me what is wrong in my order or should i add a new
parameter
and i have mailed my code
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.cs.mcgill.ca/pipermail/soot-list/attachments/20110306/6addd724/attachment.html
-------------- next part --------------
public static void main(String[] args)throws FileNotFoundException,IOException {
Scene.v().setSootClassPath("E:\\classfiles;C:\\Program Files\\Java\\jre6\\lib\\rt.jar;C:\\Program Files\\Java\\jre6\\lib\\jce.jar");
Pack jtp = PackManager.v().getPack("wjtp");
jtp.add(new Transform("wjtp.findmethod",
new replacemethod()));
Options.v().set_whole_program(true);
soot.Main.main(args);
}
class replacemethod extends SceneTransformer
{
protected void internalTransform(String phase, Map options)
{
it is not executing the code;
}
}
More information about the Soot-list
mailing list