Subversion Repositories eFlore/Applications.coel

Rev

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