2019-09-16 11:21:57 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
|
|
# Remove previous dist directory
|
2020-06-10 11:11:23 +00:00
|
|
|
rm -rf dist/
|
2019-09-16 11:21:57 +00:00
|
|
|
|
|
|
|
|
# Build the code. $@ accepts all the parameters from the input command line and uses it in the maven build command
|
|
|
|
|
mvn clean package "$@"
|
|
|
|
|
|
2021-07-26 00:07:10 +00:00
|
|
|
if [ $? -eq 0 ]
|
|
|
|
|
then
|
|
|
|
|
echo "mvn Successfull"
|
|
|
|
|
else
|
|
|
|
|
echo "mvn Failed"
|
|
|
|
|
exit 1
|
|
|
|
|
fi
|
|
|
|
|
|
2019-09-16 11:21:57 +00:00
|
|
|
# Create the dist directory
|
|
|
|
|
mkdir -p dist/plugins
|
|
|
|
|
|
|
|
|
|
# Copy the server jar
|
2021-09-21 10:29:14 +00:00
|
|
|
cp -v ./appsmith-server/target/server-*.jar dist/
|
2019-09-16 11:21:57 +00:00
|
|
|
|
|
|
|
|
# Copy all the plugins
|
2020-06-10 11:11:23 +00:00
|
|
|
rsync -av --exclude "original-*.jar" ./appsmith-plugins/*/target/*.jar dist/plugins/
|