PromucFlow_constructor/app/server/build.sh
Nidhi c3f4cdaa15
feat: Introducing SaaS integrations as a plugin (#7560)
* WIP client side changes

* Saas execution flow + scheduled import of remote plugins
2021-09-21 17:35:29 +05:30

25 lines
514 B
Bash
Executable File

#!/bin/bash
# Remove previous dist directory
rm -rf dist/
# Build the code. $@ accepts all the parameters from the input command line and uses it in the maven build command
mvn clean package "$@"
if [ $? -eq 0 ]
then
echo "mvn Successful"
else
echo "mvn Failed"
exit 1
fi
# Create the dist directory
mkdir -p dist/plugins
# Copy the server jar
cp -v ./appsmith-server/target/server-*.jar dist/
# Copy all the plugins
rsync -av --exclude "original-*.jar" ./appsmith-plugins/*/target/*.jar dist/plugins/