Subversion Repositories eFlore/Applications.cel

Compare Revisions

Ignore whitespace Rev 3060 → Rev 3062

//tags/v2.27-secateur/README
New file
0,0 → 1,40
Quelques recommandations :
 
- Garder les noms de bibliotheques complets (gwtext-2.0.5, gwtextux-0.3 ....) pour pallier tout problème de compatibilité entre version
- En cas de message d'erreurs relatif à SwfUploadPanel lors de la compilation, supprimer de gwtextux tout ce qui concerne /com/gwtextux/client/widgets/upload/SwfUploadPanel, mc le fait très bien, à la volée
Mise en prod web : copier :
*.cache.html
cel2.html
nocache.js
 
Mais encore :
 
# "appli" est le nom utilisé, car plus compréhensible
$ ln -s war appli
 
# ajouté le fichier framework.php dans galerie, ainsi qu'un .htaccess (AddDefaultCharset UTF-8)
$ cp -a framework.php .htaccess galerie/
 
# de même pour scripts/
$ cp -a framework.php scripts/
 
# configuration:
galerie/configurations/config.ini
appli/config.js
scripts/configurations/config.ini
widget/modules/carto/config.ini
widget/modules/cartopoint/config.ini
widget/modules/observation/config.ini
widget/modules/photo/config.ini
widget/widget.ini.php
 
# placer le gwt compilé dans:
appli/org.tela_botanica.cel2/
 
# créer les répertoires:
$ mkdir -p jrest/{logs,tmp} cache/images
 
# droits:
$ chown -R telabotap.users xxx
//tags/v2.27-secateur/build.xml
New file
0,0 → 1,94
<project name="cel" xmlns:artifact="urn:maven-artifact-ant" basedir=".">
 
<property file="local.properties" />
<property file="build.properties"/>
 
<target name="generate-vocabulary">
<java classname="com.google.gwt.i18n.tools.I18NSync" fork="true">
<arg value="org.tela_botanica.client.i18n.VocabulaireMetadonnees" />
<classpath>
<path>
<pathelement location="${gwt-path}/gwt-user.jar" />
<pathelement location="${gwt-path}/gwt-dev.jar" />
<pathelement location="src" />
</path>
</classpath>
</java>
</target>
 
<target name="generate-messages">
<java classname="com.google.gwt.i18n.tools.I18NSync" fork="true">
<arg value="org.tela_botanica.client.i18n.Messages" />
<classpath>
<path>
<pathelement location="${gwt-path}/gwt-user.jar" />
<pathelement location="${gwt-path}/gwt-dev.jar" />
<pathelement location="src" />
</path>
</classpath>
</java>
</target>
 
<path id="gwt">
<fileset includes="*.jar" dir="${gwt-path}" />
<fileset includes="*.jar" dir="${gwt-maps-path}" />
<fileset includes="gwtext.jar" dir="${gwt-ext-path}" />
<fileset includes="*.jar" dir="${gwt-ext-ux-path}" />
<pathelement location="src" />
</path>
 
<target name="link-resources">
<mkdir dir="${ext-js-dest-dir}"/>
<mkdir dir="${ext-js-dest-dir}/resources"/>
<mkdir dir="${ext-js-dest-dir}/adapter/ext"/>
<copy file="${ext-js-dir}/ext-all.js" todir="${ext-js-dest-dir}"/>
<copy todir="${ext-js-dest-dir}/resources">
<fileset dir="${ext-js-dir}/resources"/>
</copy>
<copy file="${ext-js-dir}/adapter/ext/ext-base.js" todir="${ext-js-dest-dir}/adapter/ext"/>
<copy todir="${js-dest-dir}/UploadDialog" overwrite="true">
<fileset dir="vendors/gwt-ext-ux/UploadDialog"/>
</copy>
</target>
 
<!-- Affiche toutes les propriétés -->
<target name="test"><echoproperties/></target> <!-- sometimes useful -->
 
<!-- Compile l'application pour la prod -->
<target name="compile">
<java classname="com.google.gwt.dev.Compiler" fork="true">
<arg line="-localWorkers 2 -style DETAILED ${projectName}"/>
<classpath refid="gwt"/>
</java>
<antcall target="link-resources"></antcall>
</target>
 
<!-- Compilation rapide (draft) -->
<target name="compile-quick">
<java classname="com.google.gwt.dev.Compiler" fork="true">
<arg line="-style DETAILED -draftCompile ${projectTestName}" />
<classpath refid="gwt"/>
</java>
<antcall target="link-resources"></antcall>
</target>
 
<!-- Compilation debug (avec plein de logs) -->
<target name="compile-debug">
<java classname="com.google.gwt.dev.Compiler" fork="true">
<arg line="-style DETAILED -logLevel DEBUG"/>
<arg value="${projectName}" />
<classpath refid="gwt"/>
</java>
<antcall target="link-resources"></antcall>
</target>
 
<!-- Lance l'application en mode hosted -->
<target name="launch-hosted">
<java classname="com.google.gwt.dev.DevMode" spawn="true" fork="true">
<arg line="-startupUrl http://${cel-host}/${cel-base-url} -noserver -codeServerPort auto ${projectName}" />
<classpath refid="gwt"/>
</java>
</target>
 
</project>
//tags/v2.27-secateur/TODO
New file
0,0 → 1,7
GestionObservation.php: amélioration du query-builder
GestionObservation.php/cel_obs schéma: TRIGGER pour date_modification
plutôt que gestion en PHP
CelValidationObservation.php: pose la question de la validation des
données par rapport à l'indépendance vis-à-vis des référentiels
nomenclaturaux et taxonomiques (tables bdtfx/bdtxa/isfan/apd...)