-
Notifications
You must be signed in to change notification settings - Fork 13
/
hotDeploy.sh
executable file
·30 lines (23 loc) · 1.24 KB
/
hotDeploy.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
29
30
#!/bin/sh
version=3.5-SNAPSHOT
curDir=`pwd`
jettyDir=$curDir/wiki30-distribution/wiki30-distribution-zip/target/wiki30-distribution-zip-1.0-SNAPSHOT/webapps/xwiki/resources/js/xwiki
libDir=$curDir/wiki30-distribution/wiki30-distribution-zip/target/wiki30-distribution-zip-1.0-SNAPSHOT/webapps/xwiki/WEB-INF/lib
#Realtime core
#cd wiki30-realtime/rt-gwt-client
#mvn -o -nsu clean install -DskipTests=true -DfailIfNoTests=false
#rm -rf $jettyDir/rte
#cp -r target/rt-gwt-client-1.0-SNAPSHOT/resources/js/xwiki/rte $jettyDir
#cp target/rt-gwt-client-1.0-SNAPSHOT-shared.jar $libDir
#Realtime plugin
cd wiki30-realtime-wysiwyg-plugin
mvn -nsu clean install -DskipTests=true -DfailIfNoTests=false
wysiwygDir=$jettyDir/wysiwyg/xwe
rm $wysiwygDir/*.cache.html
rm $wysiwygDir/*.rpc
cd $curDir/xwiki-platform-wiki30/xwiki-platform-core/xwiki-platform-wysiwyg/xwiki-platform-wysiwyg-war
mvn -o -nsu clean gwt:compile -DskipTests=true -DfailIfNoTests=false -Pdev
cp target/xwiki-platform-wysiwyg-war-${version}/resources/js/xwiki/wysiwyg/xwe/*.html $wysiwygDir
cp target/xwiki-platform-wysiwyg-war-${version}/resources/js/xwiki/wysiwyg/xwe/xwe.nocache.js $wysiwygDir
cp target/xwiki-platform-wysiwyg-war-${version}/resources/js/xwiki/wysiwyg/xwe/*.rpc $wysiwygDir
cd $curDir