Subversion Repositories eFlore/Applications.coel

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1647 raphael 1
<project name="coel" xmlns:artifact="urn:maven-artifact-ant" basedir=".">
2
 
3
  <property file="build.properties"/>
4
  <property name="gxtdestdir" value="src/org/tela_botanica/public"/>
1663 raphael 5
  <property name="confparams" value=""/>
1647 raphael 6
 
7
  <path id="gwt">
1672 raphael 8
    <!-- todo: utiliser le mode de configuration des chemins du build.xml du CEL -->
9
	<fileset includes="*.jar" dir="${user.home}/src/gwt/gwt/build/lib"/>
10
	<fileset includes="*.jar" dir="${user.home}/src/gwt/gwt-google-apis/maps/build/lib"/>
1680 raphael 11
	<fileset includes="gxt-2.3.0-gwt22.jar" dir="${user.home}/src/gwt/gxt"/>
1647 raphael 12
	<pathelement location="src" />
13
  </path>
14
 
15
  <!-- todo: must be inside coel*.gwt.xml in some way -->
16
  <target name="link-resources">
17
	<mkdir dir="${gxtdestdir}"/>
18
	<!-- doit lier "resources" dans upstream à src/org/.../public/gxt -->
19
	<symlink overwrite="true" link="${gxtdestdir}/gxt" resource="${gxtresdir}"/>
20
  </target>
21
 
22
 
23
  <target name="test"><echoproperties/></target> <!-- sometimes useful -->
24
 
25
  <target name="compile" depends="link-resources">
26
	<!-- <java classname="com.google.gwt.dev.GWTCompiler" fork="true"> -->
27
	<java classname="com.google.gwt.dev.Compiler" fork="true">
28
	  <arg line="-localWorkers 2 -style DETAILED ${projectName}"/>
29
	  <!-- <arg line="-out build/gwtOutput"/> -->
30
	  <classpath refid="gwt"/>
31
	</java>
1712 raphael 32
	<exec resolveexecutable="true" executable="m4" input="war/config/apropos.js.m4" output="war/config/apropos.js">
33
	  <arg line="-D _JREST_SERVICES_PATH_=jrest/services -D _SUFFIX_='${confparams}'" />
34
	</exec>
1647 raphael 35
  </target>
36
 
37
  <target name="quick" depends="link-resources">
38
	<java classname="com.google.gwt.dev.Compiler" fork="true">
39
	  <arg line="-style DETAILED -draftCompile ${projectTestName}" />
40
	  <classpath refid="gwt"/>
41
	</java>
1663 raphael 42
  </target>
43
 
1682 raphael 44
  <!-- génération d'un fichier pour test:
1712 raphael 45
       ant -Dsuffix="Version de test" config -->
1663 raphael 46
  <target name="config">
47
	<echo message="mise à jour de ${apropos}"/>
1712 raphael 48
	<exec resolveexecutable="true" executable="m4" input="war/config/apropos.js.m4" output="war/config/apropos.js">
49
	  <arg line="-D _JREST_SERVICES_PATH_=jrest/services -D _SUFFIX_='${confparams}'" />
1663 raphael 50
	</exec>
1682 raphael 51
	<echo message="please do # rsync -avuin --no-o --no-g --exclude=WEB-INF --exclude=config  war/ ${desthost}:${destdir}/"/>
1675 raphael 52
	<echo message="scp -p ${apropos} ${desthost}:${destdir}/config/apropos.js"/>
1647 raphael 53
  </target>
54
 
55
 
1663 raphael 56
 
1647 raphael 57
  <target name="debug" depends="link-resources">
58
	<java classname="com.google.gwt.dev.Compiler" fork="true">
59
	  <arg line="-style DETAILED -logLevel DEBUG"/> <!-- TRACE -->
60
	  <arg value="${projectName}" />
61
	  <classpath refid="gwt"/>
62
	</java>
63
  </target>
64
 
65
 
66
  <target name="testlive">
67
	<java classname="com.google.gwt.dev.DevMode" spawn="true" fork="true">
1672 raphael 68
	  <arg line="-startupUrl http://${celhost}/war/Coel.html -whitelist http://www.tela-botanica.org -noserver -codeServerPort auto ${projectTestName}" />
1647 raphael 69
	  <classpath refid="gwt"/>
70
	</java>
71
  </target>
72
 
73
  <target name="live">
74
	<java classname="com.google.gwt.dev.DevMode" spawn="true" fork="true">
75
	  <arg line="-startupUrl http://${celhost}/war/Coel.html -whitelist http://www.tela-botanica.org -noserver -codeServerPort auto ${projectName}" />
76
	  <classpath refid="gwt"/>
77
	</java>
78
  </target>
79
 
80
</project>