Subversion Repositories eFlore/Applications.cel

Rev

Rev 1876 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1876 Rev 2108
Line 1... Line 1...
1
<project name="cel_GWT2" xmlns:artifact="urn:maven-artifact-ant" basedir=".">
1
<project name="cel" xmlns:artifact="urn:maven-artifact-ant" basedir=".">
Line -... Line 2...
-
 
2
 
2
 
3
  <property file="local.properties" />
3
  <property file="build.properties"/>
-
 
Line 4... Line -...
4
  <property name="extjsdestdir" value="src/org/tela_botanica/public/js/ext"/>
-
 
5
 
-
 
6
  <target name="init">
-
 
7
	<property file="local.properties" />
-
 
8
	<property name="server-url" value="${server-url}" />
-
 
9
	<property name="server-login" value="${server-login}" />
-
 
10
	<property name="server-password" value="${server-password}" />
-
 
11
	<property name="server-dir" value="${server-dir}" />
-
 
12
	<property name="gwt-path" value="${gwt-path}" />
-
 
13
  </target>
-
 
14
 
4
  <property file="build.properties"/>
15
  
5
 
16
  <target name="generate-vocabulary" depends="init">
6
  <target name="generate-vocabulary">
17
	<java classname="com.google.gwt.i18n.tools.I18NSync" fork="true">
7
	<java classname="com.google.gwt.i18n.tools.I18NSync" fork="true">
18
	  <arg value="org.tela_botanica.client.i18n.VocabulaireMetadonnees" />
8
	  <arg value="org.tela_botanica.client.i18n.VocabulaireMetadonnees" />
19
	  <classpath>
9
	  <classpath>
Line 24... Line 14...
24
		</path>
14
		</path>
25
	  </classpath>
15
	  </classpath>
26
	</java>
16
	</java>
27
  </target>
17
  </target>
Line 28... Line -...
28
 
-
 
29
 
18
 
30
  <path id="gwt">
19
  <path id="gwt">
31
	<fileset includes="*.jar" dir="${gwt-path}/gwt/build/lib"/>
-
 
32
	<fileset includes="*.jar" dir="${gwt-path}/gwt-google-apis/maps/build/lib"/>
-
 
33
	<fileset includes="gwtext.jar" dir="${gwt-path}/gwt-ext/build/lib"/>
-
 
34
	<!-- alternativement, en cas de passage (très hypothétique) a gwt 3:
20
	<fileset includes="*.jar" dir="${gwt-path}" />
35
	<fileset includes="gxt-legacy-3.0.1.jar" dir="${gwt-path}/gxt"/>
21
	<fileset includes="*.jar" dir="${gwt-maps-path}" />
36
	<fileset includes="gxt-3.0.1.jar" dir="${gwt-path}/gxt"/> -->
22
	<fileset includes="gwtext.jar" dir="${gwt-ext-path}" />
37
	<fileset includes="*.jar" dir="${gwt-path}/gwt-ext-ux/build/lib"/>
23
	<fileset includes="*.jar" dir="${gwt-ext-ux-path}" />
38
	<pathelement location="src" />
24
	<pathelement location="src" />
Line 39... Line 25...
39
  </path>
25
  </path>
40
 
26
 
41
  <!-- todo: must be inside cel2.gwt.xml in some way -->
27
  <!-- todo: must be inside cel2.gwt.xml in some way -->
-
 
28
  <target name="link-resources">
42
  <target name="link-resources">
29
	<mkdir dir="${ext-js-dest-dir}"/>
-
 
30
  	<mkdir dir="${ext-js-dest-dir}/resources"/>
43
	<mkdir dir="${extjsdestdir}"/>
31
	<mkdir dir="${ext-js-dest-dir}/adapter/ext"/>
-
 
32
  	
44
	<mkdir dir="${extjsdestdir}/adapter/ext"/>	<!-- normalement optionnel en extjs 4.2.1 -->
33
  	<copy file="${ext-js-dir}/ext-all.js" todir="${ext-js-dest-dir}"/>
-
 
34
  	<copy todir="${ext-js-dest-dir}/resources">
45
	<symlink overwrite="true" link="${extjsdestdir}/adapter/ext/" resource="${extjsdir}/adapter/ext/ext-base.js"/>
35
  	  <fileset dir="${ext-js-dir}/resources"/>
-
 
36
  	</copy>
-
 
37
  	<copy file="${ext-js-dir}/adapter/ext/ext-base.js" todir="${ext-js-dest-dir}/adapter/ext"/>
-
 
38
  	<copy todir="${js-dest-dir}">
46
	<symlink overwrite="true" link="${extjsdestdir}" resource="${extjsdir}/ext-all.js"/>
39
  	  <fileset dir="vendors/gwt-ext-ux"/>
Line 47... Line -...
47
	<symlink overwrite="true" link="${extjsdestdir}" resource="${extjsdir}/resources"/>
-
 
-
 
40
  	</copy>
48
  </target>
41
  </target>
Line 49... Line 42...
49
 
42
 
50
 
43
  <!-- Affiche toutes les propriétés -->
51
  <target name="test"><echoproperties/></target> <!-- sometimes useful -->
44
  <target name="test"><echoproperties/></target> <!-- sometimes useful -->
52
 
45
 
53
  <target name="compile" depends="link-resources">
-
 
54
	<!-- <java classname="com.google.gwt.dev.GWTCompiler" fork="true"> -->
46
  <!-- Compile l'application pour la prod -->
55
	<java classname="com.google.gwt.dev.Compiler" fork="true">
47
  <target name="compile">
-
 
48
	<java classname="com.google.gwt.dev.Compiler" fork="true">
56
	  <arg line="-localWorkers 2 -style DETAILED ${projectName}"/>
49
	  <arg line="-localWorkers 2 -style DETAILED ${projectName}"/>
Line -... Line 50...
-
 
50
	  <classpath refid="gwt"/>
57
	  <!-- <arg line="-out build/gwtOutput"/> -->
51
	</java>
58
	  <classpath refid="gwt"/>
52
  	<antcall target="link-resources"></antcall>
59
	</java>
53
  </target> 
60
  </target> 
54
 
61
 
55
  <!-- Compilation rapide (draft) -->
-
 
56
  <target name="compile-quick">
62
  <target name="quick" depends="link-resources">
57
	<java classname="com.google.gwt.dev.Compiler" fork="true">
Line 63... Line -...
63
	<java classname="com.google.gwt.dev.Compiler" fork="true">
-
 
-
 
58
	  <arg line="-style DETAILED -draftCompile ${projectTestName}" />
64
	  <arg line="-style DETAILED -draftCompile ${projectTestName}" />
59
	  <classpath refid="gwt"/>
65
	  <classpath refid="gwt"/>
60
	</java>
66
	</java>
61
  	<antcall target="link-resources"></antcall>
67
  </target> 
62
  </target> 
68
 
63
 
69
 
64
  <!-- Compilation debug (avec plein de logs) -->
-
 
65
  <target name="compile-debug">
70
  <target name="debug" depends="link-resources">
66
	<java classname="com.google.gwt.dev.Compiler" fork="true">
71
	<java classname="com.google.gwt.dev.Compiler" fork="true">
-
 
Line -... Line 67...
-
 
67
	  <arg line="-style DETAILED -logLevel DEBUG"/>
72
	  <arg line="-style DETAILED -logLevel DEBUG"/> <!-- TRACE -->
68
	  <arg value="${projectName}" />
73
	  <arg value="${projectName}" />
69
	  <classpath refid="gwt"/>
74
	  <classpath refid="gwt"/>
70
	</java>
75
	</java>
71
  	<antcall target="link-resources"></antcall>
76
  </target> 
72
  </target>
77
 
73
 
Line 78... Line -...
78
 
-
 
79
  <target name="live">
74
  <!-- Lance l'application en mode hosted -->
80
	<java classname="com.google.gwt.dev.DevMode" spawn="true" fork="true">
75
  <target name="launch-hosted">