Package org.epic.core.util

Examples of org.epic.core.util.PerlExecutor.execute()


        PerlExecutor executor = new PerlExecutor();
        try
        {
            List args = new ArrayList(1);
            args.add("-v");
            if (executor.execute(new File("."), args, "")
                .stdout.indexOf("This is perl") != -1)
            {
                requirePerlCheckPassed = true;
            }
            else
View Full Code Here


            File scriptFile = PerlDebugPlugin.getDefault().extractTempFile(
                scriptName, null);
            List args = new ArrayList(1);
            args.add(scriptFile.getAbsolutePath());
            args.addAll(scriptArgs);
            return executor.execute(scriptFile.getParentFile(), args, "")
                .getStdoutLines();
        }
        catch (IOException e)
        {
            throw new CoreException(new Status(IStatus.ERROR, PerlDebugPlugin
View Full Code Here

        PerlExecutor executor = new PerlExecutor();
       
        try
        {
            final String perlCode = "foreach $i(@INC) { print \"$i\n\"; }\n";
            List lines = executor.execute(
                this,
                Collections.EMPTY_LIST,
                perlCode).getStdoutLines();
           
            return makeAbsIncPath(
View Full Code Here

        try
        {
          // If the PerlDoc search method is not called from an editor the textEditor object is null.
          // In this case the execute method is called with the current directory as argument.
          if(textEditor != null) {
            return executor.execute(textEditor, null, perlCode).stdout;
          }
          else {
            try {
          return executor.execute(new File(new File(".").getCanonicalPath()), null, perlCode).stdout;
        } catch (Exception e) {
View Full Code Here

          if(textEditor != null) {
            return executor.execute(textEditor, null, perlCode).stdout;
          }
          else {
            try {
          return executor.execute(new File(new File(".").getCanonicalPath()), null, perlCode).stdout;
        } catch (Exception e) {
          e.printStackTrace();
          return "";
        }
          }
View Full Code Here

        PerlExecutor executor = new PerlExecutor();
        try
        {
            List names =
                executor.execute(textEditor, null, perlCode).getStdoutLines();
            moduleNames = (String[]) names.toArray(new String[names.size()]);
        }
        finally {
            executor.dispose();
            initializing = false;
View Full Code Here

                + "print join(\"\\n\", sort keys %proposals);";

        PerlExecutor executor = new PerlExecutor();
    try
        {
            return executor.execute(fTextEditor, null, perlCode).getStdoutLines();
        }
        catch (CoreException e)
        {
            PerlEditorPlugin.getDefault().getLog().log(e.getStatus());
            return new ArrayList();
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.