Skip to content

Commit 67dfa67

Browse files
author
Owen
committed
Make DSpace.sh run in a reasonable time
Remove most of the jar files.
1 parent 6d3f7c0 commit 67dfa67

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

benchmarks/GENUINE/DSpace.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,19 @@ if [[ ! -d $REPO_DIR ]]; then
4141
ant init_configs
4242
ant install_code
4343
ant copy_webapps
44+
45+
# To exclude libraries we move only what we need to another directory
46+
mkdir -p $DEPLOY_DIR/fake_build/WEB-INF/lib
47+
cp -r $DEPLOY_DIR/webapps/jspui/WEB-INF/classes $DEPLOY_DIR/fake_build/WEB-INF
48+
cp $DEPLOY_DIR/webapps/jspui/WEB-INF/lib/dspace-api-6.0-SNAPSHOT.jar $DEPLOY_DIR/fake_build/WEB-INF/lib
4449
fi
4550

4651
# Run security-analyser
4752
cd $SECURITY_SCANNER_HOME
4853

4954
python3 $SCRIPT_DIR/../../driver/run.py \
5055
-C $SCRIPT_DIR/DSpace_rules.json \
51-
-I $DEPLOY_DIR/webapps/jspui \
56+
-I $DEPLOY_DIR/fake_build \
5257
-L $SCRIPT_DIR/DSpace_files/DI/target \
5358
-R $OUTPUT_DIR/DSpace/results \
5459
-T $OUTPUT_DIR/DSpace/temp \

0 commit comments

Comments
 (0)