Skip to content

Instantly share code, notes, and snippets.

View utsmannn's full-sized avatar
😼
kerja

Muhammad Utsman utsmannn

😼
kerja
View GitHub Profile
@djangofan
djangofan / gist:2939268
Created June 15, 2012 23:56
Groovy script to watch a directory for changes in JDK1.7
import java.io.File;
import java.io.IOException;
import java.net.URI;
import java.net.URISyntaxException;
import java.nio.file.*;
// requires JDK 1.7.0+
Path tmpPath = Paths.get( args[0])
WatchService watchService = FileSystems.getDefault().newWatchService()