Skip to content

Instantly share code, notes, and snippets.

Avatar
💭

Aurélien acatinon

💭
View GitHub Profile
@acatinon
acatinon / DualFileHandleResolver.java
Last active Aug 29, 2015
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.
View DualFileHandleResolver.java
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;
@acatinon
acatinon / info.gradle
Last active Nov 20, 2015
Show useful infos about the running Gradle task
View info.gradle
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()},"