public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download: 
* [gentoo-dev] [rfc] Java; handling WAR files -- java-pkg_dowar()
@ 2003-05-01 19:33 99% Dylan Carlson
  0 siblings, 0 replies; 1+ results
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	[relevance 99%]

Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2003-05-01 19:33 99% [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