Set runtime to 'java' to have the pom.xml created (#217)

When the runtime is ['assumed'](11b5c4ce67/cli/init.go (L182-L188)) (i.e. not explicitly set to 'java'), the [pom.xml isn't created(85ae711447/cli/langs/java.go (L38-L45)) 
and [init fail](85ae711447/cli/langs/java.go (L99-L101)).
This commit is contained in:
David Delabassee
2017-08-29 17:59:53 +02:00
committed by Travis Reeder
parent 9e24f8227e
commit b6bcb9cb01

View File

@@ -5,7 +5,7 @@ This example will show you how to test and deploy Java code to Oracle Functions.
```sh ```sh
# Initialize your function creating a func.yaml file # Initialize your function creating a func.yaml file
fn init <DOCKERHUB_USERNAME>/hello-java fn init <DOCKERHUB_USERNAME>/hello-java --runtime java
# Test your function. This will run inside a container exactly how it will on the server # Test your function. This will run inside a container exactly how it will on the server
fn run fn run