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"/>
|
1680 |
raphael |
11 |
<fileset includes="gxt-2.3.0-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 |
|
1682 |
raphael |
42 |
<!-- 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 -->
|
1663 |
raphael |
45 |
<target name="config">
|
|
|
46 |
<echo message="mise à jour de ${apropos}"/>
|
|
|
47 |
<exec resolveexecutable="true" executable="Coel-config">
|
|
|
48 |
<arg line="${apropos} ${confparams}"/>
|
|
|
49 |
</exec>
|
1682 |
raphael |
50 |
<echo message="please do # rsync -avuin --no-o --no-g --exclude=WEB-INF --exclude=config war/ ${desthost}:${destdir}/"/>
|
1675 |
raphael |
51 |
<echo message="scp -p ${apropos} ${desthost}:${destdir}/config/apropos.js"/>
|
1647 |
raphael |
52 |
</target>
|
|
|
53 |
|
|
|
54 |
|
1663 |
raphael |
55 |
|
1647 |
raphael |
56 |
<target name="debug" depends="link-resources">
|
|
|
57 |
<java classname="com.google.gwt.dev.Compiler" fork="true">
|
|
|
58 |
<arg line="-style DETAILED -logLevel DEBUG"/> <!-- TRACE -->
|
|
|
59 |
<arg value="${projectName}" />
|
|
|
60 |
<classpath refid="gwt"/>
|
|
|
61 |
</java>
|
|
|
62 |
</target>
|
|
|
63 |
|
|
|
64 |
|
|
|
65 |
<target name="testlive">
|
|
|
66 |
<java classname="com.google.gwt.dev.DevMode" spawn="true" fork="true">
|
1672 |
raphael |
67 |
<arg line="-startupUrl http://${celhost}/war/Coel.html -whitelist http://www.tela-botanica.org -noserver -codeServerPort auto ${projectTestName}" />
|
1647 |
raphael |
68 |
<classpath refid="gwt"/>
|
|
|
69 |
</java>
|
|
|
70 |
</target>
|
|
|
71 |
|
|
|
72 |
<target name="live">
|
|
|
73 |
<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 |
<classpath refid="gwt"/>
|
|
|
76 |
</java>
|
|
|
77 |
</target>
|
|
|
78 |
|
|
|
79 |
</project>
|