JAMES-2306 Docker website generation helper should not overwrite unrelated 
content

Before, specifying website directory as destination deleted site archives.


Project: http://git-wip-us.apache.org/repos/asf/james-project/repo
Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/5231e7c6
Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/5231e7c6
Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/5231e7c6

Branch: refs/heads/master
Commit: 5231e7c6a8b36075341a2906f62b36a4a12b78cc
Parents: 4b0f9cd
Author: benwa <[email protected]>
Authored: Mon Jan 15 16:55:28 2018 +0700
Committer: benwa <[email protected]>
Committed: Tue Jan 30 08:57:33 2018 +0700

----------------------------------------------------------------------
 dockerfiles/site/website/compile.sh | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/james-project/blob/5231e7c6/dockerfiles/site/website/compile.sh
----------------------------------------------------------------------
diff --git a/dockerfiles/site/website/compile.sh 
b/dockerfiles/site/website/compile.sh
index a8caa5c..86e6620 100755
--- a/dockerfiles/site/website/compile.sh
+++ b/dockerfiles/site/website/compile.sh
@@ -43,4 +43,7 @@ export MAVEN_OPTS="-Xmx7168m -Xms2048m 
-XX:+UseConcMarkSweepGC -XX:-UseGCOverhea
 
 mvn clean install -DskipTests
 mvn clean site:site -Dmaven.javadoc.skip=true
-mvn site:stage -DstagingDirectory=$DESTINATION/
+mkdir /tmp/website-generation
+mvn site:stage -DstagingDirectory=/tmp/website-generation
+
+cp -r /tmp/website-generation/* $DESTINATION/
\ No newline at end of file


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to