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"/>
11
	<fileset includes="gxt-2.2.5-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>
1663 raphael 32
	<exec resolveexecutable="true" executable="Coel-config" />
1647 raphael 33
  </target>
34
 
35
  <target name="quick" depends="link-resources">
36
	<java classname="com.google.gwt.dev.Compiler" fork="true">
37
	  <arg line="-style DETAILED -draftCompile ${projectTestName}" />
38
	  <classpath refid="gwt"/>
39
	</java>
1663 raphael 40
  </target>
41
 
42
  <target name="config">
43
	<echo message="mise à jour de ${apropos}"/>
44
	<exec resolveexecutable="true" executable="Coel-config">
45
	  <arg line="${apropos} ${confparams}"/>
46
	</exec>
47
	<echo message="rsync -avui -no-o -no-g war/ ${desthost}:${destdir}/"/>
48
	<echo message="scp ${apropos} ${desthost}:${destdir}/config/apropos.js"/>
1647 raphael 49
  </target>
50
 
51
 
1663 raphael 52
 
1647 raphael 53
  <target name="debug" depends="link-resources">
54
	<java classname="com.google.gwt.dev.Compiler" fork="true">
55
	  <arg line="-style DETAILED -logLevel DEBUG"/> <!-- TRACE -->
56
	  <arg value="${projectName}" />
57
	  <classpath refid="gwt"/>
58
	</java>
59
  </target>
60
 
61
 
62
  <target name="testlive">
63
	<java classname="com.google.gwt.dev.DevMode" spawn="true" fork="true">
1672 raphael 64
	  <arg line="-startupUrl http://${celhost}/war/Coel.html -whitelist http://www.tela-botanica.org -noserver -codeServerPort auto ${projectTestName}" />
1647 raphael 65
	  <classpath refid="gwt"/>
66
	</java>
67
  </target>
68
 
69
  <target name="live">
70
	<java classname="com.google.gwt.dev.DevMode" spawn="true" fork="true">
71
	  <arg line="-startupUrl http://${celhost}/war/Coel.html -whitelist http://www.tela-botanica.org -noserver -codeServerPort auto ${projectName}" />
72
	  <classpath refid="gwt"/>
73
	</java>
74
  </target>
75
 
76
</project>