You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by go...@osmosis.gr on 2003/12/03 14:51:39 UTC

cocoon project deploy

last day i had to send a cocoon based project to a friend without computer 
experience

i have pack the project with jetty container
the problem was not how to start cocoon (just a .bat file) but how to 
prepeare the computer  (windows XP) to accept a java application (cocoon)

i had to give step-by step instructions how to set up java, set JAVA_HOME 
and add java to path

all this are impossible from someone that want a final product 

from you experience is any way to automate all this procedure or to create 
an "Install Shield" that will 

run from a CD
-install JAVA
-set paths and variables
-install cocoon (on jetty maybe)
-create a shortcut :-)

any idea or hint?

-- stavros



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: cocoon project deploy

Posted by Patrick Hess <po...@pbone.biz>.
gounis@osmosis.gr wrote:

> from you experience is any way to automate all this procedure or to create 
> an "Install Shield" that will 
> 
> run from a CD
> -install JAVA
> -set paths and variables
> -install cocoon (on jetty maybe)
> -create a shortcut :-)

I prepared for a friend a CDROM including eclipse, tomcat, java, cocoon 
and several other components. Tomcat/cocoon integrated into eclipse, 
eclipse using shipped java. All I did was creating a C:\CocoonSDK 
directory and installing all stuff to this dir. All path are "hardcoded" 
to this dir if needed (e.g. path to java or eclipse workspace). 
Installation worked fine for this guy - he just had to copy the 
directory to his C: drive.

Not a good way to distribute software but a good way to give someone a 
jumpstart... :)

Hope this helps a bit...

Patrick



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: cocoon project deploy

Posted by Bertrand Delacretaz <bd...@apache.org>.
Le Mercredi, 3 déc 2003, à 14:51 Europe/Zurich, gounis@osmosis.gr a 
écrit :

> ...from you experience is any way to automate all this procedure or to 
> create
> an "Install Shield" that will
>
> run from a CD
> -install JAVA
> -set paths and variables
> -install cocoon (on jetty maybe)
> -create a shortcut :-)

Actually the JDK does not need to be "installed", copying the directory 
of a previous JDK installation works (but I don't know if it is ok 
re.licensing).

What I've been doing to move test installations between computers is a 
"standalone-demo" build, then you can prepare something like:

/cocoon-install
   start-cocoon.cmd
   /jdk1.3.1 (copied from an installed JDK)
   /cocoon
     /system (copied from build/standalone-demo)
     /webapp (copied from build/webapp)

Where start-cocoon.cmd contains:

@echo off
echo preparing to start Cocoon....

for %%i in (start-cocoon.cmd) do set WORK_DIR=%%~di%%~pi
echo WORK_DIR=%WORK_DIR%
set JAVA_HOME=%WORK_DIR%/jdk1.3.1
echo JAVA_HOME=%JAVA_HOME%

echo Now you should see "java version "1.3.1_07" followed by two more 
lines
%JAVA_HOME%\bin\java.exe -version
pause

echo Starting Cocoon...
cd cocoon\system
.\cocoon.bat servlet
pause


It is not a complete packaged install but that's a good start.

-Bertrand


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org