kan-qi / UMLx

Analyze software architecture and generate insights about software development complexities, risks, and costs.
3 stars 0 forks source link

Integrating gator jar into the framework. #577

Open kan-qi opened 5 years ago

kan-qi commented 5 years ago

Currently we are using the command "gator -b" to execute the analysis of android apps, to integrate the tool into the framework, write a method to directly call the java command.

java -Xmx16G -cp /mnt/f/D/ResearchSpace/ResearchProjects/UMLx/facility-tools/gator/sootandroid/build/libs/sootandroid-1.0-SNAPSHOT-all.jar presto.android.Main -sootandroidDir /mnt/f/D/ResearchSpace/ResearchProjects/UMLx/facility-tools/gator/sootandroid -sdkDir /mnt/f/D/Android_SDK -listenerSpecFile /mnt/f/D/ResearchSpace/ResearchProjects/UMLx/facility-tools/gator/sootandroid/listeners.xml -wtgSpecFile /mnt/f/D/ResearchSpace/ResearchProjects/UMLx/facility-tools/gator/sootandroid/wtg.xml -resourcePath /tmp/gator-gen8zkoc/res -manifestFile /tmp/gator-gen8zkoc/AndroidManifest.xml -project /mnt/f/D/AndroidAnalysis/batch_analysis/AnotherMonitor_release_1/AnotherMonitor_release_1.apk -apiLevel android-25 -guiAnalysis -benchmarkName AnotherMonitor_release_1.apk -android /mnt/f/D/Android_SDK/platforms/android-25/android.jar -client GUIHierarchyPrinterClient -outputDir /mnt/f/D/AndroidAnalysis/batch_analysis/AnotherMonitor_release_1

there are a few parameters that need to be processed before using the java command. The processing steps are currently written in Gator's python script:

we need to write the corresponding functions in node js and run the gator tool as jar.

image