]> source.dussan.org Git - vaadin-framework.git/commitdiff
Enable assertions in widgetsets built with ide.xml (#14431)
authorJohannes Dahlström <johannesd@vaadin.com>
Fri, 15 Aug 2014 08:30:29 +0000 (11:30 +0300)
committerVaadin Code Review <review@vaadin.com>
Fri, 22 Aug 2014 14:18:41 +0000 (14:18 +0000)
Also add property to customize log level.

Change-Id: I817400aec13fe2b12c382d97b404c08b06dc263a

build/ide.xml

index 1e586acc19d971b21da45f03d0b1b27ded8cb1e6..fff4ba911d4545c1fa057df1f12138363f991e73 100755 (executable)
     <target name="compile-widgetset" depends="resolve">
         <property name="module" value="${widgetset}" />
         <property name="module.output.dir" location="WebContent/VAADIN/widgetsets" />
+        <property name="logLevel" value="TRACE" />
         <property name="style" value="PRETTY" />
         <property name="localWorkers" value="2" />
+        <!-- Whether assertions should be compiled into the widgetset. 
+             Either "-ea" to enable or "" to disable. -->
+        <property name="assertions" value="-ea" />
         <property name="extraParams" value="" />
 
         <mkdir dir="${module.output.dir}" />
 
-        <echo>Compiling ${module} to ${module.output.dir} with parameters -logLevel TRACE -style ${style} -localWorkers ${localWorkers} -strict ${extraParams}</echo>
+        <echo>Compiling ${module} to ${module.output.dir} with parameters -logLevel ${logLevel} -style ${style} -localWorkers ${localWorkers} ${assertions} -strict ${extraParams}</echo>
 
         <!--<ivy:resolve log="download-only" inline="true" organisation="javax.validation" module="validation-api" 
             revision="1.0.0.GA"/> -->
             <arg value="-workDir" />
             <arg value="${work.dir}" />
             <arg value="-logLevel" />
-            <arg value="TRACE" />
+            <arg value="${logLevel}" />
             <arg value="-war" />
             <arg value="${module.output.dir}" />
             <arg value="-style" />
             <arg value="${style}" />
-
             <arg value="-localWorkers" />
             <arg value="${localWorkers}" />
+            <arg line="${assertions}" />
             <arg value="-strict" />
             <arg line="${extraParams}" />
             <arg value="${module}" />