Examples of Script


Examples of org.bitcoinj.script.Script

        // TODO: Support submitting multiple inputs in a single pledge tx here.
        TransactionInput input = pledge.addInput(stub);
        project.getOutputs().forEach(pledge::addOutput);
        ECKey key = input.getOutpoint().getConnectedKey(this);
        checkNotNull(key);
        Script script = stub.getScriptPubKey();
        if (aesKey != null)
            key = key.maybeDecrypt(aesKey);
        TransactionSignature signature = pledge.calculateSignature(0, key, script,
                Transaction.SigHash.ALL, true /* anyone can pay! */);
        if (script.isSentToAddress()) {
            input.setScriptSig(ScriptBuilder.createInputScript(signature, key));
        } else if (script.isSentToRawPubKey()) {
            // This branch will never be taken with the current design of the app because the only way to get money
            // in is via an address, but in future we might support direct-to-key payments via the payment protocol.
            input.setScriptSig(ScriptBuilder.createInputScript(signature));
        }
        input.setScriptSig(ScriptBuilder.createInputScript(signature,  key));
View Full Code Here

Examples of org.camunda.bpm.model.bpmn.instance.Script

    element.setScript(script);
    return myself;
  }

  public B scriptText(String scriptText) {
    Script script = createChild(Script.class);
    script.setTextContent(scriptText);
    return myself;
  }
View Full Code Here

Examples of org.chromium.sdk.Script

    latch.await();
    assertNotNull(loadedScript);
    Collection<Script> newScripts = getScripts();
    assertEquals(2, newScripts.size());
    newScripts.removeAll(scripts);
    Script compiledScript = newScripts.iterator().next();
    assertEquals(FixtureChromeStub.getCompiledScriptId(), compiledScript.getId());
    assertEquals(loadedScript.getId(), compiledScript.getId());
    String source = compiledScript.getSource();
    assertTrue(source != null && source.contains("compiled()")); //$NON-NLS-1$
  }
View Full Code Here

Examples of org.freeplane.plugin.script.addons.ScriptAddOnProperties.Script

    };
    return filter;
  }

  private void addScript(final File file, final Map<File, Script> addOnScriptMap) {
    final Script scriptConfig = addOnScriptMap.get(file);
    if (scriptConfig != null && !scriptConfig.active) {
      LogUtils.info("skipping deactivated " + scriptConfig);
      return;
    }
    final String menuTitle = disambiguateMenuTitle(getOrCreateMenuTitle(file, scriptConfig));
View Full Code Here

Examples of org.gradle.groovy.scripts.Script

       
        assertThat(analyser.transform(failure), sameInstance(failure));
    }

    private void notifyAnalyser(DefaultExceptionAnalyser analyser, final ScriptSource source) {
        final Script script = context.mock(Script.class);
        context.checking(new Expectations() {{
            allowing(script).getScriptSource();
            will(returnValue(source));
        }});
        analyser.beforeScript(script);
View Full Code Here

Examples of org.h2.tools.Script

            } else if ("DeleteDbFiles".equals(toolName)) {
                tool = new DeleteDbFiles();
            } else if ("ChangeFileEncryption".equals(toolName)) {
                tool = new ChangeFileEncryption();
            } else if ("Script".equals(toolName)) {
                tool = new Script();
            } else if ("RunScript".equals(toolName)) {
                tool = new RunScript();
            } else if ("ConvertTraceFile".equals(toolName)) {
                tool = new ConvertTraceFile();
            } else if ("CreateCluster".equals(toolName)) {
View Full Code Here

Examples of org.jahia.services.render.scripting.Script

        Set<String> servedFromCache = (Set<String>) renderContext.getRequest().getAttribute("servedFromCache");
        if (servedFromCache == null) {
            servedFromCache = new HashSet<String>();
            renderContext.getRequest().setAttribute("servedFromCache", servedFromCache);
        }
        final Script script = (Script) renderContext.getRequest().getAttribute("script");
        boolean isBinded = resource.getNode().isNodeType("jmix:bindedComponent");
        if (script != null) {
            chain.pushAttribute(renderContext.getRequest(), "cache.perUser", Boolean.valueOf(
                    script.getView().getProperties().getProperty("cache.perUser", "false")));
            if(isBinded) {
                chain.pushAttribute(renderContext.getRequest(), "cache.mainResource", Boolean.TRUE);
            } else {
                chain.pushAttribute(renderContext.getRequest(), "cache.mainResource", Boolean.valueOf(
                    script.getView().getProperties().getProperty("cache.mainResource", "false")));
            }
            if (Boolean.valueOf(script.getView().getProperties().getProperty(
                    "cache.additional.key.useMainResourcePath", "false"))) {
                resource.getModuleParams().put("module.cache.additional.key",
                        renderContext.getMainResource().getNode().getPath());
            }
        }
View Full Code Here

Examples of org.jberet.job.model.Script

                    collector = jobContext.createArtifact(collectorConfig.getRef(), null, collectorConfig.getProperties(), batchContext);
                }
            }

            if (batchlet.getRef().isEmpty()) {
                final Script script = batchlet.getScript();
                if (script == null) {
                    throw BatchMessages.MESSAGES.failToGetAttribute(XmlAttribute.REF.getLocalName(), null);
                }
                batchletObj = new ScriptBatchlet(script, batchlet.getProperties(),batchContext);
            } else {
View Full Code Here

Examples of org.jbpm.graph.action.Script

  public void read(Element forkElement, JpdlXmlReader jpdlReader) {
    Element scriptElement = forkElement.element("script");
    if (scriptElement!=null) {
      log.warn("KNOWN LIMITATION: the script in a fork is not persisted.  script in fork might be removed in later versions of jPDL");
      script = new Script();
      script.read(scriptElement, jpdlReader);
    }
  }
View Full Code Here

Examples of org.jitterbit.integration.data.entity.Script

        return getActivity().getContent();
    }

    @Override
    protected String getContentString() {
        Script script = getScript();
        return script != null ? script.getName() : getActivity().getRole();
    }
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.