Examples of args()


Examples of com.groupon.jenkins.buildtype.dockerimage.DockerCommandBuilder.args()

                String linkImageName = (String) link.get("image");
                 DockerCommandBuilder runCommand = DockerCommandBuilder.dockerCommand("run")
                        .flag("d")
                        .flag("name", getContainerId(linkImageName))
                        .bulkOptions((String) link.get("run_params"));
                runCommand =  link.containsKey("command")? runCommand.args(linkImageName, "sh -cx \"" + link.get("command")+ "\""): runCommand.args(linkImageName);
                List<String> runCommands = linkServicesToRunCommand(runCommand, (List<Map<String, Object>>) link.get("links"));
                startLinkCommands.addAll(runCommands);
            }
        return startLinkCommands;
    }
View Full Code Here

Examples of com.groupon.jenkins.buildtype.dockerimage.DockerCommandBuilder.args()

                String linkImageName = (String) link.get("image");
                 DockerCommandBuilder runCommand = DockerCommandBuilder.dockerCommand("run")
                        .flag("d")
                        .flag("name", getContainerId(linkImageName))
                        .bulkOptions((String) link.get("run_params"));
                runCommand =  link.containsKey("command")? runCommand.args(linkImageName, "sh -cx \"" + link.get("command")+ "\""): runCommand.args(linkImageName);
                List<String> runCommands = linkServicesToRunCommand(runCommand, (List<Map<String, Object>>) link.get("links"));
                startLinkCommands.addAll(runCommands);
            }
        return startLinkCommands;
    }
View Full Code Here

Examples of com.pogofish.jadt.parser.ParserImpl.args()

    }
   
    @Test
   public void testArgsErrors() throws Exception {
        ParserImpl p1 = parserImpl("(int Foo");
        checkError(list(_UnexpectedToken("')'", "<EOF>", 1)), list(_Arg(Util.<ArgModifier>list(), _Primitive(_IntType()), "Foo")), p1.args(), p1);
       
        ParserImpl p2 = parserImpl("()");
        checkError(list(_UnexpectedToken("a class name", "')'", 1)), list(_Arg(Util.<ArgModifier>list(), _Ref(_ClassType("NO_IDENTIFIER@1", NO_ACTUAL_TYPE_ARGUMENTS)), "NO_IDENTIFIER@2")), p2.args(), p2);

        ParserImpl p3 = parserImpl("(int Foo,)");
View Full Code Here

Examples of com.salesforce.phoenix.parse.FunctionParseNode.BuiltInFunction.args()

    private static void addBuiltInFunction(Class<? extends FunctionExpression> f) throws Exception {
        BuiltInFunction d = f.getAnnotation(BuiltInFunction.class);
        if (d == null) {
            return;
        }
        int nArgs = d.args().length;
        BuiltInFunctionInfo value = new BuiltInFunctionInfo(f, d);
        do {
            // Add function to function map, throwing if conflicts found
            // Add entry for each possible version of function based on arguments that are not required to be present (i.e. arg with default value)
            BuiltInFunctionKey key = new BuiltInFunctionKey(value.getName(), nArgs);
View Full Code Here

Examples of hudson.util.JVMBuilder.args()

        // (like in the case of the swarm plugin.)
        vmb.classpath().addJarOf(Channel.class);
        vmb.mainClass(Launcher.class);

        if (classpath != null)
            vmb.args().add("-cp").add(classpath);
        vmb.args().add("-connectTo", "localhost:" + serverSocket.getLocalPort());

        // TODO add XVFB options here
        Proc p = vmb.launch(new LocalLauncher(listener)).stdout(listener).envs(envVariables).start();
View Full Code Here

Examples of hudson.util.JVMBuilder.args()

        vmb.classpath().addJarOf(Channel.class);
        vmb.mainClass(Launcher.class);

        if (classpath != null)
            vmb.args().add("-cp").add(classpath);
        vmb.args().add("-connectTo", "localhost:" + serverSocket.getLocalPort());

        // TODO add XVFB options here
        Proc p = vmb.launch(new LocalLauncher(listener)).stdout(listener).envs(envVariables).start();

        Socket s = serverSocket.accept();
View Full Code Here

Examples of io.crate.action.sql.parser.SQLXContentSourceContext.args()

            requestBuilder.stmt(context.stmt());
            requestBuilder.includeTypesOnResponse(includeTypes);
            sqlResponse = requestBuilder.execute().actionGet();
        } else {
            SQLRequestBuilder requestBuilder = new SQLRequestBuilder(client());
            requestBuilder.args(context.args());
            requestBuilder.stmt(context.stmt());
            requestBuilder.includeTypesOnResponse(includeTypes);
            sqlResponse = requestBuilder.execute().actionGet();
        }
        sqlResponse.toXContent(builder, ToXContent.EMPTY_PARAMS);
View Full Code Here

Examples of net.jcores.jre.utils.internal.Options.args()

    @SuppressWarnings("unchecked")
    public CoreObject<T> spawn(final Option... options) {
        // Process each element we might have enclosed.
        final CommonCore cc = this.commonCore;
        final Options options$ = Options.$(this.commonCore, options);
        final Object[] args = options$.args();

        return map(new F1<Class<T>, T>() {
            @Override
            public T f(Class<T> x) {
                // Get the class we operate on
View Full Code Here

Examples of org.apache.aries.blueprint.annotation.Bean.args()

           

            List<Object> props = tbean.getArgumentOrPropertyOrAny();

            // process args
            Arg[] args = bean.args();
           
            if (args.length > 0) {
                for (int i = 0; i < args.length; i++) {
                    Targument targ = createTargument(args[i]);
                    if (targ != null) {
View Full Code Here

Examples of org.apache.cxf.annotations.FactoryType.args()

            if (i instanceof FactoryInvoker) {
                Factory f;
                if (scope.factoryClass() == FactoryType.DEFAULT.class) {
                    switch (scope.value()) {
                    case Session:
                        if (scope.args().length > 0) {
                            f = new SessionFactory(cls, Boolean.parseBoolean(scope.args()[0]));
                        } else {
                            f = new SessionFactory(cls);
                        }
                        break;
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.