| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one |
| or more contributor license agreements. See the NOTICE file |
| distributed with this work for additional information |
| regarding copyright ownership. The ASF licenses this file |
| to you under the Apache License, Version 2.0 (the |
| "License"); you may not use this file except in compliance |
| with the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, |
| software distributed under the License is distributed on an |
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| KIND, either express or implied. See the License for the |
| specific language governing permissions and limitations |
| under the License. |
| --> |
| <!DOCTYPE project> |
| <project name="openmeetings" basedir="./" default="client.only" |
| xmlns="antlib:org.apache.tools.ant" |
| xmlns:rat="antlib:org.apache.rat.anttasks" |
| xmlns:ivy="antlib:org.apache.ivy.ant" |
| xmlns:artifact="antlib:org.apache.maven.artifact.ant" |
| > |
| <property name="laszlo46.home" value="${openlaszlo}/openlaszlo46" /> |
| <!-- LPS Properties --> |
| <property name="out.dir.swf" value="${dist.webapps.dir}/public" /> |
| <property name="flex.src.dir" value="${webcontent.base.dir}/flex" /> |
| <property name="laszlo.as3.src.dir" value="${webcontent.base.dir}/swf10" /> |
| <path id="laszlo46.lib"> |
| <fileset dir="${laszlo46.home}/WEB-INF/lib" includes="*.jar" /> |
| </path> |
| |
| <target name="client.only" depends="compile.flex, compile.laszlo.networktesting" unless="client-already-built"> |
| <property name="client-already-built" value="true"/> |
| </target> |
| |
| <target name="client.debug.only" depends="compile.flex.debug,compile.laszlo.networktesting.debug" /> |
| |
| <target name="-compile.flash" description="compile flash application"> |
| <java classname="org.openlaszlo.compiler.Main" fork="true" newenvironment="true" failonerror="true" dir="${flash.src.dir}" classpathref="${flash.classpath.ref}"> |
| <jvmarg value="-DLPS_HOME=${flash.lps.home}" /> |
| <jvmarg value="-Dlzdebug=false" /> |
| <jvmarg value="-Dlzproxied=${laszlo.proxied}" /> |
| <jvmarg value="-Xms512M" /> |
| <jvmarg value="-Xmx512M" /> |
| <arg line="--runtime=${flash.runtime} ${flash.debug} --dir "${out.dir.swf}" --onerror warn ${flash.main.file} -o ${flash.out.file}" /> |
| </java> |
| </target> |
| |
| <target name="compile.laszlo.networktesting" depends="compile.laszlo.networktesting.debug"> |
| <antcall target="-compile.flash" inheritAll="true" inheritRefs="true"> |
| <param name="flash.classpath.ref" value="laszlo46.lib" /> |
| <param name="flash.src.dir" value="${laszlo.as3.src.dir}/networkTesting" /> |
| <param name="flash.lps.home" value="${laszlo46.home}" /> |
| <param name="flash.runtime" value="swf11" /> |
| <param name="flash.main.file" value="networktesting.lzx" /> |
| <param name="flash.out.file" value="networktesting.swf10.swf" /> |
| <param name="flash.debug" value="" /> |
| </antcall> |
| </target> |
| |
| <target name="compile.laszlo.networktesting.debug"> |
| <antcall target="-compile.flash" inheritAll="true" inheritRefs="true"> |
| <param name="flash.classpath.ref" value="laszlo46.lib" /> |
| <param name="flash.src.dir" value="${laszlo.as3.src.dir}/networkTesting" /> |
| <param name="flash.lps.home" value="${laszlo46.home}" /> |
| <param name="flash.runtime" value="swf11" /> |
| <param name="flash.main.file" value="networktesting.lzx" /> |
| <param name="flash.out.file" value="networktestingdebug.swf10.swf" /> |
| <param name="flash.debug" value="--debug" /> |
| </antcall> |
| </target> |
| |
| <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.bat" /> |
| </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.15.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.15.0/frameworks/libs/player"/> |
| </exec> |
| </target> |
| |
| <target name="compile.flex" depends="compile.flex.debug"> |
| <antcall target="-compile.flex" inheritAll="true" inheritRefs="true"/> |
| </target> |
| |
| <target name="compile.flex.debug"> |
| <!--antcall target="-compile.flex" inheritAll="true" inheritRefs="true"/--> |
| </target> |
| </project> |