aboutsummaryrefslogtreecommitdiff
path: root/java/javavmwrapper
Commit message (Collapse)AuthorAgeFilesLines
* Fix ports that confused the meaning of WRKDIR and WRKSRC.Mathieu Arnold2015-11-051-7/+7
| | | | | | | | | | | PR: 204056 Submitted by: mat Reviewed by: bapt Sponsored by: Absolight Differential Revision: https://reviews.freebsd.org/D2735 Notes: svn path=/head/; revision=400848
* . Update internal fallback logic, including:Greg Lewis2014-04-122-43/+14
| | | | | | | | | | | | | . 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
* Support stageBaptiste Daroussin2014-02-062-26/+18
| | | | Notes: svn path=/head/; revision=342945
* Add NO_STAGE all over the place in preparation for the staging support (cat: ↵Baptiste Daroussin2013-09-201-3/+2
| | | | | | | java) Notes: svn path=/head/; revision=327738
* . Cope with legacy versions "1.5" (expands to 1.6) and "1.5+" (expands toGreg Lewis2012-12-112-8/+5
| | | | | | | | 1.6 1.7). . Remove freebsd and bsdjava as valid vendors. Notes: svn path=/head/; revision=308662
* Fix deinstallation script for 7.x. -samefile option for find(1) does notJung-uk Kim2012-11-022-4/+12
| | | | | | | | | | exist there. Reviewed by: glewis (maintainer) Feature safe: yes Notes: svn path=/head/; revision=306872
* Shut up noise when there is no JDK/JRE to register.Jung-uk Kim2012-10-311-1/+1
| | | | | | | | Reviewed by: glewis (maintainer) Feature safe: yes Notes: svn path=/head/; revision=306767
* - Ignore bootstrap-openjdk when we automatically register existing JVMs.Jung-uk Kim2012-10-283-28/+19
| | | | | | | | | | | - Make sure to destroy all symlinks pointing to ${PREFIX}/bin/javavm and ${PREFIX}/etc/javavms when we deinstall the package. Reviewed by: glewis (maintainer) Feature safe: yes Notes: svn path=/head/; revision=306536
* . Make the version numbers consistent so they can be compared correctly.Greg Lewis2012-07-133-77/+64
| | | | | | | | | | | | | | | | | | | | | 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-132-11/+11
| | | | | | | | 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-174-12/+24
| | | | | | | | | | . 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-224-12/+30
| | | | | | | . 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-302-3/+8
| | | | | | | | | | | 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-282-8/+11
| | | | | | | | | | - 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
* . The new Diablo JDK release doesn't need -XX:+UseMembar.Greg Lewis2006-07-051-2/+0
| | | | Notes: svn path=/head/; revision=167008
* . Add manvm(1). This is similar to javavm(1), but allows one to view theGreg Lewis2006-06-124-175/+362
| | | | | | | | | | 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-083-6/+50
| | | | | | | | | | | | 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
* . Revert previous commit. It was my recollection that javac needed theGreg Lewis2006-06-072-2/+1
| | | | | | | | | | | flags when being used to bootstrap the jdk15 port, and this was confirmed by somebody else. However, javac doesn't seem to be happy with it so turn it back off. Submitted by: hq Notes: svn path=/head/; revision=164752
* . Diablo's javac also needs -XX:+UseMembar.Greg Lewis2006-06-072-1/+2
| | | | Notes: svn path=/head/; revision=164664
* . Restrict the -XX:+UseMembar option to the java(1) programme to prevent itGreg Lewis2006-06-062-1/+2
| | | | | | | | | | | | causing problems for programmes such as jar(1). I actually believe it is needed by some of the other programmes, but we'll add it as needed. . Bump PORTREVISION for this change. PR: 98586 Submitted by: Achilleas Mantzios <achill@matrix.gatewaynet.com> Notes: svn path=/head/; revision=164616
* . ! -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-038-13/+236
| | | | | | | | | invoked Java VM. Reviewed by: hq Notes: svn path=/head/; revision=164308
* . Bump PORTREVISION for the previous fix.Greg Lewis2006-04-271-1/+1
| | | | | | | Suggested by: hq Notes: svn path=/head/; revision=160601
* . 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-022-8/+11
| | | | | | | | | | | 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-202-8/+11
| | | | | | | | | | | | | | | | | | | | 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
* . Update description.Greg Lewis2005-04-251-2/+4
| | | | | | | Suggested by: hq Notes: svn path=/head/; revision=134145
* . 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-122-6/+29
| | | | | | | | | . 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-115-1/+318
| | | | | | | | | . Bump PORTREVISION. PR: 27075 Notes: svn path=/head/; revision=133092
* . Ignore errors from the call to registervm, otherwise one sees a wholeGreg Lewis2005-04-111-2/+2
| | | | | | | slew of spurious errors when upgrading the port. Notes: svn path=/head/; revision=133091
* . Separate standard variables from variables local to this Makefile.Greg Lewis2005-04-111-1/+2
| | | | Notes: svn path=/head/; revision=133085
* One more place to reflect existence of jdk 1.5.Alexey Zelkin2005-01-212-5/+8
| | | | | | | Bump PORTREVISION Notes: svn path=/head/; revision=126997
* Take into account the '-devel' package name suffix when registering CONFLICTSHerve Quiroz2004-12-241-1/+1
| | | | | | | | | with java/kaffe-devel Pointy hat to: me Notes: svn path=/head/; revision=125077
* - Register CONFLICTS with java/kaffe and java/kaffe-develHerve Quiroz2004-12-241-0/+2
| | | | Notes: svn path=/head/; revision=125074
* . Move pkg-install to files/pkg-install.in since it is modified before use.Greg Lewis2004-12-162-2/+3
| | | | | | | | | | This also fixes a problem that when being modified it wasn't specified by absolute path. Reported by: Robert Backhaus <robbak@robbak.com> Notes: svn path=/head/; revision=124218
* . Run the pkg-install script correctly.Greg Lewis2004-12-071-2/+2
| | | | | | | | . Bump PORTREVISION for this change and the previous change to javavmwrapper itself. Notes: svn path=/head/; revision=123410
* . 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-122-0/+5
| | | | | | | | | | | | | 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-115-36/+512
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-032-4/+4
| | | | Notes: svn path=/head/; revision=118047
* Add a classpath script.Dag-Erling Smørgrav2004-04-013-3/+23
| | | | Notes: svn path=/head/; revision=105874
* Let be hohest: I really don't have a time now to properly maintain allMaxim Sobolev2003-07-291-1/+1
| | | | | | | | these great pieces of software, so that let others with more free time to take over them. Notes: svn path=/head/; revision=85841