aboutsummaryrefslogtreecommitdiff
path: root/java/javavmwrapper/src
Commit message (Collapse)AuthorAgeFilesLines
* java/javavmwrapper: Match currently supported versionsGreg Lewis2024-02-043-81/+25
|
* java/javavmwrapper: Add support for 18 as a versionGreg Lewis2022-04-163-13/+20
|
* java/javavmwrapper: Add support for 17 as a versionGreg Lewis2021-11-243-12/+21
|
* all: Remove all other $FreeBSD keywords.Mathieu Arnold2021-04-068-17/+0
|
* Add support for 16 as a version specifierGreg Lewis2021-02-232-10/+15
| | | | Notes: svn path=/head/; revision=566368
* Add support for 15 as a versionGreg Lewis2020-09-073-10/+21
| | | | Notes: svn path=/head/; revision=547936
* Teach javavmwrapper about "14" as a version specifierGreg Lewis2020-03-211-7/+10
| | | | Notes: svn path=/head/; revision=528867
* * Teach javavmwrapper about "13" as a version specifierGreg Lewis2019-11-274-10/+17
| | | | | | | * Remove some white space while I'm here Notes: svn path=/head/; revision=518486
* Clean up after java/openjdk6 and java/openjdk6-jre removalJung-uk Kim2019-11-264-25/+10
| | | | | | | | | | | | | | | java/openjdk6 support was removed from Mk/bsd.java.mk (r512662) and java/openjdk6 and java/openjdk6-jre were removed from the ports tree (r512663). Now this patch completely removes remaining stuff from the ports tree. PR: 241953 (exp-run) Reviewed by: glewis Approved by: portmgr (antoine) Differential Revision: https://reviews.freebsd.org/D22342 Notes: svn path=/head/; revision=518482
* Fixes to pkg-install and version handlingGreg Lewis2019-08-101-6/+10
| | | | | | | | | | | | | | * In pkg-install, fix the exclusion of the bootstrap directories. [1] * In pkg-install, fix the find expression so it actually finds jdks if there are multiple present. [1] * When determining the VM version, be better about ensuring we end up with only a number. PR: 239705 [1] Submitted by: John Hein <jcfyecrayz@liamekaens.com> [1] Notes: svn path=/head/; revision=508503
* Sort VMs by version numericallyGreg Lewis2019-07-261-4/+6
| | | | | | | | | | | * VMs were sorted by VM version by lexicographically sorting the version as a string. Switch to numeric sorting now that there are versions like 10, 11, and 12 so that the intended sort order (most recent first) is preserved. * Bump minor version. Notes: svn path=/head/; revision=507376
* Update manual pagesGreg Lewis2019-07-262-20/+50
| | | | | | | | | | | | | | * Update currently supported version specifiers. * Update currently supported vendors. * Bump minor version. This is mostly based on the patch in PR 223304. PR: 223304 Submitted by: Tommy P <tommyhp2@gmail.com> Notes: svn path=/head/; revision=507367
* Support for newer Java versionsGreg Lewis2019-07-261-11/+32
| | | | | | | | | | | | | | | | | | | | | | * Switch the internal fallback logic (which is only run when the ports system is absent) to use modern Java versioning (e.g. 9 rather than 1.9) * Add in support for specifying 10+, 11+ and 12+ as requested versions. * Bump version to 2.7 Notes: * The fallback logic doesn't support the idea of a default version the way bsd.java.mk does. This was already the case. * The sorting of VMs in the configuration file doesn't numerically sort versions 10 and higher correctly yet. This will be addressed shortly. * Manual pages need updating. * The fallback logic is only used if bsd.java.mk is absent. This should be a no-op if it is present. PR: 223304 Notes: svn path=/head/; revision=507366
* . Prepare for JDK9 support.Greg Lewis2017-10-141-3/+6
| | | | Notes: svn path=/head/; revision=452075
* . Update internal fallback logic, including:Greg Lewis2014-04-121-39/+13
| | | | | | | | | | | | | . Remove support for diablo* and j* ports. . Add support for linux-oracle* ports. . Remove support for Java version 1.5. . Add support for Java version 1.8. . Add support for Oracle as a vendor. . Bump PORTVERSION. . Remove CONFLICTS for ports that no longer exist. Notes: svn path=/head/; revision=351127
* . Cope with legacy versions "1.5" (expands to 1.6) and "1.5+" (expands toGreg Lewis2012-12-111-7/+4
| | | | | | | | 1.6 1.7). . Remove freebsd and bsdjava as valid vendors. Notes: svn path=/head/; revision=308662
* . Make the version numbers consistent so they can be compared correctly.Greg Lewis2012-07-132-76/+63
| | | | | | | | | | | | | | | | | | | | | E.g. for jdk1.6.0 and openjdk6 will use '6' as the version. . Modify the preference order for Java VMs used by the internal fallback logic to reflect that openjdk is now the default Java VM rather than diablo. . Remove code for Java vendors that are no longer in the ports tree (e.g. blackdown, ibm). . Remove code for handling version numbers that are no longer present in the tree (e.g. only 1.5 and up is supported). . Note that openjdk is a native Java VM. . If the environment variable JAVAVM_FALLBACK_ONLY is set then only use the internal logic to select a Java VM, don't use the ports logic even if the ports collection is installed. [1] . Update the manual page for JAVAVM_FALLBACK_ONLY. . Bump version to 2.4. PR: 167799 [1] Notes: svn path=/head/; revision=300819
* . Minor man page tweaks:Greg Lewis2012-06-166-8/+11
| | | | | | | | . Remove references to ibm (we have no IBM JDKs in the tree) . Remove references to JDK 1.4.2 (only 1.5+ are in the tree) Notes: svn path=/head/; revision=299412
* Now that the Java 1.3 and Java 1.4 ports are deprecated and will expire soon,Mark Linimon2011-07-212-22/+4
| | | | | | | | | | | | | | | | | | | remove support for them from bsd.java.mk. As Jikes is not available in Java 1.5 or higher, remove it from bsd.java.mk too (suggested by hq@) and from the ports which used it (only occurences were USE_JIKES=no). Support for the Blackdown VM is also removed, as it is not available in Java 1.5 and higher. Also remove the mapping from Java 1.1-1.4 to Java 1.5+ in bsd.java.mk to detect old, broken ports; therefore bump the minimal value of JAVA_VERSION to 1.5. While here, replace static values of JAVA_VERSION in files/*.in by %%JAVA_VERSION%% . PR: ports/158969 Submitted by: rene Tested on: pointyhat-west -exp Notes: svn path=/head/; revision=278068
* Fix "realpath: : No such file or directory" error from the latest realpath.Jung-uk Kim2010-05-131-10/+10
| | | | | | | | Reported by: Mike Jakubik (mike dot jakubik at intertainservices dot com) Reviewed by: glewis (maintainer) Notes: svn path=/head/; revision=254280
* . Add support for JAVA_VERSION of 1.7.Greg Lewis2010-01-173-11/+23
| | | | | | | | | | . Note such support in the manual pages. . Correctly determine the Java version of the OpenJDK ports when bsd.java.mk isn't present. . Bump version to 2.3.4. Notes: svn path=/head/; revision=248038
* . Add support for openjdk6.Greg Lewis2009-05-223-11/+29
| | | | | | | . Sort vendor references. Notes: svn path=/head/; revision=234380
* Try jman(1) from ports/japanese/man instead of man(1) for japanese manualJung-uk Kim2008-04-301-2/+7
| | | | | | | | | | | pages if LANG is set to ja_JP.eucJP and the port is installed. Diablo packages contain japanese manual pages and jman seems to format them mostly fine. Reviewed by: glewis (maintainer) Notes: svn path=/head/; revision=212382
* - Add support for 1.6 VMs.Jung-uk Kim2008-04-281-7/+10
| | | | | | | | | | - Fix reversed vendors (bsdjava <-> freebsd). - Update port version to 2.3.1. Reviewed by: glewis (maintainer) Notes: svn path=/head/; revision=212174
* . Cross reference manvm(1).Greg Lewis2006-09-201-0/+1
| | | | Notes: svn path=/head/; revision=173479
* . Add manvm(1). This is similar to javavm(1), but allows one to view theGreg Lewis2006-06-122-170/+355
| | | | | | | | | | manual pages for the different VMs. [1] . Minor code clean ups (white space, redirection). PR: 93099 Notes: svn path=/head/; revision=165243
* . Introduce the JAVAVM_DRYRUN variable. If this is set, then javavm willGreg Lewis2006-06-082-4/+49
| | | | | | | | | | | | not invoke any Java programmes, but will instead print out what it would have invoked and some related settings. This work was inspired by the PR, but doesn't use its implementation. PR: 96050 Notes: svn path=/head/; revision=164848
* . ! -z -> -n for clarity.Greg Lewis2006-06-041-25/+25
| | | | | | | Suggested by: hq Notes: svn path=/head/; revision=164323
* . Allow the setting up of command line options to be passed to theGreg Lewis2006-06-033-8/+152
| | | | | | | | | invoked Java VM. Reviewed by: hq Notes: svn path=/head/; revision=164308
* . Avoid stomping on environment variables by prefixing variable names withGreg Lewis2006-04-261-123/+121
| | | | | | | | | | _JAVAVM_. The notable exception is JAVA_HOME, which is deliberately set by the wrapper. PR: 88048 Notes: svn path=/head/; revision=160533
* . Avoid an infinite loop by ignoring JAVA_HOME if its set to the locationGreg Lewis2005-11-021-7/+10
| | | | | | | | | | | of the wrapper script. I'm using a different patch than Herve submitted, but the idea is the same. . Bump PORTREVISION. Submitted by: hq Notes: svn path=/head/; revision=147050
* . Add a couple of comments.Greg Lewis2005-06-201-0/+14
| | | | | | | | . Kick unprivileged users out early in registervm/unregistervm to prevent double error messages. Notes: svn path=/head/; revision=137787
* . Check the user can read/write the configuration file and that it existsGreg Lewis2005-06-201-7/+10
| | | | | | | | | | | | | | | | | | | | before attempting to sort it when running checkvms. This prevents a double error message for an unprivileged user. . When asked to register a VM that is already registered, don't error. Print a warning that the VM is already registered and don't add it to the configuration file (but do check its links and sort the config file still). This prevents problems with 'make install -DFORCE_PKG_REGISTER' erroring out during the post-install stage for the JDK ports. Bump PORTREVISION for this change since it affects the various JDK ports. [2] Reported by: anholt, via hq [2] Notes: svn path=/head/; revision=137785
* . Try to clarify that the BUGS section is talking about the Java VMGreg Lewis2005-04-181-3/+4
| | | | | | | | | | selection procedure used when ${PORTSDIR}/Mk/bsd.java.mk isn't present. . Fix a typo (JAVA_PREFERRED_PORT -> JAVA_PREFERRED_PORTS). Pointed out by: hq Notes: svn path=/head/; revision=133600
* . A big mdoc fixup kindly provided by the mdoc police. Any problems shouldGreg Lewis2005-04-124-33/+72
| | | | | | | | | | be attributed to my merging of the mdoc fixes with some content changes I had made. Submitted by: simon Notes: svn path=/head/; revision=133176
* . Yet more clarification of how the selection of the Java VM can beGreg Lewis2005-04-121-1/+4
| | | | | | | different depending on whether bsd.java.mk exists on the system. Notes: svn path=/head/; revision=133159
* . Fix some sentence breaks.Greg Lewis2005-04-121-6/+28
| | | | | | | | | . Add some more details on how javavmwrapper selects the VM. [2] Suggested by: hq [2] Notes: svn path=/head/; revision=133155
* . Document that the environment variables can also be a space delimitedGreg Lewis2005-04-121-9/+13
| | | | | | | | | list of values, not just a single value. Pointed out by: hq Notes: svn path=/head/; revision=133152
* . Install manual pages for javavmwrapper.Greg Lewis2005-04-114-0/+303
| | | | | | | | | . Bump PORTREVISION. PR: 27075 Notes: svn path=/head/; revision=133092
* One more place to reflect existence of jdk 1.5.Alexey Zelkin2005-01-211-4/+7
| | | | | | | Bump PORTREVISION Notes: svn path=/head/; revision=126997
* . Some minor comment and formatting fixes (should have probably have beenGreg Lewis2004-12-071-7/+31
| | | | | | | | | | | done separately). . Much more stringent checks on VMs that we are trying to register. This prevents most bogus and circular registrations. [1] Suggested by: Josh Elsasser <josh@elsasser.org> [1] Notes: svn path=/head/; revision=123409
* . javavmwrapper uses PATH to make sure it gets the system version ofGreg Lewis2004-11-121-0/+4
| | | | | | | | | | | | | 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> Notes: svn path=/head/; revision=121460
* . Usher in javavmwrapper 2.0, a rewrite of the wrapper scripts designed toGreg Lewis2004-11-111-33/+436
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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> Notes: svn path=/head/; revision=121406
* . JAVALIBDIR is more appropriate than JAVAJARDIR now we have it.Greg Lewis2004-09-031-2/+2
| | | | Notes: svn path=/head/; revision=118047
* Add a classpath script.Dag-Erling Smørgrav2004-04-011-0/+11
| | | | Notes: svn path=/head/; revision=105874
* Long overdue fix: correctly process arguments with spaces.Maxim Sobolev2002-02-021-4/+3
| | | | Notes: svn path=/head/; revision=54146
* Revert previous fix - it was not properly thought out.Maxim Sobolev2001-12-031-2/+3
| | | | | | | Submitted by: ted@tednet.nl (Ted Lindgreen) Notes: svn path=/head/; revision=50967
* Use "$@" instead of "$*" to pass parameters to a subshell. This ensures thatMaxim Sobolev2001-11-261-3/+2
| | | | | | | | | | parameters with spaces are passed correctly. PR: 32191 Submitted by: Ben Suffolk <ben.suffolk@orange.co.uk> Notes: svn path=/head/; revision=50565
* Add "unset JAVA_HOME" to make javavmwrapper working with some brain damagedMaxim Sobolev2000-06-201-0/+2
| | | | | | | software (Adobe AcrobatViewer). Notes: svn path=/head/; revision=29708
* Fix typo.Maxim Sobolev2000-06-121-1/+1
| | | | Notes: svn path=/head/; revision=29545