Skip to content
Browse files

Added failonerror to lint and yuicompress tasks, to force build failu…

…re on compressor or lint fatal errors
  • Loading branch information...
1 parent 7878c01 commit 39007ada282c85502c1ce7e8e3fab41b04206b7b @sdesai sdesai committed Oct 22, 2009
Showing with 6 additions and 6 deletions.
  1. +6 −6 componentbuild/shared/macrolib.xml
View
12 componentbuild/shared/macrolib.xml
@@ -75,7 +75,7 @@
<sequential>
<echo level="info">Running yuicompressor on @{src}</echo>
- <java jar="${yuicompressor.jar}" fork="true">
+ <java jar="${yuicompressor.jar}" fork="true" failonerror="true">
<arg line="@{args} -o" />
<arg file="@{dest}" />
<arg file="@{src}" />
@@ -96,7 +96,7 @@
<echo level="info"> Source Files : @{sourcefiles}</echo>
<echo level="info"> In Source Dir : @{sourcedir}</echo>
<echo level="info"> To : @{destfile}</echo>
-
+
<delete dir="@{workingdir}" quiet="true"/>
<copy todir="@{workingdir}">
<filelist dir="@{sourcedir}" files="@{sourcefiles}" />
@@ -106,11 +106,11 @@
</filterchain>
</copy>
- <concat destfile="@{destfile}" fixlastline="true" >
+ <concat destfile="@{destfile}" fixlastline="true">
<filelist dir="@{workingdir}" files="@{sourcefiles}" />
</concat>
-
- <delete dir="${workingdir}" quiet="true"/>
+
+ <delete dir="${workingdir}" quiet="true" />
</sequential>
</macrodef>
@@ -128,7 +128,7 @@
<jsfiles />
</pathconvert>
- <java jar="${rhino.jar}" fork="true">
+ <java jar="${rhino.jar}" fork="true" failonerror="true">
<arg file="${jslintconsole.js}" />
<arg value="${jslintsrc.js}" />
<arg line="'${jsfileargs}'" />

0 comments on commit 39007ad

Please sign in to comment.
Something went wrong with that request. Please try again.