[Soot-list] Filename of XML output from tag/attribute generation

Jiaqi Tan tanjiaqi at gmail.com
Fri Feb 1 17:54:54 EST 2013


Hi,

I have the Soot Eclipse plugin installed, and I would like to generate
annotations on the source-code of a given class, but I'm having
trouble getting the output to show up in Eclipse.

Currently, I have written a simple data-flow analysis subclassed from
ForwardBranchedFlowAnalysis, and I have a BodyTransformer which uses
the output from my analysis and adds a bunch of ColorTag's and
StringTag's. I also have a stub main class which adds my
BodyTransformer to the jap Jimple annotation pack.

The class which I'm analyzing is in some package, a.b.c.myClass.
Currently, I am running the analyzing using the right-click menu in
Eclipse on the myClass.java file. I have a saved configuration under
"Soot > Process Source File > Manage Configurations", in which I
specify my stub main class as the main class, and my project name. The
analysis runs fine, and I get the output in
WORKSPACE/PROJECT/sootOutput/attributes/myClass.xml. However, the
annotations do not show up in Eclipse, and they show up only when I
rename the XML file to a.b.c.myClass.xml.

Is there any way I can get Soot to write the XML with the tag
information to a file whose name is the full package+class name? Must
the attribute file name contain the full package+class name?

Thanks!

Regards
Jiaqi Tan


More information about the Soot-list mailing list