You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+27-9
Original file line number
Diff line number
Diff line change
@@ -46,6 +46,22 @@ For detailed information please also consider the Soot's [JavaDoc and Options](h
46
46
47
47
# Including Soot in your Project
48
48
49
+
A Soot release is currently built for each commit to the `master` branch. You can include Soot as
50
+
a dependency via Maven, Gradle, SBT, etc using the following coordinates:
51
+
52
+
53
+
```.xml
54
+
<dependencies>
55
+
<dependency>
56
+
<groupId>org.soot-oss</groupId>
57
+
<artifactId>soot</artifactId>
58
+
<version>4.2.1</version>
59
+
</dependency>
60
+
</dependencies>
61
+
```
62
+
63
+
You can also obtain older builds of the `master` branch. A complete listing of builds can be found on [Maven Central](https://repo.maven.apache.org/maven2/org/soot-oss/soot/).
64
+
49
65
A Soot SNAPSHOT is currently built for each commit to the `develop` branch. You can include Soot as
50
66
a dependency via Maven, Gradle, SBT, etc using the following coordinates:
51
67
@@ -73,7 +89,7 @@ You can also obtain older builds of the `develop` branch. A complete listing of
73
89
74
90
# How do I obtain Soot without Maven?
75
91
**We recommend using Soot with Maven**
76
-
92
+
You can obtain the latest release build of Soot [directly](https://repo1.maven.org/maven2/org/soot-oss/soot/).
77
93
You can obtain the latest SNAPSHOT build of Soot [directly](https://oss.sonatype.org/content/repositories/snapshots/org/soot-oss/soot/).
78
94
79
95
The `soot-<RELEASE>-jar-with-dependencies.jar` file is an all-in-one file that also contains all the required libraries.
@@ -111,17 +127,18 @@ If you want to execute Soot with Java 8 but analyze Java >8 Projects or vice ver
111
127
## Use from Source Code
112
128
To load modules in Soot's `ModuleScene` from java:
113
129
```.java
114
-
// configure Soot's options
130
+
// configure Soot's options, refer to example configurations below
115
131
Options.v().set_soot_modulepath(modulePath);
116
132
117
133
118
134
// load classes from modules into Soot
135
+
// Here, getClassUnderModulePath() expects the module path to be set using the Options class as seen above
ModuleUtil.module_mode() helps you check whether you have modules enabled in Soot. This is done based on whether the module path is set using the Options class.
In the above examples, applicationClassPath() should be replaced with the path to the application classes for analysis by Soot and sootClassPath() should be replaced with the Soot classpath.
167
185
168
186
## Use from the Command Line
169
187
To execute Soot using Java 1.9, but analyzing a classpath run, just as before:
0 commit comments