Subversion Repositories eFlore/Applications.cel

Rev

Rev 2346 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2346 Rev 2630
1
<project name="cel" xmlns:artifact="urn:maven-artifact-ant" basedir=".">
1
<project name="cel" xmlns:artifact="urn:maven-artifact-ant" basedir=".">
2
 
2
 
3
  <property file="local.properties" />
3
  <property file="local.properties" />
4
  <property file="build.properties"/>
4
  <property file="build.properties"/>
5
 
5
 
6
  <target name="generate-vocabulary">
6
  <target name="generate-vocabulary">
7
	<java classname="com.google.gwt.i18n.tools.I18NSync" fork="true">
7
	<java classname="com.google.gwt.i18n.tools.I18NSync" fork="true">
8
	  <arg value="org.tela_botanica.client.i18n.VocabulaireMetadonnees" />
8
	  <arg value="org.tela_botanica.client.i18n.VocabulaireMetadonnees" />
9
	  <classpath>
9
	  <classpath>
10
		<path>
10
		<path>
11
		  <pathelement location="${gwt-path}/gwt-user.jar" />
11
		  <pathelement location="${gwt-path}/gwt-user.jar" />
12
		  <pathelement location="${gwt-path}/gwt-dev.jar" />
12
		  <pathelement location="${gwt-path}/gwt-dev.jar" />
13
		  <pathelement location="src" />
13
		  <pathelement location="src" />
14
		</path>
14
		</path>
15
	  </classpath>
15
	  </classpath>
16
	</java>
16
	</java>
17
  </target>
17
  </target>
-
 
18
 
-
 
19
  <target name="generate-messages">
-
 
20
	<java classname="com.google.gwt.i18n.tools.I18NSync" fork="true">
-
 
21
	  <arg value="org.tela_botanica.client.i18n.Messages" />
-
 
22
	  <classpath>
-
 
23
		<path>
-
 
24
		  <pathelement location="${gwt-path}/gwt-user.jar" />
-
 
25
		  <pathelement location="${gwt-path}/gwt-dev.jar" />
-
 
26
		  <pathelement location="src" />
-
 
27
		</path>
-
 
28
	  </classpath>
-
 
29
	</java>
-
 
30
  </target>
18
 
31
 
19
  <path id="gwt">
32
  <path id="gwt">
20
	<fileset includes="*.jar" dir="${gwt-path}" />
33
	<fileset includes="*.jar" dir="${gwt-path}" />
21
	<fileset includes="*.jar" dir="${gwt-maps-path}" />
34
	<fileset includes="*.jar" dir="${gwt-maps-path}" />
22
	<fileset includes="gwtext.jar" dir="${gwt-ext-path}" />
35
	<fileset includes="gwtext.jar" dir="${gwt-ext-path}" />
23
	<fileset includes="*.jar" dir="${gwt-ext-ux-path}" />
36
	<fileset includes="*.jar" dir="${gwt-ext-ux-path}" />
24
	<pathelement location="src" />
37
	<pathelement location="src" />
25
  </path>
38
  </path>
26
 
39
 
27
  <target name="link-resources">
40
  <target name="link-resources">
28
	<mkdir dir="${ext-js-dest-dir}"/>
41
	<mkdir dir="${ext-js-dest-dir}"/>
29
  	<mkdir dir="${ext-js-dest-dir}/resources"/>
42
  	<mkdir dir="${ext-js-dest-dir}/resources"/>
30
	<mkdir dir="${ext-js-dest-dir}/adapter/ext"/>
43
	<mkdir dir="${ext-js-dest-dir}/adapter/ext"/>
31
  	
44
  	
32
  	<copy file="${ext-js-dir}/ext-all.js" todir="${ext-js-dest-dir}"/>
45
  	<copy file="${ext-js-dir}/ext-all.js" todir="${ext-js-dest-dir}"/>
33
  	<copy todir="${ext-js-dest-dir}/resources">
46
  	<copy todir="${ext-js-dest-dir}/resources">
34
  	  <fileset dir="${ext-js-dir}/resources"/>
47
  	  <fileset dir="${ext-js-dir}/resources"/>
35
  	</copy>
48
  	</copy>
36
  	<copy file="${ext-js-dir}/adapter/ext/ext-base.js" todir="${ext-js-dest-dir}/adapter/ext"/>
49
  	<copy file="${ext-js-dir}/adapter/ext/ext-base.js" todir="${ext-js-dest-dir}/adapter/ext"/>
37
  	<copy todir="${js-dest-dir}/UploadDialog" overwrite="true">
50
  	<copy todir="${js-dest-dir}/UploadDialog" overwrite="true">
38
  	  <fileset dir="vendors/gwt-ext-ux/UploadDialog"/>
51
  	  <fileset dir="vendors/gwt-ext-ux/UploadDialog"/>
39
  	</copy>
52
  	</copy>
40
  </target>
53
  </target>
41
 
54
 
42
  <!-- Affiche toutes les propriétés -->
55
  <!-- Affiche toutes les propriétés -->
43
  <target name="test"><echoproperties/></target> <!-- sometimes useful -->
56
  <target name="test"><echoproperties/></target> <!-- sometimes useful -->
44
 
57
 
45
  <!-- Compile l'application pour la prod -->
58
  <!-- Compile l'application pour la prod -->
46
  <target name="compile">
59
  <target name="compile">
47
	<java classname="com.google.gwt.dev.Compiler" fork="true">
60
	<java classname="com.google.gwt.dev.Compiler" fork="true">
48
	  <arg line="-localWorkers 2 -style DETAILED ${projectName}"/>
61
	  <arg line="-localWorkers 2 -style DETAILED ${projectName}"/>
49
	  <classpath refid="gwt"/>
62
	  <classpath refid="gwt"/>
50
	</java>
63
	</java>
51
  	<antcall target="link-resources"></antcall>
64
  	<antcall target="link-resources"></antcall>
52
  </target> 
65
  </target> 
53
 
66
 
54
  <!-- Compilation rapide (draft) -->
67
  <!-- Compilation rapide (draft) -->
55
  <target name="compile-quick">
68
  <target name="compile-quick">
56
	<java classname="com.google.gwt.dev.Compiler" fork="true">
69
	<java classname="com.google.gwt.dev.Compiler" fork="true">
57
	  <arg line="-style DETAILED -draftCompile ${projectTestName}" />
70
	  <arg line="-style DETAILED -draftCompile ${projectTestName}" />
58
	  <classpath refid="gwt"/>
71
	  <classpath refid="gwt"/>
59
	</java>
72
	</java>
60
  	<antcall target="link-resources"></antcall>
73
  	<antcall target="link-resources"></antcall>
61
  </target> 
74
  </target> 
62
 
75
 
63
  <!-- Compilation debug (avec plein de logs) -->
76
  <!-- Compilation debug (avec plein de logs) -->
64
  <target name="compile-debug">
77
  <target name="compile-debug">
65
	<java classname="com.google.gwt.dev.Compiler" fork="true">
78
	<java classname="com.google.gwt.dev.Compiler" fork="true">
66
	  <arg line="-style DETAILED -logLevel DEBUG"/>
79
	  <arg line="-style DETAILED -logLevel DEBUG"/>
67
	  <arg value="${projectName}" />
80
	  <arg value="${projectName}" />
68
	  <classpath refid="gwt"/>
81
	  <classpath refid="gwt"/>
69
	</java>
82
	</java>
70
  	<antcall target="link-resources"></antcall>
83
  	<antcall target="link-resources"></antcall>
71
  </target>
84
  </target>
72
 
85
 
73
  <!-- Lance l'application en mode hosted -->
86
  <!-- Lance l'application en mode hosted -->
74
  <target name="launch-hosted">
87
  <target name="launch-hosted">
75
	<java classname="com.google.gwt.dev.DevMode" spawn="true" fork="true">
88
	<java classname="com.google.gwt.dev.DevMode" spawn="true" fork="true">
76
	  <arg line="-startupUrl http://${cel-host}/${cel-base-url} -noserver -codeServerPort auto ${projectName}" />
89
	  <arg line="-startupUrl http://${cel-host}/${cel-base-url} -noserver -codeServerPort auto ${projectName}" />
77
	  <classpath refid="gwt"/>
90
	  <classpath refid="gwt"/>
78
	</java>
91
	</java>
79
  </target> 
92
  </target> 
80
 
93
 
81
</project>
94
</project>