Subversion Repositories eFlore/Applications.cel

Rev

Rev 2630 | Details | Compare with Previous | Last modification | View Log | RSS feed

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