|
395 | 395 | </target>
|
396 | 396 |
|
397 | 397 | <target name="macosx-run-common">
|
398 |
| - <exec executable="open" dir="macosx/work"> |
| 398 | + <exec executable="open" dir="macosx/work" failonerror="true"> |
399 | 399 | <arg value="Arduino.app"/>
|
400 | 400 | </exec>
|
401 | 401 | </target>
|
402 | 402 |
|
403 | 403 | <target name="macosx-debug-common">
|
404 |
| - <exec executable="open" dir="macosx/work" spawn="false"> |
| 404 | + <exec executable="open" dir="macosx/work" spawn="false" failonerror="true"> |
405 | 405 | <arg value="Arduino.app"/>
|
406 | 406 | </exec>
|
407 | 407 | </target>
|
|
417 | 417 | <delete dir="macosx/work/Arduino.app" />
|
418 | 418 |
|
419 | 419 | <!-- Unzip unsigned app into working dir -->
|
420 |
| - <exec executable="unzip" dir="macosx/work"> |
| 420 | + <exec executable="unzip" dir="macosx/work" failonerror="true"> |
421 | 421 | <arg line="../arduino-${version}-${platform}.zip" />
|
422 | 422 | </exec>
|
423 | 423 |
|
424 | 424 | <!-- Unlock keychain file -->
|
425 |
| - <exec executable="security" dir="macosx/work"> |
| 425 | + <exec executable="security" dir="macosx/work" failonerror="true"> |
426 | 426 | <arg line="unlock-keychain -p "${macosx-sign-keychain-pass}" "${macosx-sign-keychain}"" />
|
427 | 427 | </exec>
|
428 | 428 |
|
429 | 429 | <!-- Sign app -->
|
430 |
| - <exec executable="codesign" dir="macosx/work"> |
| 430 | + <exec executable="codesign" dir="macosx/work" failonerror="true"> |
431 | 431 | <arg line="--keychain "${macosx-sign-keychain}" --force -s "${macosx-sign-id}" --deep -v Arduino.app/" />
|
432 | 432 | </exec>
|
433 | 433 |
|
|
439 | 439 | <delete file="macosx/arduino-${version}-${platform}.zip" />
|
440 | 440 |
|
441 | 441 | <!-- Create signed zip file -->
|
442 |
| - <exec executable="zip" dir="macosx/work"> |
| 442 | + <exec executable="zip" dir="macosx/work" failonerror="true"> |
443 | 443 | <arg line="-q -r ../arduino-${version}-${platform}-signed.zip ." />
|
444 | 444 | </exec>
|
445 | 445 |
|
|
470 | 470 | </target>
|
471 | 471 |
|
472 | 472 | <target name="macosx-dist-common">
|
473 |
| - <exec executable="zip" dir="macosx/work"> |
| 473 | + <exec executable="zip" dir="macosx/work" failonerror="true"> |
474 | 474 | <arg line="-q -r ../arduino-${version}-${platform}.zip ." />
|
475 | 475 | </exec>
|
476 | 476 |
|
|
629 | 629 | </target>
|
630 | 630 |
|
631 | 631 | <target name="linux32-run" depends="linux32-build" description="Run Linux (32-bit) version">
|
632 |
| - <exec executable="./linux/work/arduino" spawn="false"/> |
| 632 | + <exec executable="./linux/work/arduino" spawn="false" failonerror="true"/> |
633 | 633 | </target>
|
634 | 634 |
|
635 | 635 | <target name="linux64-run" depends="linux64-build" description="Run Linux (64-bit) version">
|
636 |
| - <exec executable="./linux/work/arduino" spawn="false"/> |
| 636 | + <exec executable="./linux/work/arduino" spawn="false" failonerror="true"/> |
637 | 637 | </target>
|
638 | 638 |
|
639 | 639 | <!-- Set '${dist_file}_available' property if toolchain dist_file is downloaded -->
|
|
665 | 665 | <!-- Ensure that the tool is downloaded and test checksums, if everything's ok unzip it on the tools folder -->
|
666 | 666 | <target name="untar" depends="untar-unzip-checksum" unless="${archive_file}_installed">
|
667 | 667 | <echo>Untarring ${archive_file} into folder ${dest_folder}</echo>
|
668 |
| - <exec executable="tar"> |
| 668 | + <exec executable="tar" failonerror="true"> |
669 | 669 | <arg value="xf"/>
|
670 | 670 | <arg value="${archive_file}"/>
|
671 | 671 | <arg value="--directory=${dest_folder}"/>
|
|
675 | 675 | <target name="unzip" depends="untar-unzip-checksum" unless="${archive_file}_installed">
|
676 | 676 | <echo>Unzipping ${archive_file} into folder ${dest_folder}</echo>
|
677 | 677 | <mkdir dir="${dest_folder}" />
|
678 |
| - <exec executable="unzip"> |
| 678 | + <exec executable="unzip" failonerror="true"> |
679 | 679 | <arg value="-q" />
|
680 | 680 | <arg value="-n" />
|
681 | 681 | <arg value="-d" />
|
|
719 | 719 | -->
|
720 | 720 | <move file="linux/work" tofile="linux/arduino-${version}" />
|
721 | 721 |
|
722 |
| - <exec executable="tar" dir="linux"> |
| 722 | + <exec executable="tar" dir="linux" failonerror="true"> |
723 | 723 | <arg value="--lzma"/>
|
724 | 724 | <arg value="-c"/>
|
725 | 725 | <arg value="-f"/>
|
|
873 | 873 |
|
874 | 874 | <target name="windows-run" depends="windows-build"
|
875 | 875 | description="Run windows version">
|
876 |
| - <exec executable="windows/work/arduino.exe" |
877 |
| - dir="windows/work" spawn="true"/> |
| 876 | + <exec executable="windows/work/arduino.exe" dir="windows/work" spawn="true" failonerror="true"/> |
878 | 877 | </target>
|
879 | 878 |
|
880 | 879 | <target name="windows-dist" depends="windows-build"
|
|
976 | 975 | </target>
|
977 | 976 |
|
978 | 977 | <target name="macosx-fix-bundled-toolchain-missing-symlinks" if="macosx">
|
979 |
| - <exec executable="mv"> |
| 978 | + <exec executable="mv" failonerror="true"> |
980 | 979 | <arg value="${staging_folder}/work/${staging_hardware_folder}/tmp/avrdude/avrdude-6.0.1/lib/libusb.dylib"/>
|
981 | 980 | <arg value="${staging_folder}/work/${staging_hardware_folder}/tools/avr/lib/"/>
|
982 | 981 | </exec>
|
983 |
| - <exec executable="mv"> |
| 982 | + <exec executable="mv" failonerror="true"> |
984 | 983 | <arg value="${staging_folder}/work/${staging_hardware_folder}/tmp/avrdude/avrdude-6.0.1/lib/libusb-1.0.dylib"/>
|
985 | 984 | <arg value="${staging_folder}/work/${staging_hardware_folder}/tools/avr/lib/"/>
|
986 | 985 | </exec>
|
|
0 commit comments