danishjuzdan / jnativehook

Automatically exported from code.google.com/p/jnativehook
0 stars 0 forks source link

Prevent print of copyright notes to stdout #95

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. On the first line which uses GlobalScren class

What is the expected output? What do you see instead?
I would expect nothing to print to stdout but the text blow is printed to 
stdout (which appears in my graphical application because I show the Console 
output to the user).

What version of the product are you using? On what operating system?
- JNativeHook 2.0.0-RC5 General Preview (Jan 02, 2015)
- Windows 7 Enterprise

Please provide any additional information below.

As soon as I access the GlobalScreen Class the first time, the following text 
is printed to STDOUT which is annoying. Can I (or you) prevent this?

-----
JNativeHook: Global keyboard and mouse hooking for Java.
Copyright (C) 2006-2015 Alexander Barker.  All Rights Received.
https://github.com/kwhat/jnativehook/

JNativeHook is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

JNativeHook is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU Lesser General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.

Original issue reported on code.google.com by hei...@gmail.com on 18 Feb 2015 at 3:12

GoogleCodeExporter commented 9 years ago
You should upgrade to 2.0.0 final and 2.0.1 at the end of the month.  The 
copyright notice is intentional due to the GPL/LGPL abuse.  If you would like 
to disable it, you will need to compile from source with the additional 
`-DUSE_QUIET=1` CFLAG.  Note that you will need to compile the native source on 
each platform you want to target either manually, with something like Jenkins 
or by using the Gentoo (or other Linux) cross compiler outlined in the compile 
wiki instructions on github.  If you need help compiling, send me an email 
directly.  For all future bugs, please use the github project page.

Original comment by a...@1stleg.com on 18 Feb 2015 at 3:31

GoogleCodeExporter commented 9 years ago
OK, I won't recompile every new version again.

I have implemented a workaround now. Before the first call, I disable stdout 
and after the call, I activate it back.

Original comment by hei...@gmail.com on 18 Feb 2015 at 8:08