Subversion Repositories eFlore/Applications.coel

Rev

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

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