Subversion Repositories eFlore/Applications.coel

Compare Revisions

No changes between revisions

Ignore whitespace Rev 1552 → Rev 1553

/trunk/Coel-compile-dev
New file
0,0 → 1,13
#!/bin/sh
# Compilation de l'application pour le développement
APPDIR=`dirname $0`;
APPDIR_ABSOLU=`pwd`;
APPLI_NOM=`basename $APPDIR_ABSOLU | sed 's/^./\u&/'`
APPLI_DOMAINE="org.tela_botanica.$APPLI_NOM"
CLASSPATH=$(cat "$APPDIR/$APPLI_NOM-classpath" | sed -e :a -e '$!N;s/\n//;ta')
 
# Mise à jour de la config de l'application
sh $APPLI_NOM-config
 
# Lancement de la compilation
java -Xmx1024M -Xss256k -Xverify:none -cp $CLASSPATH com.google.gwt.dev.Compiler -localWorkers 2 -draftCompile -style PRETTY $APPLI_DOMAINE;
Property changes:
Added: svn:executable
+*
\ No newline at end of property
/trunk/Coel-config
New file
0,0 → 1,35
#!/bin/sh
# Mise à jour des fichiers de config de l'application
APPDIR=`dirname $0`;
APPDIR_ABSOLU=`pwd`;
APPLI_NOM=`basename $APPDIR_ABSOLU`
DOSSIER_SERVICES="$APPDIR/jrest"
DOSSIER_CONFIG="$APPDIR/war/config"
 
# Création du fichier config.js si nécessaire
if [ ! -f $DOSSIER_CONFIG/config.js ]; then
cp $DOSSIER_CONFIG/config.defaut.js $DOSSIER_CONFIG/config.js;
fi;
 
# Re-Création du fichier apropos.js systématique à partir du fichier defaut
cp $DOSSIER_CONFIG/apropos.defaut.js $DOSSIER_CONFIG/apropos.js;
 
# Mise en place de la date de compilation dans le fichier apropos.js
export DPIM_COMPILATION_DATE=`date`;
perl -e 'print "Date:".$ENV{DPIM_COMPILATION_DATE},"\n"'
perl -pi -e 's/dateHeureCompilation:"[^"]*"/dateHeureCompilation:"$ENV{DPIM_COMPILATION_DATE}"/g' $DOSSIER_CONFIG/apropos.js
 
# Mise en place de la version de Java utilisé pour la compilation de l'appli dans le fichier apropos.js
export DPIM_JAVA_VERSION=`java -version 2>&1 | sed -e :a -e '/$/N; s/\n/ - /; ta' | sed 's/"//g'`;
perl -e 'print "Java version:".$ENV{DPIM_JAVA_VERSION},"\n"'
perl -pi -e 's/versionJavaCompilation:"[^"]*"/versionJavaCompilation:"$ENV{DPIM_JAVA_VERSION}"/g' $DOSSIER_CONFIG/apropos.js
 
# Mise en place de la révision globale du svn de l'appli dans le fichier apropos.js
export DPIM_REVISION_GLOBAL=`svnversion -n`;
perl -e 'print "Révision globale:".$ENV{DPIM_REVISION_GLOBAL},"\n"'
perl -pi -e 's/revisionGlobale:"[^"]*"/revisionGlobale:"$ENV{DPIM_REVISION_GLOBAL}"/g' $DOSSIER_CONFIG/apropos.js
 
# Mise en place de la révision globale des Services web dans le fichier apropos.js
export DPIM_REVISION_GLOBAL_SERVICES=`svnversion -n $DOSSIER_SERVICES`;
perl -e 'print "Révision globale Services web :".$ENV{DPIM_REVISION_GLOBAL_SERVICES},"\n"'
perl -pi -e 's/revisionGlobaleServices:"[^"]*"/revisionGlobaleServices:"$ENV{DPIM_REVISION_GLOBAL_SERVICES}"/g' $DOSSIER_CONFIG/apropos.js
Property changes:
Added: svn:executable
+*
\ No newline at end of property
/trunk/Coel-shell
1,10 → 1,14
#!/bin/sh
# Lancement du mode développement de l'application
APPDIR=`dirname $0`;
APPLI_NOM="Coel"
APPDIR_ABSOLU=`pwd`;
NOM_DOSSIER_COURANT=`basename $APPDIR_ABSOLU`
APPLI_NOM=`basename $APPDIR_ABSOLU | sed 's/^./\u&/'`
APPLI_DOMAINE="org.tela_botanica.$APPLI_NOM"
APPLI_LIEN="http://localhost/$NOM_DOSSIER_COURANT/war/$APPLI_NOM.html"
APPLI_LIEN="http://localhost/$APPLI_NOM/war/$APPLI_NOM.html"
CLASSPATH=$(cat "$APPDIR_ABSOLU/$APPLI_NOM-classpath" | sed -e :a -e '$!N;s/\n//;ta')
 
# Mise à jour de la config de l'application
sh $APPLI_NOM-config
 
# Lancement du mode hosted
java -Xmx1024M -cp "$APPDIR/src:$APPDIR/bin:/opt/gwt-2.0.4/gwt-user.jar:/opt/gwt-2.0.4/gwt-dev.jar:/opt/gxt-2.1.1/gxt.jar" com.google.gwt.dev.DevMode -whitelist http://www.tela-botanica.org -noserver -port 80 -startupUrl $APPLI_LIEN $APPLI_DOMAINE;
java -Xmx1024M -cp $CLASSPATH com.google.gwt.dev.DevMode -whitelist http://www.tela-botanica.org -noserver -port 80 -startupUrl $APPLI_LIEN $APPLI_DOMAINE;
/trunk/.classpath
4,6 → 4,7
<classpathentry kind="lib" path="/opt/gwt-2.0.3/gwt-user.jar"/>
<classpathentry kind="lib" path="/opt/gwt-2.0.3/gwt-dev.jar"/>
<classpathentry kind="lib" path="/opt/gxt-2.1.1/gxt.jar"/>
<classpathentry kind="lib" path="lib/gwt-log-3.0.2.jar"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con" path="com.google.gwt.eclipse.core.GWT_CONTAINER"/>
<classpathentry kind="output" path="war/WEB-INF/classes"/>
/trunk/Coel-classpath
New file
0,0 → 1,6
./src:
./war/WEB-INF/classes:
/opt/gwt-2.0.4/gwt-user.jar:
/opt/gwt-2.0.4/gwt-dev.jar:
/opt/gxt-2.1.1/gxt.jar:
./lib/gwt-log-3.0.2.jar
/trunk/Coel-debug
1,16 → 1,14
#!/bin/sh
# Lancement de l'application en mode debug
APPDIR=`dirname $0`;
APPLI_NOM="Coel"
APPDIR_ABSOLU=`pwd`;
NOM_DOSSIER_COURANT=`basename $APPDIR_ABSOLU`
APPLI_DOMAINE="org.tela_botanica.$APPLI_NOM"
APPLI_LIEN="org.tela_botanica.$NOM_DOSSIER_COURANT"
APPLI_NOM=`basename $APPDIR_ABSOLU | sed 's/^./\u&/'`
APPLI_DOMAINE="org.clapas.$APPLI_NOM"
APPLI_LIEN = http://localhost/$APPLI_NOM/war/$APPLI_NOM.html
CLASSPATH=$(cat "$APPDIR/$APPLI_NOM-classpath" | sed -e :a -e '$!N;s/\n//;ta')
 
# Création d'un lien symbolique si nécessaire.
if [ ! -h $APPDIR/../$APPLI_LIEN ]; then
cd $APPDIR/..;
ln -s $APPDIR_ABSOLU/war $APPLI_LIEN;
fi;
# Mise à jour de la config de l'application
sh $APPLI_NOM-config
 
# Lancement du mode débug
java -Xmx1024M -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,address=3408,suspend=y -cp "$APPDIR/src:$APPDIR/bin:/opt/gwt-2.0.4/gwt-user.jar:/opt/gwt-2.0.4/gwt-dev.jar:/opt/gxt-2.1.1/gxt.jar" com.google.gwt.dev.DevMode -noserver -port 80 -startupUrl http://localhost/$APPLI_LIEN/$APPLI_NOM.html $APPLI_DOMAINE;
java -Xmx1024M -Xdebug -Xnoagent -cp $CLASSPATH -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,address=3408,suspend=y com.google.gwt.dev.DevMode -noserver -port 80 -startupUrl $APPLI_LIEN $APPLI_DOMAINE;
/trunk/lib/gwt-log-3.0.2.jar
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/trunk/lib/gwt-log-3.0.2.jar
New file
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/trunk/mise_en_ligne.sh
4,15 → 4,16
# Auteur : Jean-Pascal Milcent <jpm@tela-botanica.org> (translate bat file to shell script)
# License : GPL v3
# Création : 11 janvier 2010
# Version: 0.1
# Version: 0.2
# 2010-09-13 - Ajout de la création du nom de l'appli automatique.
# $Id$
########################################################################################################################
# Constante
NBREPARAM=$#
APPDIR=`dirname $0`;
APPDIR_ABSOLU=`pwd`;
NBREPARAM=$#
APPLI_NOM="Coel"
FICHIER_COMPILATION="$APPLI_NOM-compile"
APPLI_NOM=`basename $APPDIR_ABSOLU | sed 's/^./\u&/'`
FICHIER_COMPILATION="$APPLI_NOM-compile-prod"
DOSSIER_COMPILATION="$APPDIR/war"
DOSSIER_DESTINATION="/www/eflore/coel"
DOSSIER_JREST="$APPDIR/jrest"
/trunk/Coel-compile-prod
New file
0,0 → 1,13
#!/bin/sh
# Compilation de l'application définitive
APPDIR=`dirname $0`;
APPDIR_ABSOLU=`pwd`;
APPLI_NOM=`basename $APPDIR_ABSOLU | sed 's/^./\u&/'`
APPLI_DOMAINE="org.tela_botanica.$APPLI_NOM"
CLASSPATH=$(cat "$APPDIR/$APPLI_NOM-classpath" | sed -e :a -e '$!N;s/\n//;ta')
 
# Mise à jour de la config de l'application
sh $APPLI_NOM-config
 
# Lancement de la compilation
java -Xmx1024M -Xss256k -Xverify:none -cp $CLASSPATH com.google.gwt.dev.Compiler -localWorkers 2 $APPLI_DOMAINE;
Property changes:
Added: svn:executable
+*
\ No newline at end of property