Skip to content

Instantly share code, notes, and snippets.


Aurélien acatinon

View GitHub Profile
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.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:["
if (it instanceof FileCollection)
print "${it.getAsPath()},"
acatinon /
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.
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;