1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-12-02 13:24:12 +01:00

build.xml: added "start" target. See #3895

This commit is contained in:
Federico Fissore 2015-09-30 09:55:18 +02:00
parent 69f3f9f807
commit 70916d8942

View File

@ -87,10 +87,14 @@
<antcall target="generate-hourly-build-txt"/> <antcall target="generate-hourly-build-txt"/>
</target> </target>
<target name="run" description="Run Arduino."> <target name="run" description="Packs and runs Arduino">
<antcall target="${platform}-run" /> <antcall target="${platform}-run" />
</target> </target>
<target name="start" description="Starts Arduino">
<antcall target="${platform}-start" />
</target>
<target name="dist" depends="revision-check" <target name="dist" depends="revision-check"
description="Build Arduino for distribution."> description="Build Arduino for distribution.">
<input message="Enter version number:" <input message="Enter version number:"
@ -421,14 +425,10 @@
</chmod> </chmod>
</target> </target>
<target name="macosx-run" depends="build" description="Run Mac OS X version"> <target name="macosx-run" depends="build,start"/>
<exec executable="macosx/work/Arduino.app/Contents/MacOS/Arduino" spawn="false" failonerror="true"/>
</target>
<!-- FIXME --> <target name="macosx-start">
<target name="macosx-debug"> <exec executable="macosx/work/Arduino.app/Contents/MacOS/Arduino" spawn="false" failonerror="true"/>
<antcall target="macosx-run"/>
<echo>'ant macosx-debug' is deprecated. Please use 'ant run' instead</echo>
</target> </target>
<!-- - - - - - - - - - - - - - - - --> <!-- - - - - - - - - - - - - - - - -->
@ -639,11 +639,15 @@
</exec> </exec>
</target> </target>
<target name="linux32-run" depends="build" description="Run Linux (32-bit) version"> <target name="linux32-run" depends="build,start"/>
<target name="linux64-run" depends="build,start"/>
<target name="linux32-start">
<exec executable="./linux/work/arduino" spawn="false" failonerror="true"/> <exec executable="./linux/work/arduino" spawn="false" failonerror="true"/>
</target> </target>
<target name="linux64-run" depends="build" description="Run Linux (64-bit) version"> <target name="linux64-start">
<exec executable="./linux/work/arduino" spawn="false" failonerror="true"/> <exec executable="./linux/work/arduino" spawn="false" failonerror="true"/>
</target> </target>
@ -892,8 +896,9 @@
<antcall target="package-library-index-json-bundle"/> <antcall target="package-library-index-json-bundle"/>
</target> </target>
<target name="windows-run" depends="build" <target name="windows-run" depends="build,start"/>
description="Run windows version">
<target name="windows-start">
<exec executable="windows/work/arduino.exe" dir="windows/work" spawn="false" failonerror="true"/> <exec executable="windows/work/arduino.exe" dir="windows/work" spawn="false" failonerror="true"/>
</target> </target>