Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 2108 Rev 2346
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
 
18
 
19
  <path id="gwt">
19
  <path id="gwt">
20
	<fileset includes="*.jar" dir="${gwt-path}" />
20
	<fileset includes="*.jar" dir="${gwt-path}" />
21
	<fileset includes="*.jar" dir="${gwt-maps-path}" />
21
	<fileset includes="*.jar" dir="${gwt-maps-path}" />
22
	<fileset includes="gwtext.jar" dir="${gwt-ext-path}" />
22
	<fileset includes="gwtext.jar" dir="${gwt-ext-path}" />
23
	<fileset includes="*.jar" dir="${gwt-ext-ux-path}" />
23
	<fileset includes="*.jar" dir="${gwt-ext-ux-path}" />
24
	<pathelement location="src" />
24
	<pathelement location="src" />
25
  </path>
25
  </path>
26
 
-
 
27
  <!-- todo: must be inside cel2.gwt.xml in some way -->
26
 
28
  <target name="link-resources">
27
  <target name="link-resources">
29
	<mkdir dir="${ext-js-dest-dir}"/>
28
	<mkdir dir="${ext-js-dest-dir}"/>
30
  	<mkdir dir="${ext-js-dest-dir}/resources"/>
29
  	<mkdir dir="${ext-js-dest-dir}/resources"/>
31
	<mkdir dir="${ext-js-dest-dir}/adapter/ext"/>
30
	<mkdir dir="${ext-js-dest-dir}/adapter/ext"/>
32
  	
31
  	
33
  	<copy file="${ext-js-dir}/ext-all.js" todir="${ext-js-dest-dir}"/>
32
  	<copy file="${ext-js-dir}/ext-all.js" todir="${ext-js-dest-dir}"/>
34
  	<copy todir="${ext-js-dest-dir}/resources">
33
  	<copy todir="${ext-js-dest-dir}/resources">
35
  	  <fileset dir="${ext-js-dir}/resources"/>
34
  	  <fileset dir="${ext-js-dir}/resources"/>
36
  	</copy>
35
  	</copy>
37
  	<copy file="${ext-js-dir}/adapter/ext/ext-base.js" todir="${ext-js-dest-dir}/adapter/ext"/>
36
  	<copy file="${ext-js-dir}/adapter/ext/ext-base.js" todir="${ext-js-dest-dir}/adapter/ext"/>
38
  	<copy todir="${js-dest-dir}">
37
  	<copy todir="${js-dest-dir}/UploadDialog" overwrite="true">
39
  	  <fileset dir="vendors/gwt-ext-ux"/>
38
  	  <fileset dir="vendors/gwt-ext-ux/UploadDialog"/>
40
  	</copy>
39
  	</copy>
41
  </target>
40
  </target>
42
 
41
 
43
  <!-- Affiche toutes les propriétés -->
42
  <!-- Affiche toutes les propriétés -->
44
  <target name="test"><echoproperties/></target> <!-- sometimes useful -->
43
  <target name="test"><echoproperties/></target> <!-- sometimes useful -->
45
 
44
 
46
  <!-- Compile l'application pour la prod -->
45
  <!-- Compile l'application pour la prod -->
47
  <target name="compile">
46
  <target name="compile">
48
	<java classname="com.google.gwt.dev.Compiler" fork="true">
47
	<java classname="com.google.gwt.dev.Compiler" fork="true">
49
	  <arg line="-localWorkers 2 -style DETAILED ${projectName}"/>
48
	  <arg line="-localWorkers 2 -style DETAILED ${projectName}"/>
50
	  <classpath refid="gwt"/>
49
	  <classpath refid="gwt"/>
51
	</java>
50
	</java>
52
  	<antcall target="link-resources"></antcall>
51
  	<antcall target="link-resources"></antcall>
53
  </target> 
52
  </target> 
54
 
53
 
55
  <!-- Compilation rapide (draft) -->
54
  <!-- Compilation rapide (draft) -->
56
  <target name="compile-quick">
55
  <target name="compile-quick">
57
	<java classname="com.google.gwt.dev.Compiler" fork="true">
56
	<java classname="com.google.gwt.dev.Compiler" fork="true">
58
	  <arg line="-style DETAILED -draftCompile ${projectTestName}" />
57
	  <arg line="-style DETAILED -draftCompile ${projectTestName}" />
59
	  <classpath refid="gwt"/>
58
	  <classpath refid="gwt"/>
60
	</java>
59
	</java>
61
  	<antcall target="link-resources"></antcall>
60
  	<antcall target="link-resources"></antcall>
62
  </target> 
61
  </target> 
63
 
62
 
64
  <!-- Compilation debug (avec plein de logs) -->
63
  <!-- Compilation debug (avec plein de logs) -->
65
  <target name="compile-debug">
64
  <target name="compile-debug">
66
	<java classname="com.google.gwt.dev.Compiler" fork="true">
65
	<java classname="com.google.gwt.dev.Compiler" fork="true">
67
	  <arg line="-style DETAILED -logLevel DEBUG"/>
66
	  <arg line="-style DETAILED -logLevel DEBUG"/>
68
	  <arg value="${projectName}" />
67
	  <arg value="${projectName}" />
69
	  <classpath refid="gwt"/>
68
	  <classpath refid="gwt"/>
70
	</java>
69
	</java>
71
  	<antcall target="link-resources"></antcall>
70
  	<antcall target="link-resources"></antcall>
72
  </target>
71
  </target>
73
 
72
 
74
  <!-- Lance l'application en mode hosted -->
73
  <!-- Lance l'application en mode hosted -->
75
  <target name="launch-hosted">
74
  <target name="launch-hosted">
76
	<java classname="com.google.gwt.dev.DevMode" spawn="true" fork="true">
75
	<java classname="com.google.gwt.dev.DevMode" spawn="true" fork="true">
77
	  <arg line="-startupUrl http://${cel-host}/${cel-base-url} -noserver -codeServerPort auto ${projectName}" />
76
	  <arg line="-startupUrl http://${cel-host}/${cel-base-url} -noserver -codeServerPort auto ${projectName}" />
78
	  <classpath refid="gwt"/>
77
	  <classpath refid="gwt"/>
79
	</java>
78
	</java>
80
  </target> 
79
  </target> 
81
 
-
 
82
</project>
80
 
-
 
81
</project>