-
Notifications
You must be signed in to change notification settings - Fork 5
/
install.sh
executable file
·28 lines (17 loc) · 1016 Bytes
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
cd "$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")"
# Install Slicer4J
echo "#################################################################"
echo "Downloading Slicer4J and DynamicSlicingCore"
mkdir slicer
git clone [email protected]:resess/DynamicSlicingCore.git slicer/DynamicSlicingCore
git clone [email protected]:resess/Slicer4J.git slicer/Slicer4J
echo "#################################################################"
echo "Building Slicer4J and DynamicSlicingCore"
mvn -f slicer/DynamicSlicingCore/core -Dmaven.test.skip=true clean install
mvn -f slicer/Slicer4J/Slicer4J -Dmaven.test.skip=true clean install
echo "#################################################################"
echo "Building JUnit4 Runner"
javac slicer/Slicer4J/scripts/SingleJUnitTestRunner.java -cp "slicer/Slicer4J/scripts/junit-4.8.2.jar"
jar -cf slicer/Slicer4J/scripts/SingleJUnitTestRunner.jar -C slicer/Slicer4J/scripts SingleJUnitTestRunner.class
rm slicer/Slicer4J/scripts/SingleJUnitTestRunner.class