Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 54728
Collapse All | Expand All

(-)build.xml.orig (-16 / +31 lines)
Lines 232-256 Link Here
232
	  	<chmod perm="755" dir="${destination.temp.folder}/${full.name}/os/${os}" includes="**/*.so*" />
232
	  	<chmod perm="755" dir="${destination.temp.folder}/${full.name}/os/${os}" includes="**/*.so*" />
233
	</target>
233
	</target>
234
234
235
	<target name="swtdownload" depends="init">
235
	<target name="copyToLocation" depends="init">
236
		<delete dir="${temp.folder}"/>
236
		<delete dir="${arch.dependend}"/>
237
		<mkdir dir="${temp.folder}/swtdownload"/>
237
		<mkdir dir="${arch.dependend}"/>
238
		<delete dir="${arch.independed}"/>
239
		<mkdir dir="${arch.independend}"/>
240
		<delete dir="${docs}"/>
241
		<mkdir dir="${docs}"/>
238
		<antcall target="build.jars"/>
242
		<antcall target="build.jars"/>
239
		<copy file="${build.result.folder}/ws/${ws}/swt.jar" todir="${temp.folder}/swtdownload"/>
243
		<copy file="${build.result.folder}/ws/${ws}/swt.jar" todir="${arch.indep}"/>
240
		<copy file="${build.result.folder}/ws/${ws}/swt-pi.jar" todir="${temp.folder}/swtdownload"/>
244
		<copy file="${build.result.folder}/ws/${ws}/swt-pi.jar" todir="${arch.indep}"/>
241
		<copy file="${build.result.folder}/ws/${ws}/swt-mozilla.jar" todir="${temp.folder}/swtdownload"/>
245
		<copy file="${build.result.folder}/ws/${ws}/swt-mozilla.jar" todir="${arch.indep}"/>
242
		<antcall target="build.sources"/>
246
		<antcall target="copySourceToLocation" />
243
		<copy file="${build.result.folder}/ws/${ws}/swtsrc.zip" todir="${temp.folder}/swtdownload"/>
247
		<copy file="about.html" todir="${docs}"/>
244
		<copy file="${build.result.folder}/ws/${ws}/swt-pisrc.zip" todir="${temp.folder}/swtdownload"/>
248
		<copy file="cpl-v10.html" todir="${docs}"/>
245
		<copy file="${build.result.folder}/ws/${ws}/swt-mozillasrc.zip" todir="${temp.folder}/swtdownload"/>
249
		<copy file="lgpl-v21.txt" todir="${docs}"/>
246
		<copy file="about.html" todir="${temp.folder}/swtdownload"/>
250
		<copy file="mpl-v11.txt" todir="${docs}"/>
247
		<copy file="cpl-v10.html" todir="${temp.folder}/swtdownload"/>
251
		<copy todir="${arch.dependend}">
248
		<copy file="lgpl-v21.txt" todir="${temp.folder}/swtdownload"/>
249
		<copy file="mpl-v11.txt" todir="${temp.folder}/swtdownload"/>
250
		<copy todir="${temp.folder}/swtdownload">
251
			<fileset dir="os/${os}/${arch}" includes="*" excludes=""/>
252
			<fileset dir="os/${os}/${arch}" includes="*" excludes=""/>
252
		</copy>
253
		</copy>
253
		<chmod dir="${temp.folder}/swtdownload" perm="755" includes="**/lib*"/>
254
		<chmod dir="${arch.dependend}" perm="755" includes="**/lib*"/>
255
	</target>
256
	<target name="copySourceToLocation" if="copySource" depends="init" >
257
		<antcall target="build.sources"/>
258
		<copy file="${build.result.folder}/ws/${ws}/swtsrc.zip" todir="${arch.indep}"/>
259
		<copy file="${build.result.folder}/ws/${ws}/swt-pisrc.zip" todir="${arch.indep}"/>
260
		<copy file="${build.result.folder}/ws/${ws}/swt-mozillasrc.zip" todir="${arch.indep}"/>
261
	</target>
262
        <target name="swtdownload" depends="init" >
263
		<property name="copySource" value="true" />
264
	        <antcall target="copyToLocation" >
265
		        <param name="arch.dependend" value="${temp.folder}/swtdownload" />
266
                        <param name="arch.indep" value="${temp.folder}/swtdownload" />
267
	 		<param name="docs" value="${temp.folder}/swtdownload" />
268
    		</antcall>
254
		<exec dir="${temp.folder}/swtdownload" executable="zip">
269
		<exec dir="${temp.folder}/swtdownload" executable="zip">
255
			<arg line="-r -q -y ${destination}/swt-${buildid}-${os}-${ws}.zip ."/>
270
			<arg line="-r -q -y ${destination}/swt-${buildid}-${os}-${ws}.zip ."/>
256
		</exec>
271
		</exec>

Return to bug 54728