Skip to content

Commit

Permalink
Don't start the lint server if lint.skip=true.
Browse files Browse the repository at this point in the history
  • Loading branch information
reid committed Jun 20, 2010
1 parent 1ece969 commit 069d3e0
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions componentbuild/shared/targets.xml
Expand Up @@ -31,21 +31,30 @@
<tstamp/>
<mkdir dir="${component.builddir}" />
<createdetails />
<antcall target="-node-spawn"/>
<antcall target="-lint-server"/>
</target>

<target name="-node-spawn" description="Start NodeJS Servers" unless="node.spawn">
<target name="-lint-server" description="Start JSLint Server" unless="lint.skip">
<antcall target="-node">
<param name="src" value="${builddir}/lib/jslint/jslint-node.js"/>
</antcall>
</target>

<target name="-node" description="Start NodeJS Server" unless="node.spawn">
<if>
<not>
<http url="${node.jslint.url}"/>
</not>
<then>
<echo level="info">Attempting to start NodeJS app at: ${src}</echo>
<exec executable="node" spawn="true">
<arg value="${builddir}/lib/jslint/jslint-node.js"/>
<arg value="${src}"/>
</exec>
<!-- Don't fail if node doesn't exist, fails to start, etc.
We will fallback to the slow Rhino engine later. -->
</then>
</if>
<!-- Don't try to start again: -->
<!-- Don't try to start again. -->
<property name="node.spawn" value="true"/>
</target>

Expand Down

0 comments on commit 069d3e0

Please sign in to comment.