Skip to content
This repository has been archived by the owner on Jan 10, 2020. It is now read-only.

Commit

Permalink
Added failonerror to lint and yuicompress tasks, to force build failu…
Browse files Browse the repository at this point in the history
…re on compressor or lint fatal errors
  • Loading branch information
sdesai committed Oct 23, 2009
1 parent 7878c01 commit 39007ad
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions componentbuild/shared/macrolib.xml
Expand Up @@ -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}" />
Expand All @@ -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}" />
Expand All @@ -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>

Expand All @@ -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}'" />
Expand Down

0 comments on commit 39007ad

Please sign in to comment.