Examples of execute()


Examples of org.apache.easyant.tasks.LoadModule.execute()

        loadModule.setBuildModule(moduleDescriptor);
        loadModule.setBuildFile(optionalAntModule);
        loadModule.setOwningTarget(implicitTarget);
        loadModule.setLocation(new Location(ProjectUtils.emulateMainScript(p).getAbsolutePath()));
        loadModule.setProject(p);
        loadModule.execute();
        ProjectUtils.injectTargetIntoExtensionPoint(p, ProjectUtils.getConfiguredProjectHelper(p));
        analyseProject(p, eaReport, "default");

        return eaReport;
    }
View Full Code Here

Examples of org.apache.easyant.tasks.SubModule.execute()

                    .parseBoolean(project.getProperty(EasyAntMagicNames.USE_BUILD_REPOSITORY)) : true;
            subModule.setUseBuildRepository(useBuildRepository);

            subModule.setBuildpathRef(new Reference(project, "build-path"));
            subModule.setTargets(new TargetList(targets));
            subModule.execute();

            // now call the default executor to include any extra targets defined in
            // the root module.ant
            super.executeTargets(project, postTargetsToRun.toArray(new String[] {}));
        } finally {
View Full Code Here

Examples of org.apache.examples.panorama.startup.impl.ExecuteStatic.execute()

        ExecuteStatic e = new ExecuteStatic();

        e.setMethodName("staticMethod");
        e.setTargetClass(TestExecuteStatic.class);

        e.execute();

        assertEquals(true, _staticMethodInvoked);
    }
}
View Full Code Here

Examples of org.apache.felix.dm.annotation.plugin.bnd.DescriptorGenerator.execute()

            // This helper class will parse classes using the analyzer we just created.
            DescriptorGenerator generator = new DescriptorGenerator(analyzer, new MvnLogger(getLog(), m_log));

            // Start scanning
            if (generator.execute())
            {
                // Some annotations have been parsed.
                // Add the list of generated component descriptors in our
                // special header.
                jar = analyzer.getJar();
View Full Code Here

Examples of org.apache.felix.gogo.commands.Action.execute()

    public Object execute(CommandSession session, List<Object> arguments) throws Exception {
        Action action = createNewAction();
        try {
            if (getPreparator().prepare(action, session, arguments)) {
                return action.execute(session);
            } else {
                return null;
            }
        } finally {
            releaseAction(action);
View Full Code Here

Examples of org.apache.felix.gogo.commands.basic.AbstractCommand.execute()

                public Object execute(CharSequence cmdstr) throws Exception {
                    List<String> tokens = Arrays.asList(cmdstr.toString().split("\\s"));
                    List<Object> args = new ArrayList<Object>(tokens);
                    args.remove(0);
                    AbstractCommand command =  (AbstractCommand) get(AbstractCommand.class.getName());
                    command.execute(this, args);
                    return null;
                }
            };
        }
        return commandSession;
View Full Code Here

Examples of org.apache.felix.gogo.runtime.Closure.execute()

            if (v instanceof Closure) {
                final Closure closure = (Closure) v;
                arguments.set(i, new org.apache.karaf.shell.api.console.Function() {
                    @Override
                    public Object execute(Session session, List<Object> arguments) throws Exception {
                        return closure.execute(commandSession, arguments);
                    }
                });
            }
        }
        return execute(session, arguments);
View Full Code Here

Examples of org.apache.felix.karaf.admin.command.AdminCommandSupport.execute()

                    admins.add(svc);
                    return null;
                }
            });
           
            EasyMock.expect(mockCommand.execute(null)).andAnswer(new IAnswer<Object>() {
                public Object answer() throws Throwable {
                    // The Admin Service should be initialized at this point.
                    // One way to find this out is by reading out the port number
                    AdminServiceImpl admin = admins.get(0);
                    Field field = AdminServiceImpl.class.getDeclaredField("defaultPortStart");
View Full Code Here

Examples of org.apache.felix.scrplugin.SCRDescriptorGenerator.execute()

            generator.setOptions(options);
            generator.setProject(project);

            this.removePossiblyStaleFiles(scanner.getSources(), options);

            final Result result = generator.execute();
            this.setServiceComponentHeader(options);

            if ( !this.updateProjectResources() ) {
                this.setIncludeResourceHeader(options);
            }
View Full Code Here

Examples of org.apache.felix.service.command.CommandSession.execute()

                }

                program = readScript(script);
            }

            result = newSession.execute(program);
        }

        if (login && interactive && !opt.isSet("noshutdown"))
        {
            System.out.println("gosh: stopping framework");
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.