Subversion Repositories eFlore/Applications.del

Rev

Rev 212 | Rev 393 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 aurelien 1
<project name="del" xmlns:artifact="urn:maven-artifact-ant" basedir=".">
2
 
2 benjamin 3
	<target name="init">
4
		<property file="local.properties" />
5
		<property name="server-url" value="${server-url}" />
6
		<property name="server-login" value="${server-login}" />
7
		<property name="server-password" value="${server-password}" />
8
		<property name="server-dir" value="${server-dir}" />
9
		<property name="gwt-path" value="${gwt-path}" />
10
	</target>
11
 
12
	<target name="gwt-compile" depends="init">
1 aurelien 13
		<java classname="com.google.gwt.dev.Compiler" fork="true">
14
			<arg line="-logLevel INFO" />
15
			<arg line="-style OBF" />
16
			<arg value="org.tela_botanica.del.Del" />
17
			<classpath>
18
				<path>
19
					<pathelement location="${gwt-path}/gwt-user.jar" />
20
					<pathelement location="${gwt-path}/gwt-dev.jar" />
21
					<pathelement location="${gwt-path}/validation-api-1.0.0.GA-sources.jar" />
22
					<pathelement location="${gwt-path}/validation-api-1.0.0.GA.jar" />
23
					<pathelement location="src" />
24
					<fileset dir="war/WEB-INF/lib">
25
						<include name="**/*.jar" />
26
						<include name="**/*.xml" />
27
					</fileset>
28
				</path>
29
			</classpath>
30
		</java>
31
	</target>
32
 
30 benjamin 33
	<target name="generate-vocabulary" depends="init">
34
 
157 benjamin 35
		<java classname="com.google.gwt.i18n.tools.I18NSync" fork="true">
30 benjamin 36
			<arg value="org.tela_botanica.del.client.i18n.Vocabulary" />
37
			<classpath>
38
				<path>
39
					<pathelement location="${gwt-path}/gwt-user.jar" />
40
					<pathelement location="${gwt-path}/gwt-dev.jar" />
41
					<pathelement location="src" />
42
				</path>
43
			</classpath>
44
		</java>
45
	</target>
46
 
203 benjamin 47
	<target name="build-and-deploy-test" depends="gwt-compile">
193 benjamin 48
 
6 benjamin 49
		<ftp action="del" server="${server-url}" remotedir="${server-dir}" userid="${server-login}" password="${server-password}">
193 benjamin 50
			<fileset dir="war">
6 benjamin 51
				<include name="**" />
52
			</fileset>
53
		</ftp>
2 benjamin 54
		<ftp server="${server-url}" remotedir="${server-dir}" userid="${server-login}" password="${server-password}">
193 benjamin 55
			<fileset dir="war" excludes="*.svn">
56
				<include name="del.css" />
57
				<include name="del.html" />
266 aurelien 58
				<include name="proxy.php" />
193 benjamin 59
			</fileset>
1 aurelien 60
		</ftp>
193 benjamin 61
		<ftp server="${server-url}" remotedir="${server-dir}/del" userid="${server-login}" password="${server-password}">
62
			<fileset dir="war/del" excludes="*.svn" />
63
		</ftp>
64
		<ftp server="${server-url}" remotedir="${server-dir}/img" userid="${server-login}" password="${server-password}">
65
			<fileset dir="war/img" excludes="*.svn" />
66
		</ftp>
67
		<ftp server="${server-url}" remotedir="${server-dir}/WEB-INF" userid="${server-login}" password="${server-password}">
68
			<fileset dir="war/WEB-INF" excludes="*.svn">
196 benjamin 69
				<exclude name="lib/*.jar" />
193 benjamin 70
			</fileset>
71
		</ftp>
72
 
73
		<!--
74
		<scp password="${server-password}" todir="${server-login}@${server-url}:${server-dir}" trust="true" verbose="true">
75
					<fileset dir="war" excludes="*.svn" />
76
				</scp>
77
				-->
1 aurelien 78
	</target>
79
 
157 benjamin 80
	<target name="build-and-deploy-local" depends="gwt-compile">
81
		<copy todir="${local-deploy-path}">
82
			<fileset dir="war" excludes="*.svn" />
83
		</copy>
84
	</target>
85
 
1 aurelien 86
</project>