You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
misp/make-war.sh

35 lines
945 B

#!/bin/bash
cwd=$(pwd)
mispbridge_out='/out/production/mispbridge/com/olexyn/misp/bridge'
mispbridge_wrapper='/mispbridge/war/wrapper';
# copy compiled code into the wrapper.
cp -r "${cwd}${mispbridge_out}" "${cwd}${mispbridge_wrapper}/WEB-INF/classes"
# compress .war
cd "${cwd}${mispbridge_wrapper}" || exit
jar -cvf ../mispbridge.war *
mispclient_out='/out/production/mispclient/com/olexyn/misp/client'
mispclient_wrapper='/mispclient/war/wrapper';
# copy compiled code into the wrapper.
cp -r "${cwd}${mispclient_out}" "${cwd}${mispclient_wrapper}/WEB-INF/classes"
# compress .war
cd "${cwd}${mispclient_wrapper}" || exit
jar -cvf ../mispclient.war *
mirror_out='/out/production/mirror/com/olexyn/mirror'
mirror_wrapper='/mirror/war/wrapper';
# copy compiled code into the wrapper.
cp -r "${cwd}${mirror_out}" "${cwd}${mirror_wrapper}/WEB-INF/classes"
# compress .war
cd "${cwd}${mirror_wrapper}" || exit
jar -cvf ../mirror.war *