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">
8
	<fileset includes="*.jar" dir="${user.home}/gwt/build/lib"/>
9
	<fileset includes="*.jar" dir="${user.home}/gwt-google-apis/maps/build/lib"/>
10
	<fileset includes="gxt-2.2.5-gwt22.jar" dir="${user.home}/gxt"/>
11
	<pathelement location="src" />
12
  </path>
13
 
14
  <!-- todo: must be inside coel*.gwt.xml in some way -->
15
  <target name="link-resources">
16
	<mkdir dir="${gxtdestdir}"/>
17
	<!-- doit lier "resources" dans upstream à src/org/.../public/gxt -->
18
	<symlink overwrite="true" link="${gxtdestdir}/gxt" resource="${gxtresdir}"/>
19
  </target>
20
 
21
 
22
  <target name="test"><echoproperties/></target> <!-- sometimes useful -->
23
 
24
  <target name="compile" depends="link-resources">
25
	<!-- <java classname="com.google.gwt.dev.GWTCompiler" fork="true"> -->
26
	<java classname="com.google.gwt.dev.Compiler" fork="true">
27
	  <arg line="-localWorkers 2 -style DETAILED ${projectName}"/>
28
	  <!-- <arg line="-out build/gwtOutput"/> -->
29
	  <classpath refid="gwt"/>
30
	</java>
1663 raphael 31
	<exec resolveexecutable="true" executable="Coel-config" />
1647 raphael 32
  </target>
33
 
34
  <target name="quick" depends="link-resources">
35
	<java classname="com.google.gwt.dev.Compiler" fork="true">
36
	  <arg line="-style DETAILED -draftCompile ${projectTestName}" />
37
	  <classpath refid="gwt"/>
38
	</java>
1663 raphael 39
  </target>
40
 
41
  <target name="config">
42
	<echo message="mise à jour de ${apropos}"/>
43
	<exec resolveexecutable="true" executable="Coel-config">
44
	  <arg line="${apropos} ${confparams}"/>
45
	</exec>
46
	<echo message="rsync -avui -no-o -no-g war/ ${desthost}:${destdir}/"/>
47
	<echo message="scp ${apropos} ${desthost}:${destdir}/config/apropos.js"/>
1647 raphael 48
  </target>
49
 
50
 
1663 raphael 51
 
1647 raphael 52
  <target name="debug" depends="link-resources">
53
	<java classname="com.google.gwt.dev.Compiler" fork="true">
54
	  <arg line="-style DETAILED -logLevel DEBUG"/> <!-- TRACE -->
55
	  <arg value="${projectName}" />
56
	  <classpath refid="gwt"/>
57
	</java>
58
  </target>
59
 
60
 
61
  <target name="testlive">
62
	<java classname="com.google.gwt.dev.DevMode" spawn="true" fork="true">
63
	  <arg line="-startupUrl http://${celhost}/war/Coel.html -whitelist http://www.tela-botanica.org -noserver -codeServerPort auto ${projectName}" />
64
	  <classpath refid="gwt"/>
65
	</java>
66
  </target>
67
 
68
  <target name="live">
69
	<java classname="com.google.gwt.dev.DevMode" spawn="true" fork="true">
70
	  <arg line="-startupUrl http://${celhost}/war/Coel.html -whitelist http://www.tela-botanica.org -noserver -codeServerPort auto ${projectName}" />
71
	  <classpath refid="gwt"/>
72
	</java>
73
  </target>
74
 
75
</project>