Skip to content

Instantly share code, notes, and snippets.

View zregvart's full-sized avatar
🙉
Working, probably

Zoran Regvart zregvart

🙉
Working, probably
  • Zagreb, Croatia
  • 19:45 (UTC +02:00)
View GitHub Profile
/** @jsx React.DOM */
'use strict';
var React = require('react');
var DesktopApp = require('./desktopApp');
React.renderComponent(<DesktopApp />, document.body);
[INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ salesforce-jetty-test ---
[INFO] com.github.zregvart:salesforce-jetty-test:jar:0.0.1-SNAPSHOT
[INFO] +- org.apache.camel:camel-spring-boot-starter:jar:2.18.1-SNAPSHOT:compile
[INFO] | +- org.springframework.boot:spring-boot-starter:jar:1.4.1.RELEASE:compile
[INFO] | | +- org.springframework.boot:spring-boot:jar:1.4.1.RELEASE:compile
[INFO] | | | \- org.springframework:spring-context:jar:4.3.3.RELEASE:compile
[INFO] | | +- org.springframework.boot:spring-boot-autoconfigure:jar:1.4.1.RELEASE:compile
[INFO] | | +- org.springframework.boot:spring-boot-starter-logging:jar:1.4.1.RELEASE:compile
[INFO] | | | +- ch.qos.logback:logback-classic:jar:1.1.7:compile
[INFO] | | | | \- ch.qos.logback:logback-core:jar:1.1.7:compile
<camel:camelContext>
<camel:route>
<camel:from uri="direct:start" />
<camel:to
uri="salesforce:query?sObjectClass=com.github.zregvart.salesforce.query.Contacts&amp;sObjectQuery=SELECT name FROM Contact"></camel:to>
<camel:log message="->${body}" />
<camel:loop doWhile="true">
<camel:simple>${body.done} == false</camel:simple>
<camel:setHeader headerName="sObjectQuery">
<camel:simple>${body.nextRecordsUrl}</camel:simple>
@zregvart
zregvart / failed_jobs.groovy
Created March 23, 2017 10:06
Jenkins jobs that have not succeeded in the last 10 builds
import jenkins.branch.MultiBranchProject
Jenkins.instance.items.findAll { job ->
if (job instanceof MultiBranchProject) {
return false
} else {
!job.builds.take(10).any { build ->
build.result == Result.SUCCESS
}
}
...
/**
* Generated by camel-package-maven-plugin - do not edit this file!
*/
@Generated(value = "org.apache.camel.maven.packaging.SpringBootAutoConfigurationMojo", date = "2017-04-18T14:27:43.992Z")
@Configuration
@ConditionalOnBean(type = "org.apache.camel.spring.boot.CamelAutoConfiguration")
@Conditional(AhcComponentAutoConfiguration.Condition.class)
@AutoConfigureAfter(name = "org.apache.camel.spring.boot.CamelAutoConfiguration")
@EnableConfigurationProperties(AhcComponentConfiguration.class)
class FileEnrichRoute extends RouteBuilder {
@Override
public void configure() throws Exception {
from("file:folder1").pollEnrich("file:folder2", new AggregationStrategy() {
public Exchange aggregate(Exchange original, Exchange resource) {
String originalBody = original.getIn().getBody(String.class);
String resourceBody = resource.getIn().getBody(String.class);
diff --git a/buildingtools/pom.xml b/buildingtools/pom.xml
index c235e1678d..c3918a1e37 100644
--- a/buildingtools/pom.xml
+++ b/buildingtools/pom.xml
@@ -85,6 +85,19 @@
</configuration>
</execution>
</executions>
+ <dependencies>
+ <dependency>
<address name="mcast.sample">
<multicast />
</address>
class ExampleProcessor implements Processor {
@Override
public void process(Exchange exchange) throws Exception {
try {
// do your transformation here
} catch (ExampleException e) {
final List<ExampleException> allExceptions = Optional
.ofNullable(exchange.getProperty("all-exceptions", List.class)).orElseGet(ArrayList::new);
$ git status
On branch camel-2.20.x
Your branch is up-to-date with 'origin/camel-2.20.x'.
nothing to commit, working tree clean
$ mvn clean install -pl itests/standalone/smoke -am -Dtest=SpringBeanTransformTest
2017-05-29 11:17:54 ERROR [org.jboss.as.arquillian.protocol.jmx.ArquillianServiceDeployer] (main) - Cannot deploy arquillian service
org.jboss.arquillian.container.spi.client.container.DeploymentException: Cannot deploy: arquillian-service
at org.jboss.as.arquillian.container.ArchiveDeployer.deployInternal(ArchiveDeployer.java:83)
at org.jboss.as.arquillian.container.ArchiveDeployer.deployInternal(ArchiveDeployer.java:64)