From owner-freebsd-java@FreeBSD.ORG Fri Sep 12 06:13:42 2003 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5FDF516A4BF; Fri, 12 Sep 2003 06:13:42 -0700 (PDT) Received: from smtp1.euronet.nl (smtp1.euronet.nl [194.134.35.133]) by mx1.FreeBSD.org (Postfix) with ESMTP id 95F5E44011; Fri, 12 Sep 2003 06:13:39 -0700 (PDT) (envelope-from znerd@FreeBSD.org) Received: from zaphod.euronet.nl (zaphod.euronet.nl [194.134.168.213]) by smtp1.euronet.nl (Postfix) with ESMTP id A1396676EE; Fri, 12 Sep 2003 15:13:37 +0200 (MEST) From: Ernst de Haan To: java@FreeBSD.org, ports@FreeBSD.org Date: Fri, 12 Sep 2003 15:13:42 +0200 User-Agent: KMail/1.5.2 References: <200307211026.56111.znerd@FreeBSD.org> In-Reply-To: <200307211026.56111.znerd@FreeBSD.org> X-Address: Muiderstraat 1, Amsterdam, Netherlands MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200309121513.42040.znerd@FreeBSD.org> Subject: Re: Ports: Deploying WAR files X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Sep 2003 13:13:42 -0000 Any comments on this proposal? Ernst On maandag 21 juli 2003 10:26, Ernst de Haan wrote: > Folks, > > > Does anyone have any ideas on deploying WAR files from a port? Some > applications nowadays consist of a single WAR file. Should we not find a > standard way to deploy these applications in an existing servlet > container? > > We could do the following: > > 1) dedicate a single directory for WAR files, e.g.: > > /usr/local/share/java/webapps > > In this directory we could stick all WAR files that need to be deployed > automatically. > > 2) we could set a variable to point to that location, in bsd.java.mk: > > WAR_DIR=${LOCALBASE}/share/java/webapps > > 3) we could modify the servlet container ports (www/orion, www/tomcat41, > etc) to use ${WAR_DIR} as their primary location for WAR files. Either > with a configuration setting or with a symbolic link. > > 4) Then we could introduce a variable SERVLET_CONTAINER and set it to the > servlet container port to install when one is needed. By default it would > be set to TOMCAT, but it could also be overridden in /etc/make.conf, to > be set to ORION, for example. > > 5) Finally, we could specify that ports that install a WAR file must set > USE_SERVLET_CONTAINER to YES. Then they could use WAR_DIR in the port > Makefile to put the WAR file in. The ports system will add the > appropriate servlet container as a runtime dependency (to RUN_DEPENDS). > > > Biggest issue with this is probably that it changes the existing servlet > container ports. > > And thoughts on this? > > > Ernst > _______________________________________________ > freebsd-ports@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org"