Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 May 2001 22:12:06 +0300 (EEST)
From:      Maxim Sobolev <sobomax@mail-in.net>
To:        ports@FreeBSD.ORG
Subject:   Re: Java port behavior ideas
Message-ID:  <200105241912.f4OJC6S32618@mail.uic-in.net>
In-Reply-To: <3B0C3A63.3020908@quack.kfu.com>

next in thread | previous in thread | raw e-mail | index | archive | help
[thread redirected to java@FreeBSD.org]

On Wed, 23 May 2001 15:32:03 -0700, Nick Sayer wrote:
> We're starting to get a number of ports that consist simply of .jar =

> files. Each one is currently taking a different approach to how they are =

> installed and run and stuff.
> =

> I'd like to suggest some additional standards and port plumbing to =

> handle this.
> =

> 1. 'javavm' should take a flag that will do for "old" JREs what the -jar =

> flag does. Perhaps this should be a new script in the javavmwrapper port =

> called 'runjar' or something like that. Ideally, IMHO, 'javavm -jar =

> [jarfile]' should always be sufficient regardless of what JRE is in use. =

> Of course, I leave it to the javavmwrapper maintainer(s) to actually do =

> this. :-)

Ok, suggestion noted. I'll think about it.

> 2. .jar files should, IMHO, go in a common spot. ${PREFIX}/share/java =

> seems quite reasonable.

I'm not sure that it is technically possible. Many packages
require several levels of directories, thus could be confused
with such setup. Java porting rules already require that all
java ports go into ${RREFIX}/share/java/${PORTNAME}, which
IMO is sufficient to keep all things together.

> 3. IS_JAR=3Dyes would be a nice short-hand for having a RUN_DEPENDS of =

> javavmwrapper and a JRE and NO_BUILD=3Dyes.

Yes, but it would require ports/Mk/bsd.java.mk, which is not
there yet.

> 4. Most ambitously, it's conceivable that a method could be devised to =

> automatically make links from a javavmwrapper helper script to =

> ${PREFIX}/bin/jarname. The helper script would be argv[0] aware and =

> would do the equivalent of 'javavm -jar ${PREFIX}/share/java/$0.jar'.
> This could be used in port Makefiles in a manner similar to MANn=3D lines=
.

I would rather like to see the following binding:
bin/${PORTNAME} --> share/java/${PORTNAME}/${PORTNAME}.jar
(${PORTNAME}.jar could be a symlink to actual .jar if necessary)

> Just some ideas to kick around.

Your ideas have been added into my already large javavmwrapperNG
TODO list ;). Thank you for feedback!

-Maxim

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200105241912.f4OJC6S32618>