File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ The `java-buildpack` is a [Cloud Foundry][] buildpack for running JVM-based appl
1010To use this buildpack specify the URI of the repository when pushing an application to Cloud Foundry:
1111
1212``` bash
13- cf push - b https://github.com/cloudfoundry/java-buildpack
13+ cf push < APP-NAME > -p < ARTIFACT > - b https://github.com/cloudfoundry/java-buildpack.git
1414```
1515
1616## Examples
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ The Java Buildpack treats Grails applications as normal Servlet applications bui
55
66``` bash
77$ ./grailsw war
8- $ cf push -m 768M -p target/grails-application-0.1.war -b https://github.com/cloudfoundry/java-buildpack.git
8+ $ cf push grails-application -m 768M -p target/grails-application-0.1.war -b https://github.com/cloudfoundry/java-buildpack.git
99-----> Downloading Open Jdk JRE 1.7.0_51 from http://.../openjdk/lucid/x86_64/openjdk-1.7.0_51.tar.gz (0.0s)
1010 Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.1s)
1111-----> Downloading Spring Auto Reconfiguration 0.8.7 from http://.../auto-reconfiguration/auto-reconfiguration-0.8.7.jar (0.0s)
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ The Java Buildpack can run Groovy applications written with the [Ratpack framewo
55The following example shows how deploy the sample application located in the [ Java Test Applications] [ j ] .
66
77``` bash
8- $ cf push -b https://github.com/cloudfoundry/java-buildpack.git
8+ $ cf push groovy-application -b https://github.com/cloudfoundry/java-buildpack.git
99-----> Downloading Open Jdk JRE 1.7.0_51 from http://.../openjdk/lucid/x86_64/openjdk-1.7.0_51.tar.gz (0.0s)
1010 Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.3s)
1111-----> Downloading Spring Auto Reconfiguration 0.8.7 from http://.../auto-reconfiguration/auto-reconfiguration-0.8.7.jar (0.0s)
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ The following example shows how deploy the sample application located in the [Ja
66
77``` bash
88$ gradle build
9- $ cf push -p build/libs/java-main-application-1.0.0.BUILD-SNAPSHOT.jar -b https://github.com/cloudfoundry/java-buildpack.git
9+ $ cf push java-main-application -p build/libs/java-main-application-1.0.0.BUILD-SNAPSHOT.jar -b https://github.com/cloudfoundry/java-buildpack.git
1010
1111-----> Downloading Open Jdk JRE 1.7.0_51 from http://.../openjdk/lucid/x86_64/openjdk-1.7.0_51.tar.gz (0.0s)
1212 Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.2s)
@@ -22,7 +22,7 @@ The following example shows how deploy the sample application located in the [Ja
2222
2323``` bash
2424$ mvn package
25- $ cf push -p target/java-main-application-1.0.0.BUILD-SNAPSHOT.jar -b https://github.com/cloudfoundry/java-buildpack.git
25+ $ cf push java-main-application -p target/java-main-application-1.0.0.BUILD-SNAPSHOT.jar -b https://github.com/cloudfoundry/java-buildpack.git
2626
2727-----> Downloading Open Jdk JRE 1.7.0_51 from http://.../openjdk/lucid/x86_64/openjdk-1.7.0_51.tar.gz (0.0s)
2828 Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.2s)
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ The following example shows how deploy the sample application located in the [Ja
66
77``` bash
88$ play dist
9- $ cf push -p target/universal/play-application-1.0-SNAPSHOT.zip -b https://github.com/cloudfoundry/java-buildpack.git
9+ $ cf push play-application -p target/universal/play-application-1.0-SNAPSHOT.zip -b https://github.com/cloudfoundry/java-buildpack.git
1010
1111-----> Downloading Open Jdk JRE 1.7.0_51 from http://.../openjdk/lucid/x86_64/openjdk-1.7.0_51.tar.gz (0.0s)
1212 Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.2s)
@@ -23,7 +23,7 @@ The following example shows how deploy the sample application located in the [Ja
2323
2424``` bash
2525$ play stage
26- $ cf push -p target/universal/stage -b https://github.com/cloudfoundry/java-buildpack.git
26+ $ cf push play-application -p target/universal/stage -b https://github.com/cloudfoundry/java-buildpack.git
2727
2828-----> Downloading Open Jdk JRE 1.7.0_51 from http://.../openjdk/lucid/x86_64/openjdk-1.7.0_51.tar.gz (0.0s)
2929 Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.2s)
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ The following example shows how deploy the sample application located in the [Ja
66
77``` bash
88$ gradle build
9- $ cf push -p build/libs/web-servlet-2-application-1.0.0.BUILD-SNAPSHOT.war -b https://github.com/cloudfoundry/java-buildpack.git
9+ $ cf push web-servlet-2-application -p build/libs/web-servlet-2-application-1.0.0.BUILD-SNAPSHOT.war -b https://github.com/cloudfoundry/java-buildpack.git
1010
1111-----> Downloading Open Jdk JRE 1.7.0_51 from http://.../openjdk/lucid/x86_64/openjdk-1.7.0_51.tar.gz (0.0s)
1212 Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.1s)
@@ -26,7 +26,7 @@ The following example shows how deploy the sample application located in the [Ja
2626
2727``` bash
2828$ mvn package
29- $ cf push -p cf push -p target/web-servlet-2-application-1.0.0.BUILD-SNAPSHOT.war -b https://github.com/cloudfoundry/java-buildpack.git -b https://github.com/cloudfoundry/java-buildpack.git
29+ $ cf push web-servlet-2-application -p target/web-servlet-2-application-1.0.0.BUILD-SNAPSHOT.war -b https://github.com/cloudfoundry/java-buildpack.git -b https://github.com/cloudfoundry/java-buildpack.git
3030
3131-----> Downloading Open Jdk JRE 1.7.0_51 from http://.../openjdk/lucid/x86_64/openjdk-1.7.0_51.tar.gz (0.0s)
3232 Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.1s)
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ The following example shows how deploy the sample application located in the [Ja
66
77``` bash
88$ spring grab * .groovy
9- $ $ cf push -b https://github.com/cloudfoundry/java-buildpack.git
9+ $ $ cf push spring-boot-cli-application -b https://github.com/cloudfoundry/java-buildpack.git
1010
1111-----> Downloading Open Jdk JRE 1.7.0_51 from http://.../openjdk/lucid/x86_64/openjdk-1.7.0_51.tar.gz (0.0s)
1212 Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.2s)
@@ -24,7 +24,7 @@ The following example shows how deploy the sample application located in the [Ja
2424
2525``` bash
2626$ spring jar spring-boot-cli-application-1.0.0.BUILD-SNAPSHOT.jar * .groovy
27- $ cf push -p spring-boot-cli-application-1.0.0.BUILD-SNAPSHOT.jar -b https://github.com/cloudfoundry/java-buildpack.git
27+ $ cf push spring-boot-cli-application -p spring-boot-cli-application-1.0.0.BUILD-SNAPSHOT.jar -b https://github.com/cloudfoundry/java-buildpack.git
2828
2929-----> Downloading Open Jdk JRE 1.7.0_51 from http://.../openjdk/lucid/x86_64/openjdk-1.7.0_51.tar.gz (0.0s)
3030 Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.2s)
You can’t perform that action at this time.
0 commit comments