Commit graph

15 commits

Author SHA1 Message Date
Greg Lewis
59fc5151e6 . javavmwrapper uses PATH to make sure it gets the system version of
utilities.  Unfortunately this overrides any PATH that may have been
  set by the user and hence affects the ability of java to execute
  external programmes.  So, save the PATH before setting it and then
  restore it immediately before executing java.
. Bump PORTREVISION for this fix.

Reported by:	Christian Laursen <xi@borderworlds.dk>
2004-11-12 16:12:48 +00:00
Greg Lewis
280df4e4ce . Usher in javavmwrapper 2.0, a rewrite of the wrapper scripts designed to
allow the simple use of multiple VMs.  Brief detail of the main changes:
  . When a VM is registered, symbolic links for its executables are
    created in ${LOCALBASE}/bin.  This allows people to just type
    'java', 'javac', etc. without having to add the VM installation
    directory to their PATH.
  . The actual 'java' that is executed via one of these symlinks is
    determined by the order of the (sorted) configuration file
    ${LOCALBASE}/etc/javavms and by the environment variables
    JAVA_VERSION, JAVA_OS and JAVA_VENDOR which function to select
    a VM as they do in the ports framework.
. There is a new command, checkvms, to sanity check the configuration
  and symlinks.
. The "javavm" executable is currently retained in its original capacity
  as a synonym for Java for backward compatibility.  However, its use
  is deprecated.
. Temporarily set MAINTAINER to myself to make monitoring any initial
  bug reports easier.  The intent is to convert it to java@ at a later
  date.

This is built on the ideas of znerd, hq and Shelton C. Johnson Jr., with
hq and Shelton contributing code and reviews.

PR:		27079, 39080
Reviewed by:	hq, Shelton C. Johnson Jr. <shelton_c_j@yahoo.com>
2004-11-11 19:17:37 +00:00
Greg Lewis
6a5d768670 . JAVALIBDIR is more appropriate than JAVAJARDIR now we have it. 2004-09-03 16:23:01 +00:00
Dag-Erling Smørgrav
d811cc16ac Add a classpath script. 2004-04-01 13:40:14 +00:00
Maxim Sobolev
10588346d3 Let be hohest: I really don't have a time now to properly maintain all
these great pieces of software, so that let others with more free time
to take over them.
2003-07-29 09:12:37 +00:00
Ade Lovett
7e52725f2a Clear moonlight beckons.
Requiem mors pacem pkg-comment,
And be calm ports tree.

E Nomini Patri, E Fili, E Spiritu Sancti.
2003-03-07 06:14:21 +00:00
Maxim Sobolev
1773476e67 Long overdue fix: correctly process arguments with spaces. 2002-02-02 22:24:20 +00:00
Maxim Sobolev
32a641962e Revert previous fix - it was not properly thought out.
Submitted by:	ted@tednet.nl (Ted Lindgreen)
2001-12-03 14:43:07 +00:00
Maxim Sobolev
3d90271529 Use "$@" instead of "$*" to pass parameters to a subshell. This ensures that
parameters with spaces are passed correctly.

PR:		32191
Submitted by:	Ben Suffolk <ben.suffolk@orange.co.uk>
2001-11-26 13:00:50 +00:00
Roger Hardiman
c996aa60be Fix typo 2001-01-19 14:24:30 +00:00
Maxim Sobolev
10e2f8893d Whitespace-only:
Make indentation uniform across my ports.
2000-11-01 15:51:11 +00:00
Maxim Sobolev
ceec80fd32 Add "unset JAVA_HOME" to make javavmwrapper working with some brain damaged
software (Adobe AcrobatViewer).
2000-06-20 07:40:20 +00:00
Maxim Sobolev
0f07eca387 Fix typo. 2000-06-12 13:37:28 +00:00
Maxim Sobolev
54240bf8a1 Handle comments in all places. 2000-06-12 12:43:43 +00:00
Maxim Sobolev
a69acf6529 Initial import of javavmwrapper - a simple shell script which would allow
Java-based ports to use any of the Java Virtual Machines installed on the
system.
2000-06-12 09:42:51 +00:00