|
1 | 1 | <project name="csslint" default="build.all"> |
2 | 2 |
|
3 | 3 | <!-- version number --> |
4 | | - <property name="csslint.version" value="0.8.1" /> |
| 4 | + <property name="csslint.version" value="0.8.5" /> |
5 | 5 |
|
6 | 6 | <!-- the directories containing the source files --> |
7 | 7 | <property name="src.dir" value="./src" /> |
|
30 | 30 | <property name="worker.build.file" value="csslint-worker.js"/> |
31 | 31 | <property name="tests.build.file" value="csslint-tests.js"/> |
32 | 32 | <property name="rhino.build.file" value="csslint-rhino.js"/> |
| 33 | + <property name="wsh.build.file" value="csslint-wsh.js"/> |
33 | 34 |
|
34 | 35 | <!-- embeddable license --> |
35 | 36 | <loadfile property="license.text" srcfile="LICENSE" /> |
|
85 | 86 | <target name="lint"> |
86 | 87 | <fileset dir="${src.dir}" includes="**/*.js" id="jsfiles.raw"/> |
87 | 88 | <pathconvert pathsep=" " property="jsfiles.clean" refid="jsfiles.raw" /> |
88 | | - <exec executable="java"> |
| 89 | + <exec executable="java" failonerror="true"> |
89 | 90 | <arg line="-jar"/> |
90 | 91 | <arg path="${lib.dir}/js.jar"/> |
91 | 92 | <arg path="${lib.dir}/jshint.js" /> |
|
204 | 205 | </concat> |
205 | 206 | </target> |
206 | 207 |
|
| 208 | + <!-- build for WSH CLI integration --> |
| 209 | + <target name="build.wsh" depends="build.core"> |
| 210 | + <concat destfile="${build.dir}/${wsh.build.file}" fixlastline="true"> |
| 211 | + <filelist dir="${build.dir}" files="${core.build.file}" /> |
| 212 | + <filelist dir="${src.dir}/cli" files="common.js,wsh.js" /> |
| 213 | + </concat> |
| 214 | + </target> |
| 215 | + |
207 | 216 | <!-- Create a release with version number embedded --> |
208 | 217 | <target name="release" depends="test,build.all,changelog.update"> |
209 | 218 | <delete dir="${release.dir}" /> |
|
228 | 237 | </target> |
229 | 238 |
|
230 | 239 | <!-- Build all files --> |
231 | | - <target name="build.all" depends="clean,build.core,build.worker,build.node,build.tests,build.rhino"/> |
| 240 | + <target name="build.all" depends="clean,build.core,build.worker,build.node,build.tests,build.rhino,build.wsh"/> |
232 | 241 |
|
233 | 242 | </project> |
0 commit comments