Subversion Repositories eFlore/Applications.del

Rev

Go to most recent revision | Details | 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" />
58
			</fileset>
1 aurelien 59
		</ftp>
193 benjamin 60
		<ftp server="${server-url}" remotedir="${server-dir}/del" userid="${server-login}" password="${server-password}">
61
			<fileset dir="war/del" excludes="*.svn" />
62
		</ftp>
63
		<ftp server="${server-url}" remotedir="${server-dir}/img" userid="${server-login}" password="${server-password}">
64
			<fileset dir="war/img" excludes="*.svn" />
65
		</ftp>
66
		<ftp server="${server-url}" remotedir="${server-dir}/WEB-INF" userid="${server-login}" password="${server-password}">
67
			<fileset dir="war/WEB-INF" excludes="*.svn">
196 benjamin 68
				<exclude name="lib/*.jar" />
193 benjamin 69
			</fileset>
70
		</ftp>
71
 
72
		<!--
73
		<scp password="${server-password}" todir="${server-login}@${server-url}:${server-dir}" trust="true" verbose="true">
74
					<fileset dir="war" excludes="*.svn" />
75
				</scp>
76
				-->
1 aurelien 77
	</target>
78
 
157 benjamin 79
	<target name="build-and-deploy-local" depends="gwt-compile">
80
		<copy todir="${local-deploy-path}">
81
			<fileset dir="war" excludes="*.svn" />
82
		</copy>
83
	</target>
84
 
1 aurelien 85
</project>