This repository has been archived by the owner on Jan 13, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathautomated.xml
65 lines (46 loc) · 2.55 KB
/
automated.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<project name="Facebook IE plugin" basedir="." default="automate">
<property file="build.properties" />
<property file="build-number.txt" />
<property name="svnant.lib.dir" value="${basedir}\External\svnant-1.0.0" />
<path id="svn.classpath">
<pathelement location="${svnant.lib.dir}\svnant.jar" />
<pathelement location="${svnant.lib.dir}\svnClientAdapter.jar"/>
<pathelement location="${svnant.lib.dir}\svnjavahl.jar"/>
</path>
<taskdef name="svn" classname="org.tigris.subversion.svnant.SvnTask" classpathref="svn.classpath"/>
<target name="update" description="Update from SVN repository">
<svn>
<update dir="${basedir}" />
</svn>
</target>
<target name="publish" depends="" description="Publish to the build share and Web">
<copy file="Common\Install\msi\FBIE-MSI\Release\fbie-msi.msi" tofile="${publish.dir}/${label.prefix}.${build.number}/MSI/setup ${label.prefix}.${build.number}.msi" />
<mkdir dir="${publish.dir}/${label.prefix}.${build.number}" />
<copy todir="${web.publish.dir}">
<fileset dir="${publish.dir}/${label.prefix}.${build.number}/MSI/" />
</copy>
</target>
<target name="publish-exe" depends="" description="Publish to the build share and Web">
<copy file="Common/Install/ISS/Output/setup.exe" tofile="${publish.dir}/${label.prefix}.${build.number}/MSI/setup ${label.prefix}.${build.number}.exe" />
<mkdir dir="${publish.dir}/${label.prefix}.${build.number}" />
<copy todir="${web.publish.dir}">
<fileset dir="${publish.dir}/${label.prefix}.${build.number}/MSI/" />
</copy>
</target>
<target name="add_update" depends="" description="Add update to updates directory">
<copy file="Common\Install\msi\FBIE-MSI\Release\fbie-msi.msi" tofile="${updates.dir}/setup.${label.prefix}.${build.number}.msi" />
</target>
<target name="build" description="Call build.xml, target build_installer" >
<ant antfile="build.xml" target="build_installer" inheritAll="false"
inheritRefs="false">
</ant>
</target>
<target name="automate" depends="clean,update,build,publish,add_update" description="Default target: clean,update,build,publish" />
<target name="clean" description="Delete all project directories">
<delete dir="Cert"/>
<delete dir="Common"/>
<delete dir="Docs"/>
<delete dir="Research"/>
<delete dir="Sources"/>
</target>
</project>