Examples of execute()


Examples of com.aptana.interactive_console.console.ScriptXmlRpcClient.execute()

        try {
            IXmlRpcClient client = new ScriptXmlRpcClient(process, err, out);
            client.setPort(port);

            printArr(client.execute("addExec", new Object[] { "abc = 10" }));
            printArr(client.execute("addExec", new Object[] { "abc" }));
            printArr(client.execute("addExec", new Object[] { "import sys" }));
            printArr(client.execute("addExec", new Object[] { "class Foo:" }));
            printArr(client.execute("addExec", new Object[] { "    print 20" }));
            printArr(client.execute("addExec", new Object[] { "    print >> sys.stderr, 30" }));
View Full Code Here

Examples of com.aptana.interactive_console.console.ui.internal.actions.HandleDeletePreviousWord.execute()

    public void testDeletePreviousWord() throws Exception {
        HandleDeletePreviousWord previousWord = new HandleDeletePreviousWord();
        Document doc = new Document(">>> abc def");

        previousWord.execute(doc, doc.getLength(), 4);
        assertEquals(">>> abc ", doc.get());

        previousWord.execute(doc, doc.getLength(), 4);
        assertEquals(">>> ", doc.get());
View Full Code Here

Examples of com.aragost.javahg.commands.CommitCommand.execute()

            CommitCommand cmd = CommitCommand.on(repo);
            cmd.user(this.rollbackChangeset.getUser());
            cmd.date(this.rollbackChangeset.getTimestamp());
            cmd.message(this.rollbackChangeset.getMessage());
            cmd.extra("source", getSource().getNode());
            return cmd.execute();
        }
    }

    public void setRollbackChangeset(Changeset rollbackChangeset) {
        this.rollbackChangeset = rollbackChangeset;
View Full Code Here

Examples of com.aragost.javahg.commands.ResolveCommand.execute()

     *
     * @return true if the conflict was resolved, false otherwise
     */
    public boolean resolveWith(String tool) {
        ResolveCommand cmd = ResolveCommand.on(getRepository()).tool(tool);
        cmd.execute(getFilename());
        this.resolved = cmd.getReturnCode() == 0;
        return this.resolved;
    }

    /**
 
View Full Code Here

Examples of com.aragost.javahg.commands.VersionCommand.execute()

        Process process = getFirstServer(repo).getProcess();
        process.destroy();
        // Process is dead and we can't send command
        try {
            VersionCommand cmd = VersionCommand.on(repo);
            cmd.execute();
            assertFailedExecution(cmd);
        } catch (UnexpectedServerTerminationException e) {
            // success
        }
        repo.close();
View Full Code Here

Examples of com.aragost.javahg.internals.ExtraLogCommand.execute()

     */
    public synchronized Extra getExtra() {
        if (this.extra == null) {
            ExtraLogCommand cmd = new ExtraLogCommand(getRepository());
            cmd.rev(getNode());
            this.extra = new Extra(cmd.execute());
        }
        return this.extra;
    }

    @Override
View Full Code Here

Examples of com.aragost.javahg.internals.GenericCommand.execute()

        return new File(getDirectory(), name);
    }

    public void lock() {
        GenericCommand lock = new GenericCommand(this, "javahg-lock");
        lock.execute();
    }

    public void unlock() {
        GenericCommand unlock = new GenericCommand(this, "javahg-unlock");
        unlock.execute();
View Full Code Here

Examples of com.aragost.javahg.internals.PhaseLogCommand.execute()

    }

    public Map<Changeset, Phase> readPhases(String... revs) {
        PhaseLogCommand cmd = new PhaseLogCommand(this);
        cmd.rev(revs);
        return cmd.execute();
    }

    /**
     *
     * @return the tip Changeset for the repository
View Full Code Here

Examples of com.art.anette.client.database.ClientDB.execute()

            writeIDs();
        } catch (DBDirtyException ex) {
            try {
                logger.info("Database is dirty - cleaning and the retrying...");
                ClientDB cdb = new ClientDB(ex.getId());
                cdb.execute(SQLFormatter.generateQuery("DELETE FROM %s", Employee.getTableName()));
                cdb.execute(SQLFormatter.generateQuery("DELETE FROM %s", Project.getTableName()));
                cdb.execute(SQLFormatter.generateQuery("DELETE FROM %s", Department.getTableName()));
                cdb.execute(SQLFormatter.generateQuery("DELETE FROM %s", WorkPackage.getTableName()));
                cdb.execute(SQLFormatter.generateQuery("DELETE FROM %s", EmployeeProjectRelation.getTableName()));
                cdb.execute(SQLFormatter.generateQuery("DELETE FROM %s", EmployeeWorkPackageRelation.getTableName()));
View Full Code Here

Examples of com.art.anette.server.database.ServerDB.execute()

            final long delta = 90L * 24L * 60L * 60L * 1000L;
            //noinspection InfiniteLoopStatement
            while (true) {
                try {
                    long time = (System.currentTimeMillis() - delta) / -1000;
                    sdb.execute(SQLFormatter.generateQuery("DELETE FROM %s WHERE timestamp > %d AND timestamp < 0", Employee.getTableName(), time));
                    sdb.execute(SQLFormatter.generateQuery("DELETE FROM %s WHERE timestamp > %d AND timestamp < 0", Employee.getTableName(), time));
                    sdb.execute(SQLFormatter.generateQuery("DELETE FROM %s WHERE timestamp > %d AND timestamp < 0", Project.getTableName(), time));
                    sdb.execute(SQLFormatter.generateQuery("DELETE FROM %s WHERE timestamp > %d AND timestamp < 0", Department.getTableName(), time));
                    sdb.execute(SQLFormatter.generateQuery("DELETE FROM %s WHERE timestamp > %d AND timestamp < 0", WorkPackage.getTableName(), time));
                    sdb.execute(SQLFormatter.generateQuery("DELETE FROM %s WHERE timestamp > %d AND timestamp < 0", EmployeeProjectRelation.getTableName(), time));
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.