the arguments for groovy doesn't work

I want to use --configscript in Groovy. Below are the config file config.groovyimport org.codehaus.groovy.control.customizers.ImportCustomizerdef imports = new ImportCustomizer()imports.addStaticStars('java.lang.Math')configuration.addCompilationCustomizers(imports)The script file is TestImporter.groovy, content is:package com.testprintln(sin(PI/2))It will run successfully in groovy command line like: groovy --configscript config.groovy TestImporter.groovy but failed in IDEA. In the running configurations, I input --configscript config.groovy in Script parameters but still failed.  Can you check why? Thanks.

Please sign in to leave a comment.