Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/redbooth/jnotify
Java bindings for native notification libraries.
https://github.com/redbooth/jnotify
Last synced: 16 days ago
JSON representation
Java bindings for native notification libraries.
- Host: GitHub
- URL: https://github.com/redbooth/jnotify
- Owner: redbooth
- License: lgpl-2.1
- Created: 2014-04-07T22:31:07.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2018-03-02T17:32:48.000Z (over 6 years ago)
- Last Synced: 2024-08-01T05:19:38.917Z (3 months ago)
- Language: C++
- Homepage:
- Size: 71.3 KB
- Stars: 21
- Watchers: 43
- Forks: 12
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
JNotify
=======JNotify is a Java library that allow applications to listen to filesystem
events, such as:- File created
- File modified
- File renamed
- File deletedThis repository is a fork of upstream's [jnotify](http://jnotify.sourceforge.net).
The last upstream release was 0.94, back in April 2012, and the original source repository
was on CVS, which is frankly awful to work with, hence the creation of this fork.## Noteworthy changes
This fork is *not* a drop-in replacement.
To make the best out of each platform-specific API, the simplified platform-agnostic
abstraction layer was dropped to ease maintenance.The JAR no longer automatically loads the native libraries. It is up to the calling
application to determine when and how to do that.The name of the native libraries was changed to reflect the incompatibility.
## Build JAR
The following command will build the main jar (no sources or javadocs) and place it in `build/libs`
```
gradle jar
```## Build native code
You need the `qmake` build tool from [Qt 5](https://www.qt.io).
```
qmake && make && make clean
```NB: this does *not* cross-compile, so you need to run this command on every supported
platform you want to build native code for (Linux, macOS, Windows).NB: on Windows you may need to use `nmake` instead, if your Qt installation is configured to
use MSVC instead of MinGW.Native libraries are placed in the `native` folder.
## Deploy to Nexus/Maven
To deploy to a private Nexus repository, simply create a `gradle.properties` file with the
following variables:```
nexusRepo=http://repo.domain.tld
nexusUser=user
nexusPass=password
```Then run the following command to deploy all jars (main, sources, javadoc) to that repo
```
gradle uploadArchives
```NB: Native code is *not* deployed to the repo and needs to be bundled separately in your application.