Skip to content

Commit 40cd971

Browse files
author
Federico Fissore
committed
Windows: JVM is packaged with "build" (was previously packed later, with "dist")
1 parent 7c5c174 commit 40cd971

File tree

1 file changed

+14
-15
lines changed

1 file changed

+14
-15
lines changed

build/build.xml

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -850,6 +850,20 @@
850850
<chmod perm="755">
851851
<fileset dir="windows/work" includes="**/*.html, **/*.dll, **/*.exe" />
852852
</chmod>
853+
854+
<loadproperties srcfile="${WINDOWS_BUNDLED_JVM}/release" prefix="windows"/>
855+
856+
<fail message="It looks like ${WINDOWS_BUNDLED_JVM} does not contain a Windows JVM">
857+
<condition>
858+
<not>
859+
<equals arg1="${windows.OS_NAME}" arg2="&quot;Windows&quot;"/>
860+
</not>
861+
</condition>
862+
</fail>
863+
864+
<copy todir="${staging_folder}/work/java" includeemptydirs="true" preservelastmodified="true" overwrite="true" failonerror="true">
865+
<fileset dir="${WINDOWS_BUNDLED_JVM}" includes="*/**"/>
866+
</copy>
853867
</target>
854868

855869
<target name="windows-build-avr-toolchain">
@@ -870,21 +884,6 @@
870884
</target>
871885

872886
<target name="windows-dist" depends="build" description="Create .zip files of windows version">
873-
874-
<loadproperties srcfile="${WINDOWS_BUNDLED_JVM}/release" prefix="windows"/>
875-
876-
<fail message="It looks like ${WINDOWS_BUNDLED_JVM} does not contain a Windows JVM">
877-
<condition>
878-
<not>
879-
<equals arg1="${windows.OS_NAME}" arg2="&quot;Windows&quot;"/>
880-
</not>
881-
</condition>
882-
</fail>
883-
884-
<copy todir="${staging_folder}/work/java" includeemptydirs="true" preservelastmodified="true" overwrite="true" failonerror="true">
885-
<fileset dir="${WINDOWS_BUNDLED_JVM}" includes="*/**"/>
886-
</copy>
887-
888887
<zip destfile="windows/arduino-${version}-${platform}.zip" level="9">
889888
<zipfileset dir="windows/work" prefix="arduino-${version}"/>
890889
</zip>

0 commit comments

Comments
 (0)