Last active
June 26, 2018 08:30
-
-
Save imagejan/a98b22408f3ad5757fbc6d1b477f3242 to your computer and use it in GitHub Desktop.
How to filter the list of available modules and scripts by input type
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
#@ ModuleService ms | |
#@ ScriptService ss | |
ms.getModules().each { module -> | |
module.inputs().each { input -> | |
if (input.getType() == java.io.File) { | |
println "Module $module" | |
} | |
} | |
} | |
println "" | |
ss.getScripts().each { script -> | |
script.inputs().each { input -> | |
if (input.getType() == java.io.File) { | |
println "Script $script" | |
} | |
} | |
} | |
println "" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment