Skip to content

Commit

Permalink
Issue #13: Added gradle.properties to set file.encoding and sun.jnu.e…
Browse files Browse the repository at this point in the history
…ncoding to UTF-8
  • Loading branch information
Robert Winkler committed Mar 17, 2017
1 parent ff2e758 commit 5b7f81b
Show file tree
Hide file tree
Showing 3 changed files with 677 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build.gradle
Expand Up @@ -63,3 +63,8 @@ artifacts {
task wrapper(type: Wrapper) {
gradleVersion = '2.12'
}

task runJar(dependsOn:jar) << {
String swaggerInput = file("src/test/resources/swagger_petstore.yaml").getAbsolutePath()
javaexec { main="-jar"; args = [jar.archivePath, 'convert', '-i', "${swaggerInput}", '-d', "${buildDir}"]}
}
2 changes: 2 additions & 0 deletions gradle.properties
@@ -0,0 +1,2 @@
systemProp.file.encoding=UTF-8
systemProp.sun.jnu.encoding=UTF-8

0 comments on commit 5b7f81b

Please sign in to comment.