diff options
author | Johannes Dahlström <johannesd@vaadin.com> | 2014-08-15 11:30:29 +0300 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2014-08-22 14:18:41 +0000 |
commit | 7b394db26f3ea20eb71718963c48c31ed0d74298 (patch) | |
tree | 4a9bbb61fe581aa33c38f988224a842c0acccea8 /build | |
parent | d8488d53483485d58fe403d7a4556085fd6fc5f7 (diff) | |
download | vaadin-framework-7b394db26f3ea20eb71718963c48c31ed0d74298.tar.gz vaadin-framework-7b394db26f3ea20eb71718963c48c31ed0d74298.zip |
Enable assertions in widgetsets built with ide.xml (#14431)
Also add property to customize log level.
Change-Id: I817400aec13fe2b12c382d97b404c08b06dc263a
Diffstat (limited to 'build')
-rwxr-xr-x | build/ide.xml | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/build/ide.xml b/build/ide.xml index 1e586acc19..fff4ba911d 100755 --- a/build/ide.xml +++ b/build/ide.xml @@ -128,13 +128,17 @@ <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"/> --> @@ -144,14 +148,14 @@ <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}" /> |