Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 1840 Rev 1914
Line 1... Line 1...
1
<project name="cel_GWT2" xmlns:artifact="urn:maven-artifact-ant" basedir=".">
1
<project name="cel_GWT2" xmlns:artifact="urn:maven-artifact-ant" basedir=".">
Line 2... Line -...
2
 
-
 
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="generate-vocabulary" depends="init">
-
 
13
 
-
 
14
		<java classname="com.google.gwt.i18n.tools.I18NSync" fork="true">
-
 
15
			<arg value="org.tela_botanica.client.i18n.VocabulaireMetadonnees" />
-
 
16
			<classpath>
-
 
17
				<path>
-
 
18
					<pathelement location="${gwt-path}/gwt-user.jar" />
-
 
19
					<pathelement location="${gwt-path}/gwt-dev.jar" />
-
 
20
					<pathelement location="src" />
-
 
21
				</path>
-
 
22
			</classpath>
-
 
23
		</java>
-
 
24
	</target>
-
 
25
</project>
2
 
-
 
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
 
-
 
15
  
-
 
16
  <target name="generate-vocabulary" depends="init">
-
 
17
	<java classname="com.google.gwt.i18n.tools.I18NSync" fork="true">
-
 
18
	  <arg value="org.tela_botanica.client.i18n.VocabulaireMetadonnees" />
-
 
19
	  <classpath>
-
 
20
		<path>
-
 
21
		  <pathelement location="${gwt-path}/gwt-user.jar" />
-
 
22
		  <pathelement location="${gwt-path}/gwt-dev.jar" />
-
 
23
		  <pathelement location="src" />
-
 
24
		</path>
-
 
25
	  </classpath>
-
 
26
	</java>
-
 
27
  </target>
-
 
28
 
-
 
29
 
-
 
30
  <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:
-
 
35
	<fileset includes="gxt-legacy-3.0.1.jar" dir="${gwt-path}/gxt"/>
-
 
36
	<fileset includes="gxt-3.0.1.jar" dir="${gwt-path}/gxt"/> -->
-
 
37
	<fileset includes="*.jar" dir="${gwt-path}/gwt-ext-ux/build/lib"/>
-
 
38
	<pathelement location="src" />
-
 
39
  </path>
-
 
40
 
-
 
41
  <!-- todo: must be inside cel2.gwt.xml in some way -->
-
 
42
  <target name="link-resources">
-
 
43
	<mkdir dir="${extjsdestdir}"/>
-
 
44
	<mkdir dir="${extjsdestdir}/adapter/ext"/>	<!-- normalement optionnel en extjs 4.2.1 -->
-
 
45
	<symlink overwrite="true" link="${extjsdestdir}/adapter/ext/" resource="${extjsdir}/adapter/ext/ext-base.js"/>
-
 
46
	<symlink overwrite="true" link="${extjsdestdir}" resource="${extjsdir}/ext-all.js"/>
-
 
47
	<symlink overwrite="true" link="${extjsdestdir}" resource="${extjsdir}/resources"/>
-
 
48
  </target>
-
 
49
 
-
 
50
 
-
 
51
  <target name="test"><echoproperties/></target> <!-- sometimes useful -->
-
 
52
 
-
 
53
  <target name="compile" depends="link-resources">
-
 
54
	<!-- <java classname="com.google.gwt.dev.GWTCompiler" fork="true"> -->
-
 
55
	<java classname="com.google.gwt.dev.Compiler" fork="true">
-
 
56
	  <arg line="-localWorkers 2 -style DETAILED ${projectName}"/>
-
 
57
	  <!-- <arg line="-out build/gwtOutput"/> -->
-
 
58
	  <classpath refid="gwt"/>
-
 
59
	</java>
-
 
60
  </target> 
-
 
61
 
-
 
62
  <target name="quick" depends="link-resources">
-
 
63
	<java classname="com.google.gwt.dev.Compiler" fork="true">
-
 
64
	  <arg line="-style DETAILED -draftCompile ${projectTestName}" />
-
 
65
	  <classpath refid="gwt"/>
-
 
66
	</java>
-
 
67
  </target> 
-
 
68
 
-
 
69
 
-
 
70
  <target name="debug" depends="link-resources">
-
 
71
	<java classname="com.google.gwt.dev.Compiler" fork="true">
-
 
72
	  <arg line="-style DETAILED -logLevel DEBUG"/> <!-- TRACE -->
-
 
73
	  <arg value="${projectName}" />
-
 
74
	  <classpath refid="gwt"/>
-
 
75
	</java>
-
 
76
  </target> 
-
 
77
 
-
 
78
 
-
 
79
  <target name="live">
-
 
80
	<java classname="com.google.gwt.dev.DevMode" spawn="true" fork="true">
-
 
81
	  <arg line="-startupUrl http://${celhost}/war/cel2.html -noserver -codeServerPort auto ${projectName}" />
-
 
82
	  <classpath refid="gwt"/>
-
 
83
	</java>
-
 
84
  </target> 
-
 
85
 
-
 
86
 
-
 
87
</project>