This is an automated email from the ASF dual-hosted git repository.

sebawagner pushed a commit to branch 
feature/update-javascript-and-build-instructions
in repository https://gitbox.apache.org/repos/asf/openmeetings.git

commit 84a6522e9304d55090808358b43a4a8d19384686
Author: Sebastian Wagner <[email protected]>
AuthorDate: Mon Aug 17 18:36:22 2020 +1200

    Update Javascript and Build Instructions.
---
 openmeetings-server/src/site/xdoc/BuildInstructions.xml | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/openmeetings-server/src/site/xdoc/BuildInstructions.xml 
b/openmeetings-server/src/site/xdoc/BuildInstructions.xml
index 41adef7..2eab1d4 100644
--- a/openmeetings-server/src/site/xdoc/BuildInstructions.xml
+++ b/openmeetings-server/src/site/xdoc/BuildInstructions.xml
@@ -60,7 +60,7 @@
                <section name="Check dependencies">
                        <source>mvn 
org.apache.maven.plugins:maven-dependency-plugin:analyze-only</source>
                </section>
-               <section name="Tips and Gotchas">
+               <section name="Incremental Build and Run Embedded Jetty">
                        <p>Eclipse ANSI colors plugin for colors in console</p>
                        <source><![CDATA[
 MAVEN_OPTS='-Xdebug 
-Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n' mvn clean -P 
allModules,quick,mysql jetty:run-exploded
@@ -87,6 +87,19 @@ mvn install -P allModules,quick,mysql -pl 
openmeetings-web,openmeetings-server -
 mvn install -P allModules,quick,mysql -pl 
openmeetings-util,openmeetings-db,openmeetings-core,openmeetings-install,openmeetings-service,openmeetings-web,openmeetings-server,openmeetings-webservice
 -Dwicket.configuration=DEVELOPMENT
 ]]>
                        </source>
+
+               </section>
+               <section name="Update JavaScript and CSS at runtime">
+                       <div>
+                               <p>You can update the selected the Javascript 
and CSS files and then copy them at runtime. No need to re-run the entire 
Server build and restart. This can greatly save time when developing:</p>
+                               <source>mvn minify:minify@room-js 
minify:minify@interview-wb-js minify:minify@wb-js minify:minify@fileinput-js 
minify:minify@settings-js minify:minify@nettest-js minify:minify@chat-js 
minify:minify@theme-minify</source>
+                               <p>You can further trim down the compile time 
to just selected Javascript sections:</p>
+                               <source>mvn minify:minify@room-js 
minify:minify@interview-wb-js</source>
+                               <p>And then copy them into the relevant folder, 
for example if your run the Embedded Jetty:</p>
+                               <source>cp -R 
target/generated-sources/main/java/org/apache/openmeetings/* 
target/openmeetings-web-5.0.0-SNAPSHOT/WEB-INF/classes/org/apache/openmeetings/</source>
+                       </div>
+               </section>
+               <section name="Fix Proxy settings">
                        <div>
                                <b>Working behind a proxy:</b>
                                If you are sitting behind a proxy you should 
add some proxy settings before starting the build process.

Reply via email to