Patch for LIBRARY_PATH support in gjl

Alistair John Bush <[email protected]>
Newsgroups gmane.linux.gentoo.java
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Here is a patch to allow users to configure a packages LIBRARY_PATH via

gjl_user_env="${HOME}/.gentoo/java-config-2/launcher.d/${gjl_package}"
gjl_system_env="/etc/java-config-2/launcher.d/${gjl_package}"

What do ppl think?  Ive keep it the same as package.env, any complaints
with this?

Index: gjl
===================================================================
- --- gjl (revision 4648)
+++ gjl (working copy)
@@ -113,6 +113,11 @@
         args += ' -classpath %s' % (classpath)

     if library:
+       envlp = os.getenv('LIBRARY_PATH')
+
+       if envlp:
+           library = ':'.join((envlp, library))
+
         args += ' -Djava.library.path="%s"' % (library)

     if args:


- --
Alistair John Bush
Developer Gentoo Java

OpenPGP key 0x4900CFB7
www.gentoo.org
www.gentoo.org/proj/en/java
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGSArdRJGZcUkAz7cRArf3AJ915C3mSbmOjhMHp+wIX4A5yg/wDACfQqUy
0pJXs5/33uuc+zj0LleHyC8=
=ulQ9
-----END PGP SIGNATURE-----
-- 
[email protected] mailing list
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.