Subversion Repositories eFlore/Applications.coel

Rev

Rev 1682 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1682 Rev 1712
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.3.0-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="m4" input="war/config/apropos.js.m4" output="war/config/apropos.js">
-
 
33
	  <arg line="-D _JREST_SERVICES_PATH_=jrest/services -D _SUFFIX_='${confparams}'" />
-
 
34
	</exec>
33
  </target> 
35
  </target> 
34
 
36
 
35
  <target name="quick" depends="link-resources">
37
  <target name="quick" depends="link-resources">
36
	<java classname="com.google.gwt.dev.Compiler" fork="true">
38
	<java classname="com.google.gwt.dev.Compiler" fork="true">
37
	  <arg line="-style DETAILED -draftCompile ${projectTestName}" />
39
	  <arg line="-style DETAILED -draftCompile ${projectTestName}" />
38
	  <classpath refid="gwt"/>
40
	  <classpath refid="gwt"/>
39
	</java>
41
	</java>
40
  </target>
42
  </target>
41
 
43
 
42
  <!-- génération d'un fichier pour test:
44
  <!-- génération d'un fichier pour test:
43
       cp war/config/apropos{.test,}.js
-
 
44
       ant -Dapropos=war/config/apropos.test.js -Dconfigparams="Version de test" config -->
45
       ant -Dsuffix="Version de test" config -->
45
  <target name="config">
46
  <target name="config">
46
	<echo message="mise à jour de ${apropos}"/>
47
	<echo message="mise à jour de ${apropos}"/>
47
	<exec resolveexecutable="true" executable="Coel-config">
48
	<exec resolveexecutable="true" executable="m4" input="war/config/apropos.js.m4" output="war/config/apropos.js">
48
	  <arg line="${apropos} ${confparams}"/>
49
	  <arg line="-D _JREST_SERVICES_PATH_=jrest/services -D _SUFFIX_='${confparams}'" />
49
	</exec>
50
	</exec>
50
	<echo message="please do # rsync -avuin --no-o --no-g --exclude=WEB-INF --exclude=config  war/ ${desthost}:${destdir}/"/>
51
	<echo message="please do # rsync -avuin --no-o --no-g --exclude=WEB-INF --exclude=config  war/ ${desthost}:${destdir}/"/>
51
	<echo message="scp -p ${apropos} ${desthost}:${destdir}/config/apropos.js"/>
52
	<echo message="scp -p ${apropos} ${desthost}:${destdir}/config/apropos.js"/>
52
  </target> 
53
  </target> 
53
 
54
 
54
 
55
 
55
 
56
 
56
  <target name="debug" depends="link-resources">
57
  <target name="debug" depends="link-resources">
57
	<java classname="com.google.gwt.dev.Compiler" fork="true">
58
	<java classname="com.google.gwt.dev.Compiler" fork="true">
58
	  <arg line="-style DETAILED -logLevel DEBUG"/> <!-- TRACE -->
59
	  <arg line="-style DETAILED -logLevel DEBUG"/> <!-- TRACE -->
59
	  <arg value="${projectName}" />
60
	  <arg value="${projectName}" />
60
	  <classpath refid="gwt"/>
61
	  <classpath refid="gwt"/>
61
	</java>
62
	</java>
62
  </target> 
63
  </target> 
63
 
64
 
64
 
65
 
65
  <target name="testlive">
66
  <target name="testlive">
66
	<java classname="com.google.gwt.dev.DevMode" spawn="true" fork="true">
67
	<java classname="com.google.gwt.dev.DevMode" spawn="true" fork="true">
67
	  <arg line="-startupUrl http://${celhost}/war/Coel.html -whitelist http://www.tela-botanica.org -noserver -codeServerPort auto ${projectTestName}" />
68
	  <arg line="-startupUrl http://${celhost}/war/Coel.html -whitelist http://www.tela-botanica.org -noserver -codeServerPort auto ${projectTestName}" />
68
	  <classpath refid="gwt"/>
69
	  <classpath refid="gwt"/>
69
	</java>
70
	</java>
70
  </target> 
71
  </target> 
71
 
72
 
72
  <target name="live">
73
  <target name="live">
73
	<java classname="com.google.gwt.dev.DevMode" spawn="true" fork="true">
74
	<java classname="com.google.gwt.dev.DevMode" spawn="true" fork="true">
74
	  <arg line="-startupUrl http://${celhost}/war/Coel.html -whitelist http://www.tela-botanica.org -noserver -codeServerPort auto ${projectName}" />
75
	  <arg line="-startupUrl http://${celhost}/war/Coel.html -whitelist http://www.tela-botanica.org -noserver -codeServerPort auto ${projectName}" />
75
	  <classpath refid="gwt"/>
76
	  <classpath refid="gwt"/>
76
	</java>
77
	</java>
77
  </target> 
78
  </target> 
78
 
79
 
79
</project>
80
</project>