Examples of exec()


Examples of org.apache.pig.piggybank.evaluation.xml.XPath.exec()

                                + "</book>");

        when(tuple.size()).thenReturn(2);

        when(tuple.get(1)).thenReturn("book/author");
        assertEquals("Gambardella, Matthew", xpath.exec(tuple));

    }

    @Test
    public void testRepeatingCallWithSameXml() throws Exception {
View Full Code Here

Examples of org.apache.pig.tools.grunt.Grunt.exec()

                new File(substFile).deleteOnExit();
            }
           
            grunt = new Grunt(pin, pigContext);
            gruntCalled = true;
            int results[] = grunt.exec();
            rc = getReturnCodeForStats(results);
            return;
        }

        case STRING: {
View Full Code Here

Examples of org.apache.pig.tools.grunt.LipstickGrunt.exec()

            if(checkScriptOnly) {
                grunt.checkScript(substFile);
                System.err.println(file + " syntax OK");
                rc = ReturnCode.SUCCESS;
            } else {
                int results[] = grunt.exec();
                rc = getReturnCodeForStats(results);
            }

            return rc;
        }
View Full Code Here

Examples of org.apache.syncope.installer.utilities.FileSystemUtils.exec()

                    InstallLog.getInstance().error(messageError);
                }
                break;
            case GLASSFISH:
                final String createJavaOptCommand = "sh " + glassfishDir + Glassfish.CREATE_JAVA_OPT_COMMAND;
                fileSystemUtils.exec(createJavaOptCommand, null);

                final Glassfish glassfish = new Glassfish(installPath, artifactId);

                fileSystemUtils.exec("sh " + glassfishDir + Glassfish.DEPLOY_COMMAND + glassfish.deployCore(), null);
                fileSystemUtils.exec("sh " + glassfishDir + Glassfish.DEPLOY_COMMAND + glassfish.deployConsole(), null);
View Full Code Here

Examples of org.apache.tools.ant.taskdefs.launcher.CommandLauncher.exec()

        }

        CommandLauncher vmLauncher = CommandLauncher.getVMLauncher(project);
        CommandLauncher launcher = (useVM && vmLauncher != null)
            ? vmLauncher : CommandLauncher.getShellLauncher(project);
        return launcher.exec(project, command, env, dir);
    }

    /**
     * Runs a process defined by the command line and returns its exit status.
     *
 
View Full Code Here

Examples of org.apache.turbine.services.freemarker.DynamicURIModel.exec()

            {
                String templateName = (String) e.nextElement();
                List alist = (List)links.get(templateName);
                DynamicURIModel uriModel = new DynamicURIModel(data);
                String uri =
                    ((SimpleScalar)uriModel.exec(alist)).getAsString();
                // System.out.println(uri);

                // Work around.  Do not have an ssl connection (not
                // really necessary for internal development, but
                // might want to add it later), so use http to get
View Full Code Here

Examples of org.asturlinux.frade.currin.program.instruction.Instruction.exec()

        while (!_contextStack.isEmpty()) {

      if ( _contextStack.currentContext().getCurrentPc().hasNext()) {
    i =_contextStack.currentContext().getCurrentPc().getInstruction();
    _contextStack.currentContext().getCurrentPc().next();
    i.exec(this);
      } else {
    _contextStack.currentContext().popPc();
    if ( _contextStack.currentContext().hasNoMorePc() )
        _contextStack.popContext();
      }
View Full Code Here

Examples of org.broadinstitute.gatk.utils.R.RScriptExecutor.exec()

            RScriptExecutor executor = new RScriptExecutor();
            executor.addScript(new Resource(PLOT_TRANCHES_RSCRIPT, VariantRecalibrator.class));
            executor.addArgs(TRANCHES_FILE.getAbsoluteFile(), TARGET_TITV);
            // Print out the command line to make it clear to the user what is being executed and how one might modify it
            logger.info("Executing: " + executor.getApproximateCommandLine());
            executor.exec();
        }
    }

    private void createVisualizationScript( final List<VariantDatum> randomData, final GaussianMixtureModel goodModel, final GaussianMixtureModel badModel, final double lodCutoff, final String[] annotationKeys ) {
        PrintStream stream;
View Full Code Here

Examples of org.broadinstitute.gatk.utils.runtime.ProcessController.exec()

            if (logger.isDebugEnabled()) {
                logger.debug("Executing:");
                for (String arg: cmd)
                    logger.debug("  " + arg);
            }
            int exitValue = controller.exec(processSettings).getExitValue();
            logger.debug("Result: " + exitValue);

            if (exitValue != 0)
                throw new RScriptExecutorException(
                        "RScript exited with " + exitValue +
View Full Code Here

Examples of org.codehaus.enunciate.template.freemarker.ClientPackageForMethod.exec()

    HashMap<String, String> conversions = new HashMap<String, String>();
    conversions.put("org.codehaus.enunciate.samples", "red.herring");
    conversions.put("org.codehaus.enunciate.samples.xfire_client.with.a.nested", "org.codehaus.enunciate.other.pckg.and.nested");
    ClientPackageForMethod packageForMethod = new ClientPackageForMethod(conversions);
    TypeDeclaration typeDeclaration = getDeclaration("org.codehaus.enunciate.samples.xfire_client.with.a.nested.pckg.NestedPackageClass");
    assertEquals("org.codehaus.enunciate.other.pckg.and.nested.pckg", packageForMethod.exec(Arrays.asList(wrapper.wrap(typeDeclaration))));
    assertEquals("org.codehaus.enunciate.other.pckg.and.nested.pckg", packageForMethod.exec(Arrays.asList(wrapper.wrap(typeDeclaration.getPackage()))));
    assertEquals("org.codehaus.enunciate.other.pckg.and.nested.pckg.plus.extra", packageForMethod.exec(Arrays.asList(wrapper.wrap("org.codehaus.enunciate.samples.xfire_client.with.a.nested.pckg.plus.extra"))));
    assertEquals("red.herring.xfire_client", packageForMethod.exec(Arrays.asList(wrapper.wrap("org.codehaus.enunciate.samples.xfire_client"))));
    for (FieldDeclaration fieldDeclaration : typeDeclaration.getFields()) {
      if ("items".equals(fieldDeclaration.getSimpleName())) {
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.