Skip to content

Commit

Permalink
update pom.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
hanada committed Jun 6, 2023
1 parent b61e724 commit 7974178
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 190 deletions.
Binary file modified CrashTracker.jar
Binary file not shown.
6 changes: 3 additions & 3 deletions CrashTracker/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@
</exclusion>
</exclusions>
</dependency>
<!-- https://mvnrepository.com/artifact/org.soot-oss/soot -->

<!-- https://mvnrepository.com/artifact/org.soot-oss/soot -->
<dependency>
<groupId>org.soot-oss</groupId>
<artifactId>soot</artifactId>
Expand Down Expand Up @@ -252,7 +252,7 @@
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>7.6.1</version>
<version>7.7.0</version>
<scope>test</scope>
</dependency>

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,13 @@
import com.iscas.crashtracker.utils.ConstantUtils;
import lombok.extern.slf4j.Slf4j;
import org.dom4j.DocumentException;
import soot.Scene;
import soot.SootClass;
import soot.SootMethod;

import java.io.IOException;
import java.util.ArrayList;
import java.util.HashSet;

/**
* @Author hanada
Expand All @@ -30,6 +35,16 @@ protected void clientAnalyze() {
SootAnalyzer sootAnalyzer = new SootAnalyzer();
sootAnalyzer.analyze();
}
// int classNum, methodNum = 0;
// HashSet<SootClass> applicationClasses = new HashSet<>(Scene.v().getApplicationClasses());
// classNum = applicationClasses.size();
// for (SootClass sootClass : applicationClasses) {
// if (!sootClass.getPackageName().startsWith(ConstantUtils.CGANALYSISPREFIX)) continue;
// methodNum += sootClass.getMethods().size();
// }
// System.out.println(classNum);
// System.out.println(methodNum);

if (!MyConfig.getInstance().isCallGraphAnalyzeFinish()) {
ConstantUtils.CGANALYSISPREFIX = ConstantUtils.FRAMEWORKPREFIX;
new CallGraphofJavaClient().start();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ private void setArgs() {
String path, androidVersion;
path = "C:\\Users\\yanjw\\programs\\framework\\classes\\";
path = "D:\\SoftwareData\\dataset\\android-framework\\classes\\";
MyConfig.getInstance().setAndroidOSVersion("2.3");
MyConfig.getInstance().setAndroidOSVersion("10.0");
// MyConfig.getInstance().setAndroidOSVersion("");

String client = "ExceptionInfoClient";
Expand Down
2 changes: 1 addition & 1 deletion scripts/mvn.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import shutil

if __name__ == '__main__' :
os.system("mvn -f pom.xml clean package ")
os.system("mvn -f pom.xml clean package -DskipTests")
if os.path.exists("target/CrashTracker.jar"):
print("Successfully build! generate jar-with-dependencies in folder target/")
shutil.copy("target/CrashTracker.jar", "CrashTracker.jar")
Expand Down

0 comments on commit 7974178

Please sign in to comment.