Subversion Repositories eFlore/Applications.coel

Rev

Rev 1647 | Rev 1672 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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