DeathfireD / AllianceP2P

Alliance takes the best from BitTorrent, Direct Connect and Waste and creates a decentralized and secure p2p network. It is a private and secure environment to share files and communicate with people you know. Alliance works on Windows, Linux and Mac.
12 stars 8 forks source link

Use JDK7's java.nio.file API to watch for filesystem changes instead of JNotify #16

Open abonander opened 11 years ago

abonander commented 11 years ago

This is pretty straightforward. If we upgrade to JDK7, we can use the included filesystem watching API in java.nio.file instead of JNotify. By dumping JNotify, we no longer have to worry about having to distribute the 32-bit and 64-bit DLLs, and we can let the platform take care of it.

JDK 7 is already available for all major platforms and it is actively developed, while JNotify is probably not. If the implementing code here is properly decoupled, migration should be painless.