Subversion Repositories eFlore/Applications.cel

Rev

Rev 1857 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1370 aurelien 1
<project name="cel_GWT2" xmlns:artifact="urn:maven-artifact-ant" basedir=".">
2
 
1868 raphael 3
  <property file="build.properties"/>
4
  <property name="extjsdestdir" value="src/org/tela_botanica/public/js/ext"/>
1370 aurelien 5
 
1857 raphael 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="${user.home}/gwt/build/lib"/>
32
	<fileset includes="*.jar" dir="${user.home}/gwt-google-apis/maps/build/lib"/>
33
	<fileset includes="*.jar" dir="${user.home}/gwt-ext/build/lib"/>
34
	<fileset includes="*.jar" dir="${user.home}/gwt-ext-ux/build/lib"/>
35
	<pathelement location="src" />
36
  </path>
37
 
1868 raphael 38
  <!-- todo: must be inside cel2.gwt.xml in some way -->
39
  <target name="link-resources">
40
	<mkdir dir="${extjsdestdir}"/>
41
	<mkdir dir="${extjsdestdir}/adapter/ext"/>
42
	<symlink overwrite="true" link="${extjsdestdir}/adapter/ext/" resource="${extjsdir}/adapter/ext/ext-base.js"/>
43
	<symlink overwrite="true" link="${extjsdestdir}" resource="${extjsdir}/ext-all.js"/>
44
	<symlink overwrite="true" link="${extjsdestdir}" resource="${extjsdir}/resources"/>
45
  </target>
46
 
47
 
48
  <target name="test"><echoproperties/></target> <!-- sometimes useful -->
49
 
50
  <target name="compile" depends="link-resources">
1857 raphael 51
	<!-- <java classname="com.google.gwt.dev.GWTCompiler" fork="true"> -->
52
	<java classname="com.google.gwt.dev.Compiler" fork="true">
1868 raphael 53
	  <arg line="-localWorkers 2 -style DETAILED ${projectName}"/>
1857 raphael 54
	  <!-- <arg line="-out build/gwtOutput"/> -->
55
	  <classpath refid="gwt"/>
56
	</java>
57
  </target>
58
 
1868 raphael 59
  <target name="quick" depends="link-resources">
1857 raphael 60
	<java classname="com.google.gwt.dev.Compiler" fork="true">
1868 raphael 61
	  <arg line="-style DETAILED -draftCompile ${projectTestName}" />
1857 raphael 62
	  <classpath refid="gwt"/>
63
	</java>
64
  </target>
65
 
66
 
1868 raphael 67
  <target name="debug" depends="link-resources">
1857 raphael 68
	<java classname="com.google.gwt.dev.Compiler" fork="true">
69
	  <arg line="-style DETAILED -logLevel DEBUG"/> <!-- TRACE -->
70
	  <arg value="${projectName}" />
71
	  <classpath refid="gwt"/>
72
	</java>
73
  </target>
74
 
75
 
76
  <target name="live">
77
	<java classname="com.google.gwt.dev.DevMode" spawn="true" fork="true">
78
	  <arg line="-startupUrl http://${celhost}/war/cel2.html -noserver -codeServerPort auto ${projectName}" />
79
	  <classpath refid="gwt"/>
80
	</java>
81
  </target>
82
 
83
 
84
</project>