[collectd] java plugin class files

Amit Gupta amit.gupta221 at gmail.com
Mon Sep 14 16:23:06 CEST 2009


Here is the updated patch.

On Mon, Sep 14, 2009 at 7:19 PM, Sebastian Harl <sh at tokkee.org> wrote:

> Hi Amit,
>
> On Mon, Sep 14, 2009 at 07:02:20PM +0530, Amit Gupta wrote:
> > Do find the patch attached. I have also got the jmx java classes to be
> > compiled (as a part of build process) in this patch. Let me know if the
> > patch looks okay.
>
> The patch looks mostly fine to me. See two small comments / nitpicks
> below.
>
> > diff --git a/bindings/java/Makefile.am b/bindings/java/Makefile.am
> > index af5e480..0d9ee74 100644
> > --- a/bindings/java/Makefile.am
> > +++ b/bindings/java/Makefile.am
> […]
> > +install-exec-local: java-build-stamp jmx-build-stamp
> > +       mkdir -p "$(DESTDIR)$(pkgdatadir)/java"
> > +       $(JAR) cf java-plugin.jar "org/collectd/api"/*.class
> > +       $(JAR) cf jmx.jar "org/collectd/java"/*.class
> > +       $(INSTALL) -m 644 java-plugin.jar \
> > +               "$(DESTDIR)$(pkgdatadir)/java"
> > +       $(INSTALL) -m 644 jmx.jar \
> > +               "$(DESTDIR)$(pkgdatadir)/java"
>
> What do you think about creating the jar files in .libs/ or something?
> That would avoid problems with locally modified versions …
>

ok. I now create a .libs dir right in the bindings/java during the install.

>
> >  clean-local:
> […]
> > +       rm -f *.jar
>

Make sense. I now delete the .libs dir containng the jars during clean.

Regards
Amit

>
> Removing all jar files in the top level java directory does not sound
> like a good idea to me. Developers might have other jar files around for
> testing purposes or whatever. Unconditionally removing some directory
> .libs/ would be fine for me though.
>
> Hope you'll forgive my nitpickyness ;-)
>


>
> Cheers,
> Sebastian
>
> --
> Sebastian "tokkee" Harl +++ GnuPG-ID: 0x8501C7FC +++ http://tokkee.org/
>
> Those who would give up Essential Liberty to purchase a little Temporary
> Safety, deserve neither Liberty nor Safety.         -- Benjamin Franklin
>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
>
> iEYEARECAAYFAkquSgMACgkQEFEKc4UBx/xqkACePMpSkHWdgzSBqpfT5qP7yAPH
> T䀊ࠝﴃ攲࿨鳣龞ꄬ딤�
> =rbmf
> -----END PGP SIGNATURE-----
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.verplant.org/pipermail/collectd/attachments/20090914/6fe5e886/attachment.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: java-jar.patch
Type: application/octet-stream
Size: 2969 bytes
Desc: not available
Url : http://mailman.verplant.org/pipermail/collectd/attachments/20090914/6fe5e886/attachment.obj 


More information about the collectd mailing list