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
 
381 gduche 47
	<target name="build-and-deploy-test" depends="init">
193 benjamin 48
 
381 gduche 49
		<ftp action="del" server="${server-url}" remotedir="${server-dir}/client/" userid="${server-login}" password="${server-password}">
193 benjamin 50
			<fileset dir="war">
6 benjamin 51
				<include name="**" />
52
			</fileset>
53
		</ftp>
381 gduche 54
		<ftp server="${server-url}" remotedir="${server-dir}/client/" 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>
381 gduche 61
		<ftp server="${server-url}" remotedir="${server-dir}/client/del" userid="${server-login}" password="${server-password}">
193 benjamin 62
			<fileset dir="war/del" excludes="*.svn" />
63
		</ftp>
381 gduche 64
		<ftp server="${server-url}" remotedir="${server-dir}/client/img" userid="${server-login}" password="${server-password}">
193 benjamin 65
			<fileset dir="war/img" excludes="*.svn" />
66
		</ftp>
381 gduche 67
		<ftp server="${server-url}" remotedir="${server-dir}/client/WEB-INF" userid="${server-login}" password="${server-password}">
193 benjamin 68
			<fileset dir="war/WEB-INF" excludes="*.svn">
196 benjamin 69
				<exclude name="lib/*.jar" />
193 benjamin 70
			</fileset>
71
		</ftp>
381 gduche 72
 
73
		<ftp server="${server-url}" remotedir="${server-dir}/jrest" userid="${server-login}" password="${server-password}">
74
					<fileset dir="jrest" excludes="*.svn">
75
						<include name="**" />
76
						<exclude name="*.ini.php" />
393 gduche 77
						<exclude name=".htaccess" />
381 gduche 78
					</fileset>
79
		</ftp>
193 benjamin 80
 
81
		<!--
82
		<scp password="${server-password}" todir="${server-login}@${server-url}:${server-dir}" trust="true" verbose="true">
83
					<fileset dir="war" excludes="*.svn" />
84
				</scp>
85
				-->
1 aurelien 86
	</target>
87
 
157 benjamin 88
	<target name="build-and-deploy-local" depends="gwt-compile">
89
		<copy todir="${local-deploy-path}">
90
			<fileset dir="war" excludes="*.svn" />
91
		</copy>
92
	</target>
93
 
1 aurelien 94
</project>