Skip to content

Commit

Permalink
Fixes #1350 Remove human-readable format from timer period computatio…
Browse files Browse the repository at this point in the history
…n in cron trait, templates
  • Loading branch information
oscerd committed Mar 17, 2020
1 parent 6d46dab commit a47410d
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion deploy/templates/groovy.tmpl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// camel-k: language=groovy

// Write your routes here, for example:
from('timer:groovy?period=1s')
from('timer:groovy?period=1000')
.routeId('groovy')
.setBody()
.simple('Hello Camel K from ${routeId}')
Expand Down
2 changes: 1 addition & 1 deletion deploy/templates/java.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ public class {{ .Name }} extends RouteBuilder {
public void configure() throws Exception {

// Write your routes here, for example:
from("timer:java?period=1s")
from("timer:java?period=1000")
.routeId("java")
.setBody()
.simple("Hello Camel K from ${routeId}")
Expand Down
2 changes: 1 addition & 1 deletion deploy/templates/js.tmpl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// camel-k: language=js

// Write your routes here, for example:
from('timer:js?period=1s')
from('timer:js?period=1000')
.routeId('js')
.setBody()
.simple('Hello Camel K from ${routeId}')
Expand Down
2 changes: 1 addition & 1 deletion deploy/templates/kts.tmpl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// camel-k: language=kotlin

// Write your routes here, for example:
from("timer:kotlin?period=1s")
from("timer:kotlin?period=1000")
.routeId("kotlin")
.setBody()
.simple("Hello Camel K from \${routeId}")
Expand Down
2 changes: 1 addition & 1 deletion deploy/templates/xml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<!-- Write your routes here, for example: -->
<route id="xml">
<from uri="timer:xml?period=1s"/>
<from uri="timer:xml?period=1000"/>
<setBody>
<simple>Hello Camel K from ${routeId}</simple>
</setBody>
Expand Down
2 changes: 1 addition & 1 deletion deploy/templates/yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
- from:
uri: "timer:yaml"
parameters:
period: "1s"
period: "1000"
steps:
- set-body:
constant: "Hello Camel K from yaml"
Expand Down

0 comments on commit a47410d

Please sign in to comment.