Subversion Repositories eFlore/Applications.cel

Rev

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