> -----Message d'origine-----
> De : Pierre Henry [mailto:phenry@;proconcept.ch]
> Envoy� : vendredi 8 novembre 2002 14:05
> � : Jetspeed Users List
> Objet : RE: build/deploy/war file and PSML database
>
>
> (...)
>
> How do you deploy a war using ant ?

In documentation of ant, go to "ant tasks", the "core tasks", and nearly all
important tasks are there (unwar in this case). Samples are clear, doc is
very easy to understand.
In my case I deploy the war, then overwrite original files with "copy" task,
rename some... and finally make a new war.

> So what will you have to do exactly in order to keep your
> changes if you
> change version (which files to keep and which to replace...)
> ? What are the
> advantages ?

If you change version, be sure that the files you were overwriting from
original jetspeed (xreg, properties, psml,are still the same between the
original jetspeed releases, else look for diff and add the important ones to
your files).
Advantages are, I think, cause I'm new using ant, that you just replace the
original war and it's all done (after checking for diff between versions of
jetspeed).

Moreover I saw something very interesting for overwriting default properties
file there :
http://jakarta.apache.org/jetspeed/site/override_props.html

I didn't try it but seems cool : you can overwrite properties existing in
turbineresources, jetspeed, torque, in a new one ! So you don't have to
always change the original properties file. If someone tried it succesfully,
please tell me what you think of it.

> And what if you have to rebuild ?

In my case, I simply replace the original jar of jetspeed by the newly
generated jar (still with ant) and then make a new war. It works :)
We can imagine a solution with multiple build file or a parameter to tell
which jar to use (oracle, mysql...).

Hope it helps,
Aurelien


--
To unsubscribe, e-mail:   <mailto:jetspeed-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:jetspeed-user-help@;jakarta.apache.org>

Reply via email to