r3724 - in trunk/pollen-ui-struts2/src/main/assembly: . dist
Author: tchemit Date: 2012-10-05 19:01:51 +0200 (Fri, 05 Oct 2012) New Revision: 3724 Url: http://chorem.org/repositories/revision/pollen/3724 Log: fix embedded application package (no REAMD.txt included + improve launch scripts) Modified: trunk/pollen-ui-struts2/src/main/assembly/bin.xml trunk/pollen-ui-struts2/src/main/assembly/dist/README.txt trunk/pollen-ui-struts2/src/main/assembly/dist/pollen.bat trunk/pollen-ui-struts2/src/main/assembly/dist/pollen.sh Modified: trunk/pollen-ui-struts2/src/main/assembly/bin.xml =================================================================== --- trunk/pollen-ui-struts2/src/main/assembly/bin.xml 2012-10-05 14:12:32 UTC (rev 3723) +++ trunk/pollen-ui-struts2/src/main/assembly/bin.xml 2012-10-05 17:01:51 UTC (rev 3724) @@ -49,8 +49,10 @@ <fileSet> <directory>src/main/assembly/dist</directory> <outputDirectory>/</outputDirectory> + <filtered>true</filtered> <includes> <include>**/*.properties</include> + <include>**/*.txt</include> </includes> <excludes> <exclude>**/*.sh</exclude> Modified: trunk/pollen-ui-struts2/src/main/assembly/dist/README.txt =================================================================== --- trunk/pollen-ui-struts2/src/main/assembly/dist/README.txt 2012-10-05 14:12:32 UTC (rev 3723) +++ trunk/pollen-ui-struts2/src/main/assembly/dist/README.txt 2012-10-05 17:01:51 UTC (rev 3724) @@ -1,18 +1,48 @@ -=========================== Pollen - ${project.version} -=========================== + +First launch +------------ + +To start Pollen: + +- You need to have java installed on your computer (and that's all). +- Then just starts + +./pollen.start (under linux) + +or + +pollen.bat (under windows) + +Default configuration +--------------------- + +In embedded mode, here is the default configuration used: + +- data are stored in a h2 database located in directory data/db +- other resources (images) are stored in directory data/images +- configuration is stored in *pollen.properties* file + +To configure pollen +------------------- + +Just modify the *pollen.properties* file + +For more information about what can be done in this file consult +http://maven-site.chorem.org/pollen/configure.html +http://maven-site.chorem.org/pollen/application-config-report.html + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Premier démarrage ----------------- Pour démarrer Pollen : -- Il faut avoir une JDK d'installer sur la machine cible. +- Il faut avoir java d'installer sur la machine (et c'est tout!) +- Ensuite on lance -- la variable JDK_HOME doit être positionnée dans les variables d'environements. - -En suite on lance - ./pollen.start (sous linux) ou @@ -34,5 +64,6 @@ Il suffit de modifier la configuration dans le fichier pollen.properties -Pour plus d'infromations consulter le site : -http://maven-site.chorem.org/pollen/install.html +Pour plus d'informations consulter le site : +http://maven-site.chorem.org/pollen/fr/configure.html +http://maven-site.chorem.org/pollen/fr/application-config-report.html \ No newline at end of file Modified: trunk/pollen-ui-struts2/src/main/assembly/dist/pollen.bat =================================================================== --- trunk/pollen-ui-struts2/src/main/assembly/dist/pollen.bat 2012-10-05 14:12:32 UTC (rev 3723) +++ trunk/pollen-ui-struts2/src/main/assembly/dist/pollen.bat 2012-10-05 17:01:51 UTC (rev 3724) @@ -1,17 +1,28 @@ - @REM ---------------------------------------------------------------------------- @REM Pollen Start Up Batch script @REM ---------------------------------------------------------------------------- @echo off -set JAVA_COMMAND="java.exe" +java.exe -version -set POLLEN_OPTS="-Xms512m -Xmx1024m -Dpollen.log.dir=./logs" -echo java options used : %POLLEN_OPTS% +IF "%ERRORLEVEL%" == "0" GOTO launch -%JAVA_COMMAND% "%POLLEN_OPTS%" -jar pollen-${project.version}-embedded.war %1 %2 %3 %4 %5 %6 %7 %8 %9 +echo. +echo ERROR: "java.exe" not found. +echo Please install java on your computer. +echo. +GOTO error -pause -cmd /C exit /B %ERROR_CODE% +:error +SET ERROR_CODE=1 +GOTO end +:launch +set POLLEN_OPTS="-Xms512m -Xmx1024m -Dpollen.log.dir=./logs" +java.exe "%POLLEN_OPTS%" -jar pollen-${project.version}-embedded.war %1 %2 %3 %4 %5 %6 %7 %8 %9 +GOTO end + +:end +PAUSE +CMD /C exit /B %ERROR_CODE% Modified: trunk/pollen-ui-struts2/src/main/assembly/dist/pollen.sh =================================================================== --- trunk/pollen-ui-struts2/src/main/assembly/dist/pollen.sh 2012-10-05 14:12:32 UTC (rev 3723) +++ trunk/pollen-ui-struts2/src/main/assembly/dist/pollen.sh 2012-10-05 17:01:51 UTC (rev 3724) @@ -1,10 +1,11 @@ #!/bin/sh + # Test if java exists -java -version 2&> /dev/null +java -version -if [ "$?" = "1" ]; then - echo "Could not find java application, please add it into your PATH" +if [ ! $? -eq 0 ]; then + echo "Do not find java, please install java on your computer" exit 1 fi
participants (1)
-
tchemit@users.chorem.org