Skip to content

Commit 7e15e9d

Browse files
author
Federico Fissore
committed
build.xml:
- Removed macosx-*common* targets. - Deprecated macosx-debug target. - Ensured all *-run targets don't spawn process and fail on error
1 parent c697542 commit 7e15e9d

File tree

1 file changed

+8
-25
lines changed

1 file changed

+8
-25
lines changed

build/build.xml

Lines changed: 8 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -350,15 +350,10 @@
350350
<fileset file="shared/revisions.txt" />
351351
</copy>
352352

353-
<antcall target="macosx-build-common"/>
354-
355-
</target>
356-
357-
<target name="macosx-build-common">
358353
<mkdir dir="${staging_folder}/work" />
359354
<mkdir dir="${staging_folder}/work/${staging_hardware_folder}" />
360355

361-
<antcall target="macosx-build-common-avr-toolchain" />
356+
<antcall target="macosx-build-avr-toolchain" />
362357

363358
<antcall target="package-library-index-json-bundle"/>
364359

@@ -380,7 +375,7 @@
380375
</target>
381376

382377
<!-- Unzip AVR tools -->
383-
<target name="macosx-build-common-avr-toolchain" unless="light_bundle">
378+
<target name="macosx-build-avr-toolchain" unless="light_bundle">
384379
<antcall target="avr-toolchain-bundle">
385380
<param name="unpack_target" value="untar"/>
386381
<param name="gcc_archive_file" value="avr-gcc-4.8.1-arduino5-i386-apple-darwin11.tar.bz2"/>
@@ -401,21 +396,13 @@
401396
</target>
402397

403398
<target name="macosx-run" depends="build" description="Run Mac OS X version">
404-
<antcall target="macosx-run-common"/>
405-
</target>
406-
407-
<target name="macosx-debug" depends="build" description="Run Mac OS X version">
408-
<antcall target="macosx-debug-common"/>
399+
<exec executable="macosx/work/Arduino.app/Contents/MacOS/Arduino" spawn="false" failonerror="true"/>
409400
</target>
410401

411-
<target name="macosx-run-common">
412-
<exec executable="open" dir="macosx/work" failonerror="true">
413-
<arg value="Arduino.app"/>
414-
</exec>
415-
</target>
416-
417-
<target name="macosx-debug-common">
418-
<exec executable="macosx/work/Arduino.app/Contents/MacOS/Arduino" spawn="false"/>
402+
<!-- FIXME -->
403+
<target name="macosx-debug">
404+
<antcall target="macosx-run"/>
405+
<echo>'ant macosx-debug' is deprecated. Please use 'ant run' instead</echo>
419406
</target>
420407

421408
<!-- - - - - - - - - - - - - - - - -->
@@ -474,10 +461,6 @@
474461
<!-- Build distribution file for MacOSX. -->
475462
<!-- - - - - - - - - - - - - - - - - - - -->
476463
<target name="macosx-dist" if="macosx" depends="build" description="Create a downloadable .zip for the Mac OS X version">
477-
<antcall target="macosx-dist-common"/>
478-
</target>
479-
480-
<target name="macosx-dist-common">
481464
<exec executable="zip" dir="macosx/work" failonerror="true">
482465
<arg line="-q -r ../arduino-${version}-${platform}.zip ." />
483466
</exec>
@@ -836,7 +819,7 @@
836819

837820
<target name="windows-run" depends="build"
838821
description="Run windows version">
839-
<exec executable="windows/work/arduino.exe" dir="windows/work" failonerror="true"/>
822+
<exec executable="windows/work/arduino.exe" dir="windows/work" spawn="false" failonerror="true"/>
840823
</target>
841824

842825
<target name="windows-dist" depends="build" description="Create .zip files of windows version">

0 commit comments

Comments
 (0)