Initial commit of Spring Cloud Task project page

This commit is contained in:
Michael Minella
2015-12-30 13:26:43 -06:00
parent d25f656a48
commit 358eb58dd5
2 changed files with 88 additions and 5 deletions

View File

@@ -10,20 +10,20 @@ redcarpet:
### The following properties will change on a project-by-project basis
# Context path in the remote website (usually /<project>), will be prepended to absolute URLs for static resources
baseurl: /gh-pages
baseurl: /spring-cloud-task
# Name of the project for display in places like page titles
name: Spring Framework
name: Spring Cloud Task
# ID of the project in the metadata API at spring.io (if this is not a
# valid project ID the javascript widgets in the home page will not work)
project: spring-framework
project: spring-cloud-task
# Project github URL
github_repo_url: http://github.com/spring-projects/spring-framework
github_repo_url: https://github.com/spring-cloud/spring-cloud-task
# Project forum URL
forum: http://forum.spring.io/forum/spring-projects/container
forum: http://stackoverflow.com/questions/tagged/spring-cloud
# If you want to include a custom pom.xml or gradle template set these value to true and add _include files
custom_pom_template: false

83
index.html Normal file
View File

@@ -0,0 +1,83 @@
---
# The name of your project
title: Spring Cloud Stream
badges:
# Specify your project's twitter handle, if any. Delete if none.
twitter: SpringCloudOSS
# Customize your project's badges. Delete any entries that do not apply.
custom:
- name: Source (GitHub)
url: https://github.com/spring-cloud/spring-cloud-task
icon: github
- name: Issues (Waffle)
url: https://waffle.io/spring-cloud/spring-cloud-task
icon: tracking
- name: CI (Bamboo)
url: https://build.spring.io/browse/SCT
icon: ci
- name: StackOverflow
url: http://stackoverflow.com/questions/tagged/spring-cloud
icon: stackoverflow
---
<!DOCTYPE HTML>
<html lang="en-US">
<!-- Specify the parent of this project (or delete if none) to influence the rendering of the breadcrumb -->
{% capture parent_link %}
[Spring Cloud]({{ site.projects_site_url }}/spring-cloud)
{% endcapture %}
{% capture billboard_description %}
Spring Cloud Task allows a user to develop and run short lived microservices using Spring Cloud and run them locally, or in the cloud, or even on Spring Cloud Data Flow. Just add `@EnableTask` and run your app as a Spring Boot app (single application context).
{% endcapture %}
{% capture main_content %}
<span id="quick-start"></span>
## Quick Start
{% include download_widget.md %}
As long as Spring Cloud Task is on the classpath any Spring Boot application with `@EnableTask` will record the start and finish of the boot application as well as any uncaught exceptions in the configured task repository. Sample application:
```java
@SpringBootApplication
@EnableTask
public class ExampleApplication {
@Bean
public CommandLineRunner commandLineRunner() {
return strings ->
System.out.println("Executed at :" +
new SimpleDateFormat().format(new Date()));
}
public static void main(String[] args) {
SpringApplication.run(ExampleApplication.class, args);
}
}
```
{% endcapture %}
{% capture related_resources %}
### Related Projects
* [Spring Batch](http://spring.io/spring-batch/)
* [Spring Cloud Data Flow](http://cloud.spring.io/spring-cloud-dataflow/)
* [Spring XD]({{site.projects_site_url}}/spring-xd/)
{% endcapture %}
{% include project_page.html %}
</html>