这是 Open laszlo 4.9 的有效 ant 构建脚本吗?我无法使用此文件构建它。
<project name="test" default="TestClient" basedir=".">
<property name="src" value="${basedir}/src"/>
<property name="webappDir" value="../webapp"/>
<property environment="env"/>
<property name="lzbin" value="${env.LPS_HOME}/WEB-INF/lps/server/bin"/>
<!-- use the correct compiler script based on platform -->
<condition property="lzc" value="${lzbin}/lzc">
<os family="unix"/>
</condition>
<condition property="lzc" value="${lzbin}/lzc.bat">
<os family="windows"/>
</condition>
<property name="TestClient.lzx" value="${basedir}/src/TestClient.lzx"/>
<property name="TestClient.swf" value="${basedir}/src/TestClient.swf"/>
<property name="TestClient.lzx.swf" value="${TestClient.lzx}.swf"/>
<property name="modules" value="${basedir}/src/modules"/>
<target name="TestClient" description="compile TestClient.lzx">
<echo message="${lzc}"/>
<exec executable="${lzc}" failonerror="true">
<arg value="${TestClient.lzx}"/>
<arg value='"--runtime=swf10"'/>
</exec>
<copy file="${TestClient.lzx.swf}" todir="${webappDir}"/>
<delete file="${TestClient.swf}"/>
<delete file="${TestClient.lzx.swf}"/>
</target>
<target name="Debug" description="update files on webapp folder from tdc/src">
<unzip src="${basedir}/../openlaszlo-4.9.0-servlet.war" dest="${webappDir}">
<patternset>
<exclude name="**/WEB-INF/web.xml"/>
<exclude name="**/META-INF/MANIFEST.MF"/>
<exclude name="**/my-apps/copy-of-hello.lzx"/>
</patternset>
</unzip>
<copy file="${TestClient.lzx}" todir="${webappDir}" overwrite="false"/>
<copy file="${basedir}/../etc/proxy.properties" todir="${webappDir}/WEB-INF/classes" overwrite="false"/>
<copy file="${basedir}/../webLZDebug.xml" tofile="${webappDir}/WEB-INF/web.xml" overwrite="true" />
<copy file="${webappDir}/tutorial.html" tofile="${webappDir}/debug.html" overwrite="true" />
<replace file="${webappDir}/debug.html">
<replacetoken><![CDATA[lzEmbed({url: 'TestClient.lzx.swf?lzt=swf&folder=calif&servletUrl=http://127.0.0.1:12345/servlet/fixed&eliminatorResource=resources/eliminator.swf&__lzhistconn='+top.connuid+'&__lzhisturl=' + escape('includes/h.html?h='), bgcolor: '#6691B4"', width: '100%', height: '100%'});]]></replacetoken>
<replacevalue><![CDATA[lzEmbed({url: 'TestClient.lzx?debug=true&lzt=swf&folder=calif&servletUrl=http://127.0.0.1:12345/servlet/fixed&eliminatorResource=resources/eliminator.swf&__lzhistconn='+top.connuid+'&__lzhisturl=' + escape('includes/h.html?h='), bgcolor: '#6691B4"', width: '100%', height: '100%'});]]></replacevalue>
</replace>
<copy todir="${webappDir}/modules" overwrite="true">
<fileset dir="${ctbmodules}"></fileset>
</copy>
</target>
<target name="help" description="describes usage">
<echo>
</echo>
</target>
</project>
我已经看过这个 stackoverflow 帖子。
如何使用 Apache Ant 构建 OpenLaszlo DHTML 应用程序 ,我将准备这样的脚本
但是,我只是想确认早期的构建脚本是否有任何问题。