INTSAMPLES-131: Fix README.md for Gradle

JIRA: https://jira.spring.io/browse/INTSAMPLES-131

INTSAMPLES-131: PR comments
This commit is contained in:
Artem Bilan
2014-06-23 14:20:44 +03:00
committed by Gary Russell
parent 53dfc4914f
commit 95ec35c768
26 changed files with 95 additions and 84 deletions

View File

@@ -12,8 +12,9 @@ When changing the polling period, the change to the trigger will occur after the
You can run the application by either:
* running the "Main" class from within STS (Right-click on Main class --> Run As --> Java Application)
* or from the command line using the [Exec Maven Plugin](http://mojo.codehaus.org/exec-maven-plugin/):
- mvn package exec:java
* or from the command line using the [Gralde](http://www.gradle.org):
$ gradlew :dynamic-poller:runHelloWorldApp
You should see output like the following:

View File

@@ -28,8 +28,8 @@ You can run this sample by either.
* running the "Main" class from within STS (Right-click on Main class --> Run As --> Java Application)
* or from the command line:
- mvn package
- mvn exec:java
$ gradlew :mail-attachments:run
Once started, the configured mail server will be polled for new email messages every 5 seconds.

View File

@@ -19,7 +19,8 @@ To run this sample:
1. Deploy project
* If you are using STS and project is imported as Eclipse project in your workspace you can just execute **Run on Server**
* You can also run **mvn clean install** and generate the WAR file that you can deploy the conventional way
* You can also run **gradlew :multipart-http:build** and generate the WAR file that you can deploy the conventional
way
2. run the simple test client program: **org.springframework.integration.samples.multipart.MultipartClient**
You should see the following output from the server:

View File

@@ -11,15 +11,17 @@ The *Client* program is provided as a [JUnit][] test:
* RestHttpClientTest
This test-case can be used to test the HTTP Path usage. It uses Spring's [RestTemplate][] to assemble and send HTTP requests. The *Server*, on the other hand, is using Spring Integration's HTTP Endpoint configuration. The provided project itself is a web project and you can build the project using [Maven][] and deploy the resulting war under `target/rest-http-*.war` to Servlet Containers such as [Jetty][] or [Apache Tomcat][]:
This test-case can be used to test the HTTP Path usage. It uses Spring's [RestTemplate][] to assemble and send HTTP requests. The *Server*, on the other hand, is using Spring Integration's HTTP Endpoint configuration.
The provided project itself is a web project and you can build the project using [Gradle][] and deploy the resulting
war under `target/rest-http-*.war` to Servlet Containers such as [Jetty][] or [Apache Tomcat][]:
$ mvn clean verify
$ gradlew :rest-http:build
# To run this sample
1. Deploy the project
- If you are using [Spring Tool Suite][] (STS) and project is imported as Eclipse project in your workspace you can just execute 'Run on Server'
- You can also run 'mvn clean verify' and generate the WAR file that you can deploy to Servlet Containers
- You can also run **gradlew :rest-http:build** and generate the WAR file that you can deploy to Servlet Containers
2. Run the simple JUnit Test: **org.springframework.integration.samples.rest.RestHttpClientTest**
- You may change the URI Variable value in the test to see different results.
@@ -79,7 +81,7 @@ They are stored in `src/main/resources/users.properties`.
[cURL]: http://en.wikipedia.org/wiki/CURL
[Jetty]: http://www.eclipse.org/jetty/
[JUnit]: http://junit.org/
[Maven]: http://maven.apache.org/
[Gradle]: http://www.gradle.org
[RestTemplate]: http://static.springsource.org/spring/docs/current/javadoc-api/org/springframework/web/client/RestTemplate.html
[Spring Security]: http://www.springsource.org/spring-security
[Spring Tool Suite]: http://www.springsource.org/sts

View File

@@ -9,8 +9,8 @@ Demonstration of how to implement the Splitter/Aggregator [Enterprise Integratio
* running the "Main" class from within STS (Right-click on Main class --> Run As --> Java Application)
* or from the command line:
- mvn package
- mvn exec:java
$ gradlew :splitter-aggregator-reaper:run
You should see the following output:
@@ -47,4 +47,4 @@ http://www.springsource.org/spring-integration
[aggregating]: http://static.springsource.org/spring-integration/reference/html/messaging-routing-chapter.html#aggregator
[Enterprise Integration Patterns]: http://www.eaipatterns.com/
[message store reaper]: http://static.springsource.org/spring-integration/reference/html/messaging-routing-chapter.html#aggregator-config
[splitting]: http://static.springsource.org/spring-integration/reference/html/messaging-routing-chapter.html#splitter
[splitting]: http://static.springsource.org/spring-integration/reference/html/messaging-routing-chapter.html#splitter

View File

@@ -11,14 +11,14 @@ returns a **ResultSet**.
# Setup
Just make sure you have Maven set up and that the project builds successfully.
Just make sure you have Gradle set up and that the project builds successfully.
# Run the Sample
* running the "Main" class from within STS (Right-click on Main class --> Run As --> Java Application)
* or from the command line:
- mvn package
- mvn exec:java
$ gradlew :stored-procedures-derby:run
* Follow the screen (command line) instructions.

View File

@@ -110,8 +110,8 @@ You may have to update the *Microsoft SQL Server* properties in:
* running the "Main" class from within STS (Right-click on Main class --> Run As --> Java Application)
* or from the command line:
- mvn package
- mvn exec:java
$ gradlew :stored-procedures-ms:run
--------------------------------------------------------------------------------

View File

@@ -38,6 +38,10 @@ Nevertheless, the example should work with other versions as well.
</dependency>
```
After that you can run the sample application using [Gradle Application Plugin](http://www.gradle.org/docs/current/userguide/application_plugin.html):
$ gradlew :stored-procedures-oracle:run
### Common Oracle Setup
#### Create Tablespace
@@ -119,8 +123,8 @@ END;
* running the "Main" class from within STS (Right-click on Main class --> Run As --> Java Application)
* or from the command line:
- mvn package
- mvn exec:java
$ gradlew :stored-procedures-oracle:run
You should see the following output:
@@ -214,8 +218,8 @@ end;
* running the "Main" class from within STS (Right-click on Main class --> Run As --> Java Application)
* or from the command line:
- mvn package
- mvn exec:java
$ gradlew :stored-procedures-oracle:run
You should see the following output:

View File

@@ -10,10 +10,6 @@ The second procedure returns a **ResultSet**.
# Setup
## Maven
Please make sure you have *Maven* set up and that the project builds successfully using `mvn clean package`.
## PostgreSQL
Please ensure that you can connect to a running instance of a *PostgreSQL server*. The sample was tested using **PostgreSQL v9.2.1**.
@@ -80,8 +76,8 @@ Please configure the necessary credentials in order to connect to your database
* running the "Main" class from within STS (Right-click on Main class --> Run As --> Java Application)
* or from the command line:
- mvn package
- mvn exec:java
$ gradlew :stored-procedures-postgresql:run
* Follow the screen (command line) instructions.

View File

@@ -46,9 +46,10 @@ This sample uses the [MapQuest API][], specifically the [MapQuest Traffic Web Se
## Running the Sample
To run the sample execute **Main** in package **org.springframework.integration.samples.travel**. You can also execute that class using the [Exec Maven Plugin](http://mojo.codehaus.org/exec-maven-plugin/):
To run the sample execute **Main** in package **org.springframework.integration.samples.travel**.
You can also execute that class using the [Gradle Application Plugin](http://www.gradle.org/docs/current/userguide/application_plugin.html):
$ mvn clean package exec:java -Dmapquest.apikey="your_mapquest_api_key_url_decoded"
$ gradlew :travel:run -Dmapquest.apikey="your_mapquest_api_key_url_decoded"
You should see the following output: