You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwebbeans.apache.org by rm...@apache.org on 2017/04/25 13:44:57 UTC

svn commit: r1792610 - in /openwebbeans/meecrowave/trunk: meecrowave-doc/src/main/jbake/content/meecrowave-maven/index.adoc meecrowave-maven-plugin/src/main/resources/bin/meecrowave.sh

Author: rmannibucau
Date: Tue Apr 25 13:44:56 2017
New Revision: 1792610

URL: http://svn.apache.org/viewvc?rev=1792610&view=rev
Log:
MEECROWAVE-27 support of MEECROWAVE_BASE and HOME as tomcat

Modified:
    openwebbeans/meecrowave/trunk/meecrowave-doc/src/main/jbake/content/meecrowave-maven/index.adoc
    openwebbeans/meecrowave/trunk/meecrowave-maven-plugin/src/main/resources/bin/meecrowave.sh

Modified: openwebbeans/meecrowave/trunk/meecrowave-doc/src/main/jbake/content/meecrowave-maven/index.adoc
URL: http://svn.apache.org/viewvc/openwebbeans/meecrowave/trunk/meecrowave-doc/src/main/jbake/content/meecrowave-maven/index.adoc?rev=1792610&r1=1792609&r2=1792610&view=diff
==============================================================================
--- openwebbeans/meecrowave/trunk/meecrowave-doc/src/main/jbake/content/meecrowave-maven/index.adoc (original)
+++ openwebbeans/meecrowave/trunk/meecrowave-doc/src/main/jbake/content/meecrowave-maven/index.adoc Tue Apr 25 13:44:56 2017
@@ -37,7 +37,17 @@ The layout if the following one:
 
 [source]
 ----
-
+.
+├── bin
+│   └── meecrowave.sh
+├── conf
+│   ├── log4j2.xml
+│   └── meecrowave.properties
+├── lib
+│   └── *.jar
+├── logs
+│   └── meecrowave.logls l
+└── temp
 ----
 
 conf folder supports out of the box these files (but you can add your own if needed):
@@ -50,6 +60,9 @@ You can acess the root folder of the dis
 
 `meecrowave.properties` supports all configuration options of the cli (just remove the `--`): http://openwebbeans.apache.org/meecrowave/meecrowave-core/cli.html.
 
+Note: you can also split like Tomcat MEECROWAVE_BASE and MEECROWAVE_HOME if you want to extract meecrowave stack in a separate folder (from the application) to be able to update
+it independently.
+
 == Shading
 
 Plain Maven shade plugin enables you to build fatjar with Maven.

Modified: openwebbeans/meecrowave/trunk/meecrowave-maven-plugin/src/main/resources/bin/meecrowave.sh
URL: http://svn.apache.org/viewvc/openwebbeans/meecrowave/trunk/meecrowave-maven-plugin/src/main/resources/bin/meecrowave.sh?rev=1792610&r1=1792609&r2=1792610&view=diff
==============================================================================
--- openwebbeans/meecrowave/trunk/meecrowave-maven-plugin/src/main/resources/bin/meecrowave.sh (original)
+++ openwebbeans/meecrowave/trunk/meecrowave-maven-plugin/src/main/resources/bin/meecrowave.sh Tue Apr 25 13:44:56 2017
@@ -169,6 +169,15 @@ fi
 if [ ! -z "$CLASSPATH" ] ; then
   CLASSPATH="$CLASSPATH":
 fi
+if [ "$MEECROWAVE_HOME" != "$MEECROWAVE_BASE" ]; then
+  for i in "$MEECROWAVE_BASE/lib/"*.jar ; do
+    if [ -z "$CLASSPATH" ] ; then
+      CLASSPATH="$i"
+    else
+      CLASSPATH="$i:$CLASSPATH"
+    fi
+  done
+fi
 for i in "$MEECROWAVE_HOME/lib/"*.jar ; do
   if [ -z "$CLASSPATH" ] ; then
     CLASSPATH="$i"