]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5080 speed-up startup of dev mode and document the installation of nodejs
authorSimon Brandhof <simon.brandhof@gmail.com>
Thu, 27 Feb 2014 16:38:52 +0000 (17:38 +0100)
committerSimon Brandhof <simon.brandhof@gmail.com>
Thu, 27 Feb 2014 16:38:59 +0000 (17:38 +0100)
README.md
sonar-server/pom.xml

index fb80a8df2ddf55a0f85be5389249928fc7209b22..2f4bd1fbdd748fe3f90f10d9d9cfcb0e963297c1 100644 (file)
--- a/README.md
+++ b/README.md
@@ -39,15 +39,15 @@ Committers must configure their SSH key (see GitHub documentation for Windows an
 
 * Install JDK 6 or greater
 * Install Maven 3.0.5 or greater
-* Execute `mvn clean install`. To quickly build in development environment, the script `quick-build.sh` does not execute unit tests and compile GWT components for Firefox/Chrome only.
-* ZIP file of application is generated in sonar-application/target/
+* Execute `mvn clean install`. ZIP file of application is generated into sonar-application/target/
+* To speed-up the build, http://nodejs.org must be installed (simply execute `brew install nodejs` on MacOS). node executable node must be available in PATH.
 
 ### Edit Ruby Code
 
 The development mode is used to edit Ruby on Rails code. The application is automatically reloaded when Ruby files are saved. It avoids restarting the server. Changes are reloaded on the fly. Execute one of the following commands from the sonar-server/ directory to start server:
 
     # for embedded database
-    sonar-server/derby-start.sh
+    sonar-server/h2-start.sh
     
     # or for other dbs
     sonar-server/mysql-start.sh
@@ -69,34 +69,9 @@ Duplicate $MAVEN_HOME/bin/mvnDebug to mvnJProfiler and replace the property MAVE
 
 Then start JProfiler -> Connect to an application on a remote computer
 
-### Log All Server SQL Requests
-
-Download log4jdbc4-1.2.jar from http://log4jdbc.googlecode.com/files/log4jdbc4-1.2.jar in $SONAR_HOME/war/sonar-server/WEB-INF/lib/log4jdbc4-1.2.jar, and edit conf/logback.xml:
-
-    <logger name="jdbc.sqltiming">
-      <level value="OFF"/>
-      <appender-ref ref="PROFILING_FILE"/>
-    </logger>
-    <logger name="jdbc.connection">
-        <level value="INFO"/>
-        <appender-ref ref="PROFILING_FILE"/>
-    </logger>
-    <logger name="jdbc.audit">
-        <level value="OFF"/>
-        <appender-ref ref="PROFILING_FILE"/>
-    </logger>
-    <logger name="jdbc.resultset">
-        <level value="OFF"/>
-        <appender-ref ref="PROFILING_FILE"/>
-    </logger>
-    <logger name="jdbc.sqlonly">
-        <level value="OFF"/>
-        <appender-ref ref="PROFILING_FILE"/>
-    </logger>
-    
 ## License
 
-Copyright 2008-2013 SonarSource.
+Copyright 2008-2014 SonarSource.
 
 Licensed under the GNU Lesser General Public License, Version 3.0: http://www.gnu.org/licenses/lgpl.txt
 
index 61743f16b8a62f662c82e673579505025f4454a0..ce5ed2b1a9b045cddb2437554f091c224c913770 100644 (file)
         <artifactId>wro4j-maven-plugin</artifactId>
         <executions>
           <execution>
-            <phase>compile</phase>
+            <phase>prepare-package</phase>
             <goals>
               <goal>run</goal>
             </goals>
         <version>2.0.3</version>
         <executions>
           <execution>
+            <phase>prepare-package</phase>
             <goals>
               <goal>optimize</goal>
             </goals>
         <executions>
           <execution>
             <id>trim</id>
-            <phase>process-resources</phase>
+            <phase>prepare-package</phase>
             <goals>
               <goal>trim</goal>
             </goals>