Skip to content

Instantly share code, notes, and snippets.

View leruaa's full-sized avatar
🦀

Aurélien leruaa

🦀
View GitHub Profile
@leruaa
leruaa / info.gradle
Last active November 20, 2015 17:32
Show useful infos about the running Gradle task
gradle.taskGraph.afterTask {Task task->
println " $task group:$task.group : $task.description"
println "conv:$task.convention.plugins"
println "input files:${task.inputs.getFiles().getFiles()}"
println "input properties:${task.inputs.getProperties().values().join(', ')}"
println "outputs:${task.outputs.getFiles().getFiles()}"
print "dependsOn:["
task.dependsOn.each{
if (it instanceof FileCollection)
print "${it.getAsPath()},"
@leruaa
leruaa / DualFileHandleResolver.java
Last active August 29, 2015 14:00
A FileHandleResolver implementation witch tests if requested file exists in a path starting with an additional folder. This can be useful when using android flavors.
import com.badlogic.gdx.assets.loaders.FileHandleResolver;
import com.badlogic.gdx.files.FileHandle;
public class DualFileHandleResolver implements FileHandleResolver {
private FileHandleResolver baseResolver;
private String additionalAssetsPath;
public DualFileHandleResolver(FileHandleResolver baseResolver, String additionalAssetsPath) {
this.baseResolver = baseResolver;