cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ntimof...@apache.org
Subject [cayenne-website] 01/02: Update docs building scripts
Date Thu, 30 Jul 2020 15:07:05 GMT
This is an automated email from the ASF dual-hosted git repository.

ntimofeev pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cayenne-website.git

commit c69e919a5f25fe40a01df386eac5f3a2513c7b49
Author: Nikita Timofeev <stariy95@gmail.com>
AuthorDate: Thu Jul 30 18:06:23 2020 +0300

    Update docs building scripts
---
 build-asciidocs.sh | 10 ++++++++--
 build-docs.sh      | 12 ++++++------
 2 files changed, 14 insertions(+), 8 deletions(-)

diff --git a/build-asciidocs.sh b/build-asciidocs.sh
index 49f1f71..0d5f8c2 100755
--- a/build-asciidocs.sh
+++ b/build-asciidocs.sh
@@ -92,13 +92,19 @@ echo "Building docs for Cayenne $MAJOR_VERSION ($VERSION)"
 # clone git repo and checkout requested TAG
 git clone https://github.com/apache/cayenne.git "$CAYENNE_TMP_DIR" --branch "$GIT_TAG" --depth
1
 # we will need Maven to build only asciidoc modules
-cd  "$CAYENNE_TMP_DIR/docs/asciidoc/"
+cd  "$CAYENNE_TMP_DIR"
 
 # build it
 echo "Running Maven build... it can take a while..."
-mvn install -Passembly -DskipTests -Dcayenne.version=${VERSION} > /dev/null 2>&1
+mvn package -Passembly -q -DskipTests -Dcayenne.version=${VERSION} -pl !modeler,!modeler/cayenne-modeler,\
+!modeler/cayenne-modeler-generic,!modeler/cayenne-modeler-generic-ext,\
+!modeler/cayenne-modeler-mac,!modeler/cayenne-modeler-mac-ext,\
+!modeler/cayenne-modeler-win,!modeler/cayenne-modeler-win-ext,\
+!modeler/cayenne-wocompat,!assembly,!cayenne-gradle-plugin,!docs/doc\
+ > /dev/null 2>&1
 echo "Maven build complete"
 
+cd "docs/asciidoc/"
 # copy everything from ./docs/asciidoc/**/target/site/** directories
 for d in */ ; do
     # skip asciidoc extension module
diff --git a/build-docs.sh b/build-docs.sh
index 1195731..1580f3d 100755
--- a/build-docs.sh
+++ b/build-docs.sh
@@ -96,12 +96,12 @@ cd  "$CAYENNE_TMP_DIR" || exit 3
 
 # build it
 echo "Running Maven build... it can take a while..."
-mvn package -Passembly -q -DskipTests -pl \!modeler,\!modeler/cayenne-modeler,\
-  \!modeler/cayenne-modeler-generic,\!modeler/cayenne-modeler-generic-ext,\
-  \!modeler/cayenne-modeler-mac,\!modeler/cayenne-modeler-mac-ext,\
-  \!modeler/cayenne-modeler-win,\!modeler/cayenne-modeler-win-ext,\
-  \!modeler/cayenne-wecompat,\!assembly \
-  > /dev/null 2>&1
+mvn package -Passembly -q -DskipTests -Dcayenne.version=${VERSION} -pl !modeler,!modeler/cayenne-modeler,\
+!modeler/cayenne-modeler-generic,!modeler/cayenne-modeler-generic-ext,\
+!modeler/cayenne-modeler-mac,!modeler/cayenne-modeler-mac-ext,\
+!modeler/cayenne-modeler-win,!modeler/cayenne-modeler-win-ext,\
+!modeler/cayenne-wocompat,!assembly\
+ > /dev/null 2>&1
 echo "Maven build complete"
 
 # copy JavaDoc


Mime
View raw message