Java Skeleton

"Hylke Donker" <[email protected]>
Newsgroups gmane.comp.autopackage.devel
Message-ID <[email protected]>
Hi,
I am trying to write a skeleton file for the Java Runtime Environment, but
for some reason my java test always fails.
My skeleton file:

[Meta]
RootName: @java.sun.com/jre
DisplayName: Sun Java Runtime Environment
ShortName: sun-jre
Packager: Hylke Donker <[email protected]>
Summary: Sun's Java Runtime Environment. Needed for applications written in
the Java programming language.
Skeleton-Version: 1

[Description]
Sun's Java Runtime Environment. Needed for applications written in the
 Java programming language.

[Notes]
This skeleton gets the version from the program java.

[Test]
regex="\"(.+)\""
version_info=$(java -version 2>&1)
[[ $version_info =~ $regex ]]
version=${BASH_REMATCH[1]%_*} # Get the first group and remove trailing
underscore
SOFTWARE_VERSIONS=$version
INTERFACE_VERSIONS=$version

When I execute the test commands I get 1.6.0, so I don't see what's the
problem. I use
require '@java.sun.com/jre' 1.6.0
in my apspec file.
Can somebody help me out?
Thanks in advance,
Hylke
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.