public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] [rfc] Java; handling WAR files -- java-pkg_dowar()
@ 2003-05-01 19:33 Dylan Carlson
  0 siblings, 0 replies; only message in thread
From: Dylan Carlson @ 2003-05-01 19:33 UTC (permalink / raw
  To: gentoo-dev; +Cc: java

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Greetings,

AUDIENCE--
This RFC is targeted towards developers working with Java in web services, 
and is intended to address how packages that create WAR files will install 
them.

PROBLEM--
Up until about 10 minutes ago, I was writing a java-pkg_dowar() function to 
automatically install WAR files into any servlet engines which are 
currently installed on the machine.   However...  there's just too much 
undesireable behavior.  

For instance, if you have three servlet engines installed (Tomcat, Resin, 
Orion) but are only using one -- Orion -- java-pkg_dowar would install the 
.war file into all three of them, when you only want it in one place.  Or 
maybe you want to test the WAR in Tomcat, but normally run Orion.  It can 
get messy.

PROPOSED SOLUTION--
java-pkg_dowar() will be implemented in the manner described below.

1.  War files get installed to ${DESTTREE}/share/${PN}/webapps/.
2.  It will be a best practice to put a note in pkg_postinst() to state 
where the WAR file got installed to during the merge.
3.  It is up to the user to copy the WAR file into whatever engine they 
need it to go, and restart the engine if necessary.

Agreements, criticisms, alternate suggestions?

Cheers,
Dylan Carlson

Public Key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x708E165F
Key fingerprint = 3AEA DE38 FE42 15A6 C0E2 730E 3D04 BCC1 708E 165F
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+sXagPQS8wXCOFl8RAnd+AJ0ZAI6WTq7YIHkcO/mHVWzk0Nk3EwCfSMuu
qJ5+GWcagHu73n731u7H52k=
=PZYZ
-----END PGP SIGNATURE-----


--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-05-01 19:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-01 19:33 [gentoo-dev] [rfc] Java; handling WAR files -- java-pkg_dowar() Dylan Carlson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox