This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.concurrent.ExecutorService | |
import java.util.concurrent.Executors | |
ExecutorService executor = Executors.newSingleThreadExecutor() | |
10.times { | |
executor.execute(new Runnable(){ | |
public void run(){ | |
println "Inicio" | |
Thread.sleep(1000) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
new File("/path/to/base/dir").eachDirRecurse { | |
if (it.isDirectory() && !it.list().length) new File("$it.absolutePath/PLACEHOLDER") << '' | |
} |
NewerOlder