Subversion Repositories eFlore/Applications.cel

Rev

Go to most recent revision | Details | 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
  <!-- todo: must be inside cel2.gwt.xml in some way -->
28
  <target name="link-resources">
2108 mathias 29
	<mkdir dir="${ext-js-dest-dir}"/>
30
  	<mkdir dir="${ext-js-dest-dir}/resources"/>
31
	<mkdir dir="${ext-js-dest-dir}/adapter/ext"/>
32
 
33
  	<copy file="${ext-js-dir}/ext-all.js" todir="${ext-js-dest-dir}"/>
34
  	<copy todir="${ext-js-dest-dir}/resources">
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}">
39
  	  <fileset dir="vendors/gwt-ext-ux"/>
40
  	</copy>
1868 raphael 41
  </target>
42
 
2108 mathias 43
  <!-- Affiche toutes les propriétés -->
1868 raphael 44
  <target name="test"><echoproperties/></target> <!-- sometimes useful -->
45
 
2108 mathias 46
  <!-- Compile l'application pour la prod -->
47
  <target name="compile">
1857 raphael 48
	<java classname="com.google.gwt.dev.Compiler" fork="true">
1868 raphael 49
	  <arg line="-localWorkers 2 -style DETAILED ${projectName}"/>
1857 raphael 50
	  <classpath refid="gwt"/>
51
	</java>
2108 mathias 52
  	<antcall target="link-resources"></antcall>
1857 raphael 53
  </target>
54
 
2108 mathias 55
  <!-- Compilation rapide (draft) -->
56
  <target name="compile-quick">
1857 raphael 57
	<java classname="com.google.gwt.dev.Compiler" fork="true">
1868 raphael 58
	  <arg line="-style DETAILED -draftCompile ${projectTestName}" />
1857 raphael 59
	  <classpath refid="gwt"/>
60
	</java>
2108 mathias 61
  	<antcall target="link-resources"></antcall>
1857 raphael 62
  </target>
63
 
2108 mathias 64
  <!-- Compilation debug (avec plein de logs) -->
65
  <target name="compile-debug">
1857 raphael 66
	<java classname="com.google.gwt.dev.Compiler" fork="true">
2108 mathias 67
	  <arg line="-style DETAILED -logLevel DEBUG"/>
1857 raphael 68
	  <arg value="${projectName}" />
69
	  <classpath refid="gwt"/>
70
	</java>
2108 mathias 71
  	<antcall target="link-resources"></antcall>
72
  </target>
1857 raphael 73
 
2108 mathias 74
  <!-- Lance l'application en mode hosted -->
75
  <target name="launch-hosted">
1857 raphael 76
	<java classname="com.google.gwt.dev.DevMode" spawn="true" fork="true">
2108 mathias 77
	  <arg line="-startupUrl http://${cel-host}/${cel-base-url} -noserver -codeServerPort auto ${projectName}" />
1857 raphael 78
	  <classpath refid="gwt"/>
79
	</java>
80
  </target>
81
 
2108 mathias 82
</project>