Open lexek opened 5 years ago
This would be a great feature. Currently I use it extensively in ScriptRunner as it allows me to use the IDEA IDE to build the scripts and then easily deploy them to the JIRA server via SSH.
@BobbyNie Any chance of submitting a pull request?
I did it by add a gloabl Class,maybe help
import org.apache.commons.io.FilenameUtils import org.apache.commons.io.filefilter.FileFilterUtils; import org.apache.commons.io.filefilter.IOFileFilter; import org.apache.commons.io.monitor.FileAlterationListenerAdaptor; import org.apache.commons.io.monitor.FileAlterationMonitor; import org.apache.commons.io.monitor.FileAlterationObserver; import org.codehaus.groovy.control.CompilerConfiguration import org.apache.commons.lang.exception.ExceptionUtils import org.codehaus.groovy.runtime.HandleMetaClass
class G extends HashMap<String,Object> { private static final List objectContainMethods = GroovyObject.methods.collect{it.name}+Object.metaClass.methods.collect{it.name}
static class GroovyIOFileFilter extends IOFileFilter {
@Override
public boolean accept(File file)
{
String extension=FilenameUtils.getExtension(file.getAbsolutePath());
if(extension!=null&&extension.equals("groovy")){
return true;
}
return false;
}
}