-
Notifications
You must be signed in to change notification settings - Fork 39
Building
AutoReviewComments is assembled from sources and made into ready to use userscripts and extensions using the Apache Ant build system. The main tool ant
and some additional contributed libraries in ant-contrib
are required to build the extension from source.
-
Install the JDK
Download a copy of latest JDK from Oracle and install it. (screenshot)
To do so, you need to accept the license agreement. Then you can download the file appropriate for your platform and run it. (screenshot)
-
Install Ant
Download winant and install it. (screenshot)
Make sure that the Ant-Contrib tasks are selected for installation. (screenshot)
When asked to provide the Java directory, provide the path of the JDK installation you performed earlier. In our case, the path of the JDK is
C:\Program Files\Java\jdk1.7.0_51
. (screenshot) -
Install git
Download Git for Windows and install it. (screenshot)
-
Install Python
Download ActiveState ActivePython 2.7.x and install it.
-
Install ant from core.
pacman -Sy apache-ant
-
Install ant-contrib using your favorite AUR helper or directly from this package.
yaourt -Sy apache-ant-contrib
-
Install all required dependencies to download and build SE-AutoReviewComments.
sudo apt-get install ant ant-contrib git openjdk-7-jdk python2.7
-
To make sure that ant can find the ant-contrib tasks, create a symlink into the
lib
folder of the ant installation:sudo ln -s /usr/share/java/ant-contrib.jar /usr/share/ant/lib/ant-contrib.jar
-
Install Homebrew if you haven't already.
-
Install Apache Ant from the standard formula.
brew install apache-ant
-
Install ant-contrib using this (unofficial) package.
brew install https://github.com/teras/homebrew-teras/raw/ant-contrib/Library/Formula/ant-contrib.rb
-
Open an instance of Git Bash. (screenshot)
-
Clone the SE-AutoReviewComments git repository, using
git clone https://github.com/Benjol/SE-AutoReviewComments.git
. Substitute the URL of your clone if you have forked it on Github (recommended). (screenshot) -
Start the build process by issuing
./build.sh
in the SE-AutoReviewComments folder (NOTE: this may not succeed if you did not go through with the 'reboot' step requested by the winant install). (screenshot)
-
Grab a copy of the git repository. Substitute the URL of your clone if you have forked it on Github (recommended).
git clone https://github.com/Benjol/SE-AutoReviewComments.git
-
Build SE-AutoReviewComments using the provided script.
cd SE-AutoReviewComments ./build.sh