[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Package for the proposed new java policy



Hallo Daniel,

* Daniel Bonniot wrote:
>Jan, thanks for the upload.
>> * moved examples into /usr/share/doc/new-java-policy/examples
>>   -> to use the examples, do a
>>   'export JAVA_CONFIG_DIR=/usr/share/doc/new-java-policy/examples'
>The manpage of findjava is not up to date with this. It does not mention
>the JAVA_CONFIG_DIR, but speaks about /etc/findjavarc, which is not
>installed by the package. Is this normal?

Yes: the above was actually introduced to make unit testing posible.
The only thing it does is set the search patrh for java-config files
(which is usually /usr/share/java-config) to a different location (in
this case teh examples location)

The findjavarc is used to set one JVM as the default one. See
findjavarc(5).

there is no findjavrc installed, as the I haven't had time to think
about a easy way to give the user a nice default/exapmple conffile.
Maybe I should add such a file in /etc, so that users can seen what
they can do...

>If I understand, the advantage of having a config dir is that each VM
>could install its own file there, right? So it should probably be
>something like /etc/findjava.d/

No, you install a java-config file for each JVM, java package and
ant-environment. The format for each is described in java-config-file(5)

The java config dir is simple there for debugging purpose. It will
probably be removed when I release a final version. Normally, you will
put the java-config file into /usr/share/java-config

>I also expected `findjava -h` to print some usage message, but it seems
>-h is unknown, and unknown options are silently ignored.

This isn't yet implemented. Basicly that was, because I wasn't sure,
how that could interfere with other things (think `findjava --all
tomcat4 -h` -> bad if instead of tomcats classpath now the help is
outputted).

I will add some help, which is then ouputted to stderr and exited
with an error code.

All information is in the manpage. It took more time to write the
manpages than to write the scritps... I hope they are as usefull :)

Jan
-- 
Jan Schulz                     jasc@gmx.net
     "Wer nicht fragt, bleibt dumm."



Reply to: