Re: Java wrappers and java-common

2008-01-12 Thread Eric Lavarde
Hi, Vincent Fourmond wrote: - debug output of java version found, and how the java command was found (it helps a great lot when users ask for help and have e.g. a dangling environment variable). When DEBUG_WRAPPERS is set, the JAVA_HOME found is written. Thanks, my point was also to call jav

Re: Java wrappers and java-common

2008-01-07 Thread Vincent Fourmond
Hello, Eric Lavarde wrote: > comparing the wrapper script from FreeMind, version 0.9.0, not yet in > Debian [1], and your script, I'm missing the following features: > > - no check that JAVA_CMD actually exists and is executable if the > variable is set. I've modified that. > - /usr/bin/ja

Re: Java wrappers and java-common

2008-01-06 Thread Eric Lavarde
Hi Vincent, comparing the wrapper script from FreeMind, version 0.9.0, not yet in Debian [1], and your script, I'm missing the following features: - no check that JAVA_CMD actually exists and is executable if the variable is set. - /usr/bin/java as last fallback if nothing else helps. - debu

Re: Java wrappers and java-common

2008-01-05 Thread Vincent Fourmond
Hello, Michael Koch wrote: >>> Before we move stuff into Debian java-common it should be completely >>> working for most cases. I've looked at a fair amount of wrapper scripts, and the wrappers.sh library I propose can be used to provide all their functionalities easily save one, for bsh, w

Re: Java wrappers and java-common

2008-01-05 Thread Michael Koch
Hello, On Fri, Jan 04, 2008 at 06:18:48PM +0100, Vincent Fourmond wrote: > Michael Koch wrote: > > On Fri, Jan 04, 2008 at 04:42:30PM +0100, Vincent Fourmond wrote: > > java-common in Ubuntu has another mechanism applied to it (but its > > unused currently). Perhaps its possible to merge stuff fr

Re: Java wrappers and java-common

2008-01-04 Thread Vincent Fourmond
Michael Koch wrote: > On Fri, Jan 04, 2008 at 04:42:30PM +0100, Vincent Fourmond wrote: > java-common in Ubuntu has another mechanism applied to it (but its > unused currently). Perhaps its possible to merge stuff from that. If I read the code right, they just have a list of possible JAVA_HOME i

Re: Java wrappers and java-common

2008-01-04 Thread Michael Koch
On Fri, Jan 04, 2008 at 04:42:30PM +0100, Vincent Fourmond wrote: > > Hello, > > Michael Koch wrote: > > "find_java_runtime" is harder. You actually need to run the programs to > > really find out if a runtime works with a given program. > > Well, this approach won't be practical. I preferre

Re: Java wrappers and java-common

2008-01-04 Thread Vincent Fourmond
Hello, Michael Koch wrote: > "find_java_runtime" is harder. You actually need to run the programs to > really find out if a runtime works with a given program. Well, this approach won't be practical. I preferred to use a system of 'capacities' : do we need swing, some of sun's classes, a jav

Re: Java wrappers and java-common

2007-12-30 Thread Arnaud Vandyck
2007/12/29, Michael Koch <[EMAIL PROTECTED]>: > On Fri, Dec 28, 2007 at 02:08:33AM +0100, Vincent Fourmond wrote: Hello Vincent, Thanks for your suggestion. > "find_java_runtime" is harder. You actually need to run the programs to > really find out if a runtime works with a given program. Maybe

Re: Java wrappers and java-common

2007-12-29 Thread Michael Koch
On Fri, Dec 28, 2007 at 02:08:33AM +0100, Vincent Fourmond wrote: > > Hello, > > Many java packages provide runnable programs living in /usr/bin under > the form of a wrapper sh script. Most of them use essentially the same > or very similar code, although some are obviously of much better qu

Java wrappers and java-common

2007-12-27 Thread Vincent Fourmond
Hello, Many java packages provide runnable programs living in /usr/bin under the form of a wrapper sh script. Most of them use essentially the same or very similar code, although some are obviously of much better quality than others. What about collecting reusable bits of these scripts and