Examples of exec()


Examples of org.ops4j.pax.runner.platform.DefaultJavaRunner.exec()

        String javaHome = System.getProperty("java.home");
        File workingDir = null; // new File(".");

        dumpProperties(System.getProperties());
       
        runner.exec(vmOptions, classpath, mainClass, programOptions, javaHome, workingDir);

    }

    private void dumpProperties(Properties properties) {
        System.out.println("System Properties...");
View Full Code Here

Examples of org.pygmalion.udf.RangeBasedStringConcat.exec()

        RangeBasedStringConcat rbsc = new RangeBasedStringConcat("ALL", " ");
        Tuple input = new DefaultTuple();
        for (int i = 0; i < fields.length; i++) {
            input.append(fields[i]);
        }
        String result = rbsc.exec(input);
        assertEquals("a b c d e f g h i", result);
        Tuple innerTuple = new DefaultTuple();
        innerTuple.append("j");
        innerTuple.append("k");
View Full Code Here

Examples of org.pygmalion.udf.ToCassandraBag.exec()

            if (i < fields.length - 1){
                builder.append(',');
            }
        }
        properties.setProperty(ToCassandraBag.UDFCONTEXT_SCHEMA_KEY + ".default_context", builder.toString());
        Tuple tuple = tcb.exec(input);
        assertNotNull("Tuple is null", tuple);
        assertEquals(2, tuple.size());
        //first is the key, rest is a set of columns
        Object one = tuple.get(0);
        assertTrue(one instanceof String);
View Full Code Here

Examples of org.python.pydev.jython.IPythonInterpreter.exec()

            }

            String formatted = com.aptana.shared_core.string.StringUtils.format(EXECUTE_PEP8, file, args.toString(),
                    StringUtils.replaceAllSlashes(pep8Loc.getParentFile().getAbsolutePath()), //put the parent dir of pep8.py in the pythonpath.
                    file);
            interpreter.exec(formatted);
            if (pep8 == null) {
                synchronized (lock) {
                    if (pep8 == null) {
                        pep8 = interpreter.get("pep8");
                    }
View Full Code Here

Examples of org.python.util.InteractiveConsole.exec()

        }
       
        InteractiveConsole interp = new InteractiveConsole();
        //ReadlineConsole interp = new ReadlineConsole();
       
        interp.exec("import sys");
        interp.exec("def exit(): sys.exit()");
        interp.set("bContext", context);
        interp.set("ciContext", ciContext);

        try {
View Full Code Here

Examples of org.python.util.PythonInterpreter.exec()

                // We import the Python SYS module. Now we don't need to do this
                // explicitely in the script.  We always use the sys module to
                // do stuff like loading java package
                // org.apache.turbine.services.assemblerbroker.util.python;
                interp.exec("import sys");

                // Now we try to load the script file
                interp.execfile(confName);
                interp.execfile(fName.toString());
View Full Code Here

Examples of org.rege.isqlj.JavaSql.exec()

      {
        JavaSql sqlj = new JavaSql();
        sqlj.getInterpreter().set( "session", new SqscConnection( session, plugin));
        sqlj.getInterpreter().set( "jdbc",
            new ISqlJConnection( session.getSQLConnection().getConnection()));
        sqlj.exec( new StringReader( str));
      } catch( Exception ex)
      {
        throw new BaseException(ex);
      }
    }
View Full Code Here

Examples of org.rioproject.impl.exec.ServiceExecutor.exec()

            ExecDescriptor execDesc = postInstall.getExecDescriptor();
            if(execDesc != null) {
                if(!execDesc.getCommandLine().startsWith(File.separator))
                    execDesc = Util.extendCommandLine(path, execDesc);
                ServiceExecutor svcExecutor = new ServiceExecutor();
                ProcessManager manager = svcExecutor.exec(execDesc);
                manager.manage();
                //manager.waitFor();
                manager.destroy(false);
            }
            if(postInstall.getStagedData()!=null &&
View Full Code Here

Examples of org.scilab.modules.javasci.Scilab.exec()

            Scilab sci = new Scilab();

            if (sci.open()) {
                /* Send a Scilab instruction */
                sci.exec("foo = [ 2, 4, 6; 4, 0, 10; 6, 10, 12 ];");

                /* Retrieve the variable foo */
                ScilabType foo = sci.get("foo");

                /* Display the variable */
 
View Full Code Here

Examples of org.springframework.data.neo4j.support.Neo4jTemplate.exec()

    @Test(expected = DataAccessException.class)
    @Ignore
    public void shouldConvertMissingTransactionExceptionToDataAccessException() {
        Neo4jTemplate template = new Neo4jTemplate(graphDatabase, null);
        template.exec(new GraphCallback.WithoutResult() {
            @Override
            public void doWithGraphWithoutResult(GraphDatabase graph) throws Exception {
                graph.createNode(null, null);
            }
        });
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.