Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 33329 - java-config should have a "print" feature
Summary: java-config should have a "print" feature
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: Jason A. Mobarak (RETIRED)
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 31468
  Show dependency tree
 
Reported: 2003-11-12 13:22 UTC by Maik Schreiber
Modified: 2004-01-18 13:42 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maik Schreiber 2003-11-12 13:22:57 UTC
Please add a "print" feature to java-config. The parameter to the "print" option would be the ID of one of the installed JVMs.

The output should be something like this:

JAVA_HOME=/opt/sun-jdk....
...

This way, the output can be eval'ed into scripts setting up an appropriate environment to run a program under a specific JVM. For example, I could setup my system to use 1.4.2_02 as default, but specific programs could use 1.3.
Comment 1 Jason A. Mobarak (RETIRED) gentoo-dev 2003-12-29 01:45:50 UTC
I'll add this to the next release of java-config. Idea for fixing it is to generate an env.d entry and output it to stdout.
Comment 2 Jason A. Mobarak (RETIRED) gentoo-dev 2004-01-01 04:40:37 UTC
This has been added to the main branch of java-config. I need to test the code bit more then it'll be release as a hardmasked version.
Comment 3 Jason A. Mobarak (RETIRED) gentoo-dev 2004-01-02 13:17:58 UTC
In portage versions 1.1.8 and 1.2.0 .
Comment 4 Jason A. Mobarak (RETIRED) gentoo-dev 2004-01-02 13:22:39 UTC
I lied, --print is only in 1.2.0, is uses a lot of new code, so it might be unstable.
Comment 5 Adrian Almenar 2004-01-07 08:17:45 UTC
The man page was updated to have this, but java-config --help doesnt lists it (Using 1.2.1).
Comment 6 Jason A. Mobarak (RETIRED) gentoo-dev 2004-01-07 09:47:01 UTC
It works for me.
---

jmob@shamash [jmob] $ ACCEPT_KEYWORDS=~x86 sudo emerge "=java-config-1.2.1"
Calculating dependencies ...done!
>>> emerge (1 of 1) dev-java/java-config-1.2.1 to /
[...]
>>> dev-java/java-config-1.2.1 merged.
[...]
jmob@shamash [jmob] $ java-config --help
Usage: java-config [ OPTIONS ]
Options:
[...] 
 << -L --list-available-vms >> 
    List all available virtual machines 
 << -P arg1[,arg2,...] --print=arg1[,arg2,...] >> 
    Print the environment information for a specified VM 
 << -S argument --set-system-vm=argument >> 
    Set the VM for the entire system 
[...]
Comment 7 Jason A. Mobarak (RETIRED) gentoo-dev 2004-01-18 13:42:54 UTC
This is in the 1.2.x series, which is at version 1.2.4 right, which is in x86.