Skip to content

Commit 70916d8

Browse files
author
Federico Fissore
committed
build.xml: added "start" target. See #3895
1 parent 69f3f9f commit 70916d8

File tree

1 file changed

+17
-12
lines changed

1 file changed

+17
-12
lines changed

build/build.xml

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,14 @@
8787
<antcall target="generate-hourly-build-txt"/>
8888
</target>
8989

90-
<target name="run" description="Run Arduino.">
90+
<target name="run" description="Packs and runs Arduino">
9191
<antcall target="${platform}-run" />
9292
</target>
9393

94+
<target name="start" description="Starts Arduino">
95+
<antcall target="${platform}-start" />
96+
</target>
97+
9498
<target name="dist" depends="revision-check"
9599
description="Build Arduino for distribution.">
96100
<input message="Enter version number:"
@@ -421,14 +425,10 @@
421425
</chmod>
422426
</target>
423427

424-
<target name="macosx-run" depends="build" description="Run Mac OS X version">
425-
<exec executable="macosx/work/Arduino.app/Contents/MacOS/Arduino" spawn="false" failonerror="true"/>
426-
</target>
428+
<target name="macosx-run" depends="build,start"/>
427429

428-
<!-- FIXME -->
429-
<target name="macosx-debug">
430-
<antcall target="macosx-run"/>
431-
<echo>'ant macosx-debug' is deprecated. Please use 'ant run' instead</echo>
430+
<target name="macosx-start">
431+
<exec executable="macosx/work/Arduino.app/Contents/MacOS/Arduino" spawn="false" failonerror="true"/>
432432
</target>
433433

434434
<!-- - - - - - - - - - - - - - - - -->
@@ -639,11 +639,15 @@
639639
</exec>
640640
</target>
641641

642-
<target name="linux32-run" depends="build" description="Run Linux (32-bit) version">
642+
<target name="linux32-run" depends="build,start"/>
643+
644+
<target name="linux64-run" depends="build,start"/>
645+
646+
<target name="linux32-start">
643647
<exec executable="./linux/work/arduino" spawn="false" failonerror="true"/>
644648
</target>
645649

646-
<target name="linux64-run" depends="build" description="Run Linux (64-bit) version">
650+
<target name="linux64-start">
647651
<exec executable="./linux/work/arduino" spawn="false" failonerror="true"/>
648652
</target>
649653

@@ -892,8 +896,9 @@
892896
<antcall target="package-library-index-json-bundle"/>
893897
</target>
894898

895-
<target name="windows-run" depends="build"
896-
description="Run windows version">
899+
<target name="windows-run" depends="build,start"/>
900+
901+
<target name="windows-start">
897902
<exec executable="windows/work/arduino.exe" dir="windows/work" spawn="false" failonerror="true"/>
898903
</target>
899904

0 commit comments

Comments
 (0)