Added failure when doc creation fails, and added path to the node that the plugin has installed, this means you don't need node installed on the system to use gitbook

This commit is contained in:
Paul Gallagher 2016-04-25 11:41:16 +01:00 committed by Martyn Taylor
parent 00740b141a
commit f9538fafd6
1 changed files with 4 additions and 2 deletions

View File

@ -174,14 +174,16 @@
<!-- lets generate the gitbook -->
<mkdir dir="${webapp-outdir-user-manual}" />
<echo>executing ${gitbook.cmd}</echo>
<exec executable="${gitbook.cmd}">
<exec executable="${gitbook.cmd}" failonerror="true">
<env key="PATH" path="${basedir}/node"/>
<arg value="build" />
<arg value="${basedir}/../docs/user-manual/en" />
<arg value="${webapp-outdir-user-manual}" />
</exec>
<mkdir dir="${webapp-outdir-hacking-guide}" />
<echo>executing ${gitbook.cmd}</echo>
<exec executable="${gitbook.cmd}">
<exec executable="${gitbook.cmd}" failonerror="true">
<env key="PATH" path="${basedir}/node"/>
<arg value="build" />
<arg value="${basedir}/../docs/hacking-guide/en" />
<arg value="${webapp-outdir-hacking-guide}" />