-
Notifications
You must be signed in to change notification settings - Fork 221
Streamlined Getting Started Guide
This is a streamlined guide to getting started with WALA, based on use of Gradle and the WALA jars in Maven Central. With this approach, you never need to clone the WALA GitHub repository, and you can more easily use tools other than Eclipse for development. This guide is a work in progress; feedback / edits welcome.
On Mac OS, if you have Homebrew installed, you can get the above dependencies by running:
brew cask install java
TODO add instructions for Ubuntu
We are going to use the WALA-start repository, which contains some sample analyses and an appropriate Gradle build file to automatically pull in the relevant WALA jars. First, clone the repository:
git clone https://github.com/msridhar/WALA-start
Then, compile the Java code:
cd WALA-start
./gradlew compileJava
The first time you run this command, gradle will download the WALA jars and their dependencies, which will take some time.
That's basically it! You can use the sample analyses under src/main/java
to get started with your own analysis. E.g., check out ScopeFileCallGraph
to see how to build a call graph given a scope file.
If you'd like to use Eclipse for development, first run the following command in the WALA-start
directory:
./gradlew eclipse
This generates the appropriate Eclipse metadata. Once you've done that, you should be able to import WALA-start
as an Eclipse project.