[go: up one dir, main page]

Menu

[r2100]: / trunk / build.xml  Maximize  Restore  History

Download this file

78 lines (70 with data), 3.2 kB

 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
66
67
68
69
70
71
72
73
74
75
76
77
<?xml version="1.0"?>
<project name="Simple" default="build" basedir=".">
<target name="-layout">
<property name="root.path" value="."/>
<property name="lib.path" value="libs"/>
<property name="dist.path" value="dist"/>
<property name="style.path" value="styles"/>
<property name="track.path" value="track"/>
<property name="tutorial.path" value="tutorial"/>
<property name="java.lib.path" value="download/stream/lib"/>
<property file="ssh.properties"/>
</target>
<target name="-setup" depends="-layout">
<taskdef name="svn" classname="org.tigris.subversion.svnant.SvnTask">
<classpath>
<fileset dir="${java.lib.path}">
<include name="**/*.jar"/>
</fileset>
</classpath>
</taskdef>
</target>
<target name="-switch" depends="-layout">
<property file="${dist.path}/${dist.name}.properties"/>
<copy todir="${root.path}">
<fileset dir="${dist.path}">
<include name="**/*.php"/>
<include name="**/*.inc"/>
<exclude name="**/*.properties"/>
</fileset>
<filterset>
<filter token="home.path" value="${home.path}"/>
<filter token="database.host" value="${database.host}"/>
<filter token="database.login" value="${database.login}"/>
<filter token="database.password" value="${database.password}"/>
<filter token="database.name" value="${database.name}"/>
</filterset>
</copy>
</target>
<target name="-home" depends="-layout">
<property name="dist.name" value="home"/>
<antcall target="-switch"/>
</target>
<target name="-sourceforge" depends="-layout">
<property name="dist.name" value="sourceforge"/>
<antcall target="-switch"/>
</target>
<target name="deploy" depends="-setup" description="Deploy site to sourceforge">
<antcall target="-sourceforge"/>
<tar tarfile="deploy.tar">
<tarfileset dir="${root.path}">
<include name="**/*.php"/>
<include name="**/*.inc"/>
<include name="${image.path}/**/*"/>
<include name="${style.path}/**/*"/>
<include name="${tutorial.path}/**/*"/>
<include name="${track.path}/**/*"/>
<include name="${lib.path}/**/*"/>
</tarfileset>
</tar>
<gzip zipfile="deploy.tar.gz" src="deploy.tar"/>
<scp file="deploy.tar.gz" todir="${ssh.login}:${ssh.password}@simple.sourceforge.net:${ssh.home}" trust="yes"/>
<sshexec host="simple.sourceforge.net" username="${ssh.login}" password="${ssh.password}" command="tar -xzvf ${ssh.home}/deploy.tar.gz -C ${ssh.home}" trust="yes"/>
<delete file="deploy.tar.gz"/>
<delete file="deploy.tar"/>
<antcall target="-home"/>
<svn javahl="false">
<commit message="Update site" dir="${root.path}"/>
</svn>
</target>
</project>