Examples of JSFileFilter


Examples of com.boxysystems.scriptmonkey.intellij.action.JSFileFilter

      ScriptMonkeyApplicationComponent applicationComponent = ApplicationManager.getApplication().getComponent(ScriptMonkeyApplicationComponent.class);
      File jsFolder = new File(applicationComponent.getSettings().getHomeFolder(), Constants.JS_FOLDER_NAME);
      File globalScripts = new File(jsFolder, "global");

      if (globalScripts.exists()) {
        File[] jsFiles = globalScripts.listFiles(new JSFileFilter());
        for (File jsFile : jsFiles) {
          try {
            logger.info("Evaluating script '" + jsFile + "' ...");
            engine.eval(new FileReader(jsFile));
            logger.info("Script successfully processed !");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.