Author: solomax
Date: Thu Jul 17 11:24:49 2014
New Revision: 1611328
URL: http://svn.apache.org/r1611328
Log:
[OPENMEETINGS-1044] should be compilable on windows
Modified:
openmeetings/trunk/singlewebapp/openmeetings-flash/openlaszlo.xml
Modified: openmeetings/trunk/singlewebapp/openmeetings-flash/openlaszlo.xml
URL:
http://svn.apache.org/viewvc/openmeetings/trunk/singlewebapp/openmeetings-flash/openlaszlo.xml?rev=1611328&r1=1611327&r2=1611328&view=diff
==============================================================================
--- openmeetings/trunk/singlewebapp/openmeetings-flash/openlaszlo.xml (original)
+++ openmeetings/trunk/singlewebapp/openmeetings-flash/openlaszlo.xml Thu Jul
17 11:24:49 2014
@@ -85,8 +85,24 @@
</antcall>
</target>
- <target name="-compile.flex" description="compile flash application">
- <exec dir="${flex.src.dir}"
executable="${laszlo46.home}/WEB-INF/flexsdk/4.6.0/bin/mxmlc">
+ <condition property="isWindows">
+ <os family="windows" />
+ </condition>
+
+ <condition property="isUnix">
+ <os family="unix" />
+ </condition>
+
+ <target name="if_windows" if="isWindows">
+ <property name="mxmlc_bin" value="mxmlc.exe" />
+ </target>
+
+ <target name="if_unix" if="isUnix">
+ <property name="mxmlc_bin" value="mxmlc" />
+ </target>
+
+ <target name="-compile.flex" description="compile flash application"
depends="if_windows, if_unix">
+ <exec dir="${flex.src.dir}"
executable="${laszlo46.home}/WEB-INF/flexsdk/4.6.0/bin/${mxmlc_bin}">
<arg value="main.mxml"/>
<arg line="-output ${out.dir.swf}/main.swf"/>
<env key="PLAYERGLOBAL_HOME"
value="${laszlo46.home}/WEB-INF/flexsdk/4.6.0/frameworks/libs/player"/>