build.xml (180e3c91) build.xml (5148ee0d)
1<?xml version="1.0"?>
2<!--***********************************************************
3 *
4 * Licensed to the Apache Software Foundation (ASF) under one
5 * or more contributor license agreements. See the NOTICE file
6 * distributed with this work for additional information
7 * regarding copyright ownership. The ASF licenses this file
8 * to you under the Apache License, Version 2.0 (the

--- 119 unchanged lines hidden (view full) ---

128 <delete dir="testuno/bin" />
129 </target>
130
131 <target name="compile" depends="testcommon.compile,testgui.compile,testuno.compile" description="Compile source code">
132 </target>
133
134 <target name="dist" depends="clean,compile">
135 <tstamp/>
1<?xml version="1.0"?>
2<!--***********************************************************
3 *
4 * Licensed to the Apache Software Foundation (ASF) under one
5 * or more contributor license agreements. See the NOTICE file
6 * distributed with this work for additional information
7 * regarding copyright ownership. The ASF licenses this file
8 * to you under the Apache License, Version 2.0 (the

--- 119 unchanged lines hidden (view full) ---

128 <delete dir="testuno/bin" />
129 </target>
130
131 <target name="compile" depends="testcommon.compile,testgui.compile,testuno.compile" description="Compile source code">
132 </target>
133
134 <target name="dist" depends="clean,compile">
135 <tstamp/>
136 <zip destfile="${dist.dir}/${dist.name}_${DSTAMP}.zip" update="false">
137 <zipfileset dir="." includes="lib/**, testcommon/**,testgui/**,testuno/**,build.xml" prefix="aoo_test/"/>
138 <zipfileset dir="." includes="test,test.bat" filemode="751" prefix="aoo_test/"/>
139 </zip>
136 <zip destfile="${dist.dir}/${dist.name}_${DSTAMP}.zip" update="false">
137 <zipfileset dir="." includes="lib/**, testcommon/**,testgui/**,testuno/**,build.xml,run,run.bat" filemode="751" prefix="aoo_test/"/>
138 </zip>
140 </target>
141
142 <target name="test" depends="compile" description="start test">
139 </target>
140
141 <target name="test" depends="compile" description="start test">
143 <condition property="test.arg0" value="-Dopenoffice.home=${openoffice.home}">
142 <condition property="test.arg0" value="-Dopenoffice.home=${openoffice.home}">
144 <isset property="openoffice.home" />
145 </condition>
146 <pathconvert property="openoffice.pack" setonempty="false">
147 <path>
148 <fileset dir="${env.SRC_ROOT}/instsetoo_native/${env.INPATH}/OpenOffice/archive/install/en-US" includes="*.tar.gz,*.zip" erroronmissingdir="false"/>
149 </path>
150 </pathconvert>
151 <condition property="test.arg0" value="-Dopenoffice.pack=${openoffice.pack}">
152 <isset property="openoffice.pack" />
153 </condition>
154 <fail message="No OpenOffice available!" unless="test.arg0"/>
143 <isset property="openoffice.home" />
144 </condition>
145 <pathconvert property="openoffice.pack" setonempty="false">
146 <path>
147 <fileset dir="${env.SRC_ROOT}/instsetoo_native/${env.INPATH}/OpenOffice/archive/install/en-US" includes="*.tar.gz,*.zip" erroronmissingdir="false"/>
148 </path>
149 </pathconvert>
150 <condition property="test.arg0" value="-Dopenoffice.pack=${openoffice.pack}">
151 <isset property="openoffice.pack" />
152 </condition>
153 <fail message="No OpenOffice available!" unless="test.arg0"/>
155 <condition property="test.executable" value="./run.bat">
154 <condition property="test.executable" value="./run.bat">
156 <os family="windows" />
157 </condition>
155 <os family="windows" />
156 </condition>
158 <echo>${test.arg0}</echo>
159 <property name="test.executable" value="./run"/>
160 <exec executable="${test.executable}">
157 <property name="test.executable" value="./run"/>
158 <exec executable="${test.executable}">
161 <arg value="${test.arg0}"/>
162 <arg value="-tp"/>
163 <arg value="bvt"/>
164 </exec>
165 </target>
159 <arg value="${test.arg0}"/>
160 <arg value="-tp"/>
161 <arg value="bvt"/>
162 </exec>
163 </target>
166
167 <target name="upgrade">
168 <property name="upgrade.script" location="${java.io.tmpdir}/aoo_test_upgrade.xml"/>
169 <property name="upgrade.to" location="."/>
170 <copy file="build.xml" tofile="${upgrade.script}"/>
171 <condition property="ant.executable" value="ant.bat">
172 <os family="windows" />
173 </condition>
174 <property name="ant.executable" value="ant"/>
175 <exec executable="${ant.executable}" spawn="true">
176 <arg value="-Dupgrade.to=${upgrade.to}"/>
177 <arg value="-f"/>
178 <arg value="${upgrade.script}"/>
179 <arg value="upgrade.run"/>
180 </exec>
181 </target>
182
183 <target name="upgrade.run">
184 <property name="testpack.url" value="http://9.123.117.85/testpack/trunk/aoo_test.zip"/>
185 <property name="testack.temp" location="${java.io.tmpdir}/aoo_test.zip"/>
186 <get src="${testpack.url}" dest="${testack.temp}"/>
187 <delete dir="${upgrade.to}" failonerror="false"/>
188 <mkdir dir="${upgrade.to}"/>
189 <unzip src="${testack.temp}" dest="${upgrade.to}"/>
190 </target>
191</project>
164</project>