RFC: add override path to gcj-dbtool

Robert Schuster theBohemian@gmx.net
Mon Sep 11 09:23:00 GMT 2006


Hi,
I am writing a maven plugin which does among other things, native compilation
(BC ABI) with gcj and got into trouble when creating the classmap file for the
just compiled .so.

gcj-dbtool inserts the absolute location of the .so into the classmap which is
bad for me, because after installation the .so will lie at a completely
different location (/usr/share/java instead of /home/foo/baz/devel/..../).

Looking at the tool's source code I saw no immediate need that the location must
be taken from the .so file itself and so I wrote a patch which allows me to
provide an override path.

Please comment.

ChangeLog would be:

2006-09-11  Robert Schuster  <robertschuster@fsfe.org>

        * gnu/gcj/tools/gcj_dbtool/Main.java:
        (main): Allow 5 arguments for -f and -a command.
        (addJar): Added another argument, construct path from overridePath
        variable if set.
        (usage): Updated usage information.

Best Regards
Robert
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gcj-dbtool-override-path.patch
Type: text/x-patch
Size: 2961 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20060911/e6effd64/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 253 bytes
Desc: OpenPGP digital signature
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20060911/e6effd64/attachment.sig>


More information about the Java-patches mailing list