Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 216014 - java-config-2 should provide an option to get arbitrary variables from package's package.env file
Summary: java-config-2 should provide an option to get arbitrary variables from packag...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 214785 270874
  Show dependency tree
 
Reported: 2008-04-03 09:46 UTC by Vlastimil Babka (Caster) (RETIRED)
Modified: 2009-05-23 11:07 UTC (History)
0 users

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 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2008-04-03 09:46:12 UTC
Currently it does for VM's package.env with the -g option.
See bug 214785 comment 5 why it's needed, although possible workaround using glj, it's not clean IMHO.
Comment 1 Alistair Bush (RETIRED) gentoo-dev 2009-04-21 08:50:54 UTC
How do we want to format the result.

just return the result or have it as a key=value

$ ./java-config-2 -q GENERATION --package=ant-core
2

$ ./java-config-2 -q GENERATION --package=ant-core
GENERATION=2
Comment 2 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2009-04-21 11:35:12 UTC
(In reply to comment #1)
> How do we want to format the result.
> 
> just return the result or have it as a key=value
> 
> $ ./java-config-2 -q GENERATION --package=ant-core
> 2

I'd say this one, as converting what you get to the second one one is easier than the other way around.
 
> $ ./java-config-2 -q GENERATION --package=ant-core
> GENERATION=2
> 

Comment 3 Alistair Bush (RETIRED) gentoo-dev 2009-04-24 10:14:20 UTC
Added support for this in svn.  Awaiting next release.
Comment 4 Alistair Bush (RETIRED) gentoo-dev 2009-05-23 11:07:44 UTC
See >=dev-java/java-config-2.1.8