Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 1876 Rev 2108
1
<project name="cel_GWT2" 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="build.properties"/>
-
 
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>
20
		<path>
10
		<path>
21
		  <pathelement location="${gwt-path}/gwt-user.jar" />
11
		  <pathelement location="${gwt-path}/gwt-user.jar" />
22
		  <pathelement location="${gwt-path}/gwt-dev.jar" />
12
		  <pathelement location="${gwt-path}/gwt-dev.jar" />
23
		  <pathelement location="src" />
13
		  <pathelement location="src" />
24
		</path>
14
		</path>
25
	  </classpath>
15
	  </classpath>
26
	</java>
16
	</java>
27
  </target>
17
  </target>
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" />
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 -->
42
  <target name="link-resources">
28
  <target name="link-resources">
43
	<mkdir dir="${extjsdestdir}"/>
29
	<mkdir dir="${ext-js-dest-dir}"/>
-
 
30
  	<mkdir dir="${ext-js-dest-dir}/resources"/>
44
	<mkdir dir="${extjsdestdir}/adapter/ext"/>	<!-- normalement optionnel en extjs 4.2.1 -->
31
	<mkdir dir="${ext-js-dest-dir}/adapter/ext"/>
-
 
32
  	
45
	<symlink overwrite="true" link="${extjsdestdir}/adapter/ext/" resource="${extjsdir}/adapter/ext/ext-base.js"/>
33
  	<copy file="${ext-js-dir}/ext-all.js" todir="${ext-js-dest-dir}"/>
-
 
34
  	<copy todir="${ext-js-dest-dir}/resources">
46
	<symlink overwrite="true" link="${extjsdestdir}" resource="${extjsdir}/ext-all.js"/>
35
  	  <fileset dir="${ext-js-dir}/resources"/>
-
 
36
  	</copy>
47
	<symlink overwrite="true" link="${extjsdestdir}" resource="${extjsdir}/resources"/>
37
  	<copy file="${ext-js-dir}/adapter/ext/ext-base.js" todir="${ext-js-dest-dir}/adapter/ext"/>
-
 
38
  	<copy todir="${js-dest-dir}">
-
 
39
  	  <fileset dir="vendors/gwt-ext-ux"/>
-
 
40
  	</copy>
48
  </target>
41
  </target>
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">
46
  <!-- Compile l'application pour la prod -->
54
	<!-- <java classname="com.google.gwt.dev.GWTCompiler" fork="true"> -->
47
  <target name="compile">
55
	<java classname="com.google.gwt.dev.Compiler" fork="true">
-
 
56
	  <arg line="-localWorkers 2 -style DETAILED ${projectName}"/>
48
	<java classname="com.google.gwt.dev.Compiler" fork="true">
57
	  <!-- <arg line="-out build/gwtOutput"/> -->
49
	  <arg line="-localWorkers 2 -style DETAILED ${projectName}"/>
-
 
50
	  <classpath refid="gwt"/>
58
	  <classpath refid="gwt"/>
51
	</java>
-
 
52
  	<antcall target="link-resources"></antcall>
59
	</java>
53
  </target> 
60
  </target> 
54
 
61
 
55
  <!-- Compilation rapide (draft) -->
62
  <target name="quick" depends="link-resources">
56
  <target name="compile-quick">
63
	<java classname="com.google.gwt.dev.Compiler" fork="true">
57
	<java classname="com.google.gwt.dev.Compiler" fork="true">
64
	  <arg line="-style DETAILED -draftCompile ${projectTestName}" />
58
	  <arg line="-style DETAILED -draftCompile ${projectTestName}" />
65
	  <classpath refid="gwt"/>
59
	  <classpath refid="gwt"/>
66
	</java>
60
	</java>
-
 
61
  	<antcall target="link-resources"></antcall>
67
  </target> 
62
  </target> 
68
 
-
 
-
 
63
 
69
 
64
  <!-- Compilation debug (avec plein de logs) -->
70
  <target name="debug" depends="link-resources">
65
  <target name="compile-debug">
71
	<java classname="com.google.gwt.dev.Compiler" fork="true">
66
	<java classname="com.google.gwt.dev.Compiler" fork="true">
72
	  <arg line="-style DETAILED -logLevel DEBUG"/> <!-- TRACE -->
67
	  <arg line="-style DETAILED -logLevel DEBUG"/>
73
	  <arg value="${projectName}" />
68
	  <arg value="${projectName}" />
74
	  <classpath refid="gwt"/>
69
	  <classpath refid="gwt"/>
75
	</java>
70
	</java>
-
 
71
  	<antcall target="link-resources"></antcall>
76
  </target> 
72
  </target>
77
 
-
 
-
 
73
 
78
 
74
  <!-- Lance l'application en mode hosted -->
79
  <target name="live">
75
  <target name="launch-hosted">
80
	<java classname="com.google.gwt.dev.DevMode" spawn="true" fork="true">
76
	<java classname="com.google.gwt.dev.DevMode" spawn="true" fork="true">
81
	  <arg line="-startupUrl http://${celhost}/war/cel2.html -noserver -codeServerPort auto ${projectName}" />
77
	  <arg line="-startupUrl http://${cel-host}/${cel-base-url} -noserver -codeServerPort auto ${projectName}" />
82
	  <classpath refid="gwt"/>
78
	  <classpath refid="gwt"/>
83
	</java>
79
	</java>
84
  </target> 
80
  </target> 
85
 
-
 
86
 
81
 
87
</project>
82
</project>