From owner-freebsd-java@FreeBSD.ORG Fri Feb 18 23:32:57 2005 Return-Path: Delivered-To: freebsd-java@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 569F416A4CE; Fri, 18 Feb 2005 23:32:57 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0E85B43D54; Fri, 18 Feb 2005 23:32:57 +0000 (GMT) (envelope-from hq@FreeBSD.org) Received: from freefall.freebsd.org (hq@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j1INWuNt052189; Fri, 18 Feb 2005 23:32:56 GMT (envelope-from hq@freefall.freebsd.org) Received: (from hq@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j1INWuaq052185; Fri, 18 Feb 2005 23:32:56 GMT (envelope-from hq) Date: Fri, 18 Feb 2005 23:32:56 GMT From: Herve Quiroz Message-Id: <200502182332.j1INWuaq052185@freefall.freebsd.org> To: nsayer@kfu.com, hq@FreeBSD.org, freebsd-java@FreeBSD.org Subject: Re: ports/56928: jce-aba port should install to $JAVA_HOME/jre/lib/ext 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, 18 Feb 2005 23:32:57 -0000 Synopsis: jce-aba port should install to $JAVA_HOME/jre/lib/ext State-Changed-From-To: suspended->feedback State-Changed-By: hq State-Changed-When: Fri Feb 18 23:21:26 GMT 2005 State-Changed-Why: IMHO, we should decide whether we implement something here or just close the PR. I would really like to hear opinions from the community. And here is my own proposal: add a new macro to install jar files (probably INSTALL_JAR) that would handle everything, from the installation of the JAR file in ${JAVAJARDIR}, to the output of a message to explain where the JAR file is and how to add it to the classpath -- using classpath(1) for example. In the Makefile: > do-install: > @${INSTALL_JAR} ${WRKSRC}/myapp.jar > @${INSTALL_JAR} ${WRKSRC}/myapp-core.jar > @${INSTALL_JAR} ${WRKSRC}/myapp-ext.jar Then, while installing the port: $ make install > [...] > >> Installing JAR file as /usr/local/share/java/classes/myapp.jar... [ DONE ] > >> Installing JAR file as /usr/local/share/java/classes/myapp-core.jar... [ DONE ] > >> Installing JAR file as /usr/local/share/java/classes/myapp-ext.jar... [ DONE ] > [...] > The port has installed several JAR files in /usr/local/share/java/classes > > To add these JAR files to your classpath, install java/javavmwrapper and use > classpath(1). I don't know if this is really worth the trouble of implementing it, documenting it, and upgrading Java ports, though... Herve http://www.freebsd.org/cgi/query-pr.cgi?pr=56928